From f91bc6d9fa7e36f154c421d64aeaa168506fdd57 Mon Sep 17 00:00:00 2001 From: CATcher Date: Sat, 27 Apr 2024 10:41:27 +0000 Subject: [PATCH] Auto-generated commit [ci skip] Triggered by commit: https://github.com/CATcher-org/CATcher-staging/commit/d04ac16bd159090b35a4bf0388513473328d5815 --- 404.html | 2 +- index.html | 2 +- ...a3e3b6e5103add2e80.js => main-es2015.64e86305e70a00ce6e50.js | 2 +- ....ada3e3b6e5103add2e80.js => main-es5.64e86305e70a00ce6e50.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename main-es2015.ada3e3b6e5103add2e80.js => main-es2015.64e86305e70a00ce6e50.js (96%) rename main-es5.ada3e3b6e5103add2e80.js => main-es5.64e86305e70a00ce6e50.js (97%) diff --git a/404.html b/404.html index c7f5256..362c47a 100644 --- a/404.html +++ b/404.html @@ -10,6 +10,6 @@ Loading... - + \ No newline at end of file diff --git a/index.html b/index.html index c7f5256..362c47a 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,6 @@ Loading... - + \ No newline at end of file diff --git a/main-es2015.ada3e3b6e5103add2e80.js b/main-es2015.64e86305e70a00ce6e50.js similarity index 96% rename from main-es2015.ada3e3b6e5103add2e80.js rename to main-es2015.64e86305e70a00ce6e50.js index ec7555f..a1a56d6 100644 --- a/main-es2015.ada3e3b6e5103add2e80.js +++ b/main-es2015.64e86305e70a00ce6e50.js @@ -193,4 +193,4 @@ ${uw}`,pw=nw.ZP` } } } - ${aw}`;var mw={possibleTypes:{Actor:["Bot","EnterpriseUserAccount","Mannequin","Organization","User"],Assignable:["Issue","PullRequest"],Assignee:["Bot","Mannequin","Organization","User"],AuditEntry:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],AuditEntryActor:["Bot","Organization","User"],Closable:["Issue","Milestone","Project","PullRequest"],Closer:["Commit","PullRequest"],Comment:["CommitComment","GistComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],Contribution:["CreatedCommitContribution","CreatedIssueContribution","CreatedPullRequestContribution","CreatedPullRequestReviewContribution","CreatedRepositoryContribution","JoinedGitHubContribution","RestrictedContribution"],CreatedIssueOrRestrictedContribution:["CreatedIssueContribution","RestrictedContribution"],CreatedPullRequestOrRestrictedContribution:["CreatedPullRequestContribution","RestrictedContribution"],CreatedRepositoryOrRestrictedContribution:["CreatedRepositoryContribution","RestrictedContribution"],Deletable:["CommitComment","GistComment","IssueComment","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],EnterpriseAuditEntryData:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OrgInviteToBusinessAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry"],EnterpriseMember:["EnterpriseUserAccount","User"],GitObject:["Blob","Commit","Tag","Tree"],GitSignature:["GpgSignature","SmimeSignature","UnknownSignature"],HovercardContext:["GenericHovercardContext","OrganizationTeamsHovercardContext","OrganizationsHovercardContext","ReviewStatusHovercardContext","ViewerHovercardContext"],IpAllowListOwner:["Enterprise","Organization"],IssueOrPullRequest:["Issue","PullRequest"],IssueTimelineItem:["AssignedEvent","ClosedEvent","Commit","CrossReferencedEvent","DemilestonedEvent","IssueComment","LabeledEvent","LockedEvent","MilestonedEvent","ReferencedEvent","RenamedTitleEvent","ReopenedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnsubscribedEvent","UserBlockedEvent"],IssueTimelineItems:["AddedToProjectEvent","AssignedEvent","ClosedEvent","CommentDeletedEvent","ConnectedEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DisconnectedEvent","IssueComment","LabeledEvent","LockedEvent","MarkedAsDuplicateEvent","MentionedEvent","MilestonedEvent","MovedColumnsInProjectEvent","PinnedEvent","ReferencedEvent","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","UserBlockedEvent"],Labelable:["Issue","PullRequest"],Lockable:["Issue","PullRequest"],MemberStatusable:["Organization","Team"],MilestoneItem:["Issue","PullRequest"],Minimizable:["CommitComment","GistComment","IssueComment","PullRequestReviewComment"],Node:["AddedToProjectEvent","App","AssignedEvent","AutomaticBaseChangeFailedEvent","AutomaticBaseChangeSucceededEvent","BaseRefChangedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","Blob","Bot","BranchProtectionRule","CheckRun","CheckSuite","ClosedEvent","CodeOfConduct","CommentDeletedEvent","Commit","CommitComment","CommitCommentThread","ConnectedEvent","ConvertToDraftEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DeployKey","DeployedEvent","Deployment","DeploymentEnvironmentChangedEvent","DeploymentStatus","DisconnectedEvent","Enterprise","EnterpriseAdministratorInvitation","EnterpriseIdentityProvider","EnterpriseRepositoryInfo","EnterpriseServerInstallation","EnterpriseServerUserAccount","EnterpriseServerUserAccountEmail","EnterpriseServerUserAccountsUpload","EnterpriseUserAccount","ExternalIdentity","Gist","GistComment","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IpAllowListEntry","Issue","IssueComment","Label","LabeledEvent","Language","License","LockedEvent","Mannequin","MarkedAsDuplicateEvent","MarketplaceCategory","MarketplaceListing","MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","MentionedEvent","MergedEvent","Milestone","MilestonedEvent","MovedColumnsInProjectEvent","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","Organization","OrganizationIdentityProvider","OrganizationInvitation","Package","PackageFile","PackageTag","PackageVersion","PinnedEvent","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","Project","ProjectCard","ProjectColumn","PublicKey","PullRequest","PullRequestCommit","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewComment","PullRequestReviewThread","Push","PushAllowance","Reaction","ReadyForReviewEvent","Ref","ReferencedEvent","Release","ReleaseAsset","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","Repository","RepositoryInvitation","RepositoryTopic","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","RepositoryVulnerabilityAlert","ReviewDismissalAllowance","ReviewDismissedEvent","ReviewRequest","ReviewRequestRemovedEvent","ReviewRequestedEvent","SavedReply","SecurityAdvisory","SponsorsListing","SponsorsTier","Sponsorship","Status","StatusCheckRollup","StatusContext","SubscribedEvent","Tag","Team","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamDiscussion","TeamDiscussionComment","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry","Topic","TransferredEvent","Tree","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","User","UserBlockedEvent","UserContentEdit","UserStatus"],OauthApplicationAuditEntryData:["OauthApplicationCreateAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry"],OrgRestoreMemberAuditEntryMembership:["OrgRestoreMemberMembershipOrganizationAuditEntryData","OrgRestoreMemberMembershipRepositoryAuditEntryData","OrgRestoreMemberMembershipTeamAuditEntryData"],OrganizationAuditEntry:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],OrganizationAuditEntryData:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgRestoreMemberMembershipOrganizationAuditEntryData","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],PackageOwner:["Organization","Repository","User"],PermissionGranter:["Organization","Repository","Team"],PinnableItem:["Gist","Repository"],ProfileOwner:["Organization","User"],ProjectCardItem:["Issue","PullRequest"],ProjectOwner:["Organization","Repository","User"],PullRequestTimelineItem:["AssignedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","ClosedEvent","Commit","CommitCommentThread","CrossReferencedEvent","DemilestonedEvent","DeployedEvent","DeploymentEnvironmentChangedEvent","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IssueComment","LabeledEvent","LockedEvent","MergedEvent","MilestonedEvent","PullRequestReview","PullRequestReviewComment","PullRequestReviewThread","ReferencedEvent","RenamedTitleEvent","ReopenedEvent","ReviewDismissedEvent","ReviewRequestRemovedEvent","ReviewRequestedEvent","SubscribedEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnsubscribedEvent","UserBlockedEvent"],PullRequestTimelineItems:["AddedToProjectEvent","AssignedEvent","AutomaticBaseChangeFailedEvent","AutomaticBaseChangeSucceededEvent","BaseRefChangedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","ClosedEvent","CommentDeletedEvent","ConnectedEvent","ConvertToDraftEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DeployedEvent","DeploymentEnvironmentChangedEvent","DisconnectedEvent","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IssueComment","LabeledEvent","LockedEvent","MarkedAsDuplicateEvent","MentionedEvent","MergedEvent","MilestonedEvent","MovedColumnsInProjectEvent","PinnedEvent","PullRequestCommit","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewThread","PullRequestRevisionMarker","ReadyForReviewEvent","ReferencedEvent","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","ReviewDismissedEvent","ReviewRequestRemovedEvent","ReviewRequestedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","UserBlockedEvent"],PushAllowanceActor:["App","Team","User"],Reactable:["CommitComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],ReferencedSubject:["Issue","PullRequest"],RenamedTitleSubject:["Issue","PullRequest"],RepositoryAuditEntryData:["OrgRestoreMemberMembershipRepositoryAuditEntryData","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","TeamAddRepositoryAuditEntry","TeamRemoveRepositoryAuditEntry"],RepositoryInfo:["Repository"],RepositoryNode:["CommitComment","CommitCommentThread","Issue","IssueComment","PullRequest","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewComment","RepositoryVulnerabilityAlert"],RepositoryOwner:["Organization","User"],RequestedReviewer:["Mannequin","Team","User"],ReviewDismissalAllowanceActor:["Team","User"],SearchResultItem:["App","Issue","MarketplaceListing","Organization","PullRequest","Repository","User"],Sponsor:["Organization","User"],Sponsorable:["Organization","User"],Starrable:["Gist","Repository","Topic"],StatusCheckRollupContext:["CheckRun","StatusContext"],Subscribable:["Commit","Issue","PullRequest","Repository","Team","TeamDiscussion"],TeamAuditEntryData:["OrgRestoreMemberMembershipTeamAuditEntryData","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],TopicAuditEntryData:["RepoAddTopicAuditEntry","RepoRemoveTopicAuditEntry"],UniformResourceLocatable:["Bot","CheckRun","ClosedEvent","Commit","ConvertToDraftEvent","CrossReferencedEvent","Gist","Issue","Mannequin","MergedEvent","Milestone","Organization","PullRequest","PullRequestCommit","ReadyForReviewEvent","Release","Repository","RepositoryTopic","ReviewDismissedEvent","TeamDiscussion","TeamDiscussionComment","User"],Updatable:["CommitComment","GistComment","Issue","IssueComment","Project","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],UpdatableComment:["CommitComment","GistComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"]}};function fw(...e){if(1===e.length){const t=e[0];if(l(t))return gw(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return gw(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return gw(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(D(e=>t(...e)))}return gw(e,null)}function gw(e,t){return new w(i=>{const n=e.length;if(0===n)return void i.complete();const r=new Array(n);let s=0,o=0;for(let a=0;a{u||(u=!0,o++),r[a]=e},error:e=>i.error(e),complete:()=>{s++,(s===n||!u)&&(o===n&&i.next(t?t.reduce((e,t,i)=>(e[t]=r[i],e),{}):r),i.complete())}}))}})}i(57834);let _w=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Go(gl),Go(pl))},e.\u0275dir=Ke({type:e}),e})(),yw=(()=>{class e extends _w{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,features:[Oo]}),e})();const bw=new en("NgValueAccessor"),vw={provide:bw,useExisting:ae(()=>kw),multi:!0},ww=new en("CompositionEventMode");let kw=(()=>{class e extends _w{constructor(e,t,i){super(e,t),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Uc()?Uc().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)}}return e.\u0275fac=function(t){return new(t||e)(Go(gl),Go(pl),Go(ww,8))},e.\u0275dir=Ke({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&la("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[sl([vw]),Oo]}),e})();function Sw(e){return null==e||0===e.length}function Tw(e){return null!=e&&"number"==typeof e.length}const Ew=new en("NgValidators"),xw=new en("NgAsyncValidators"),Mw=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Cw{static min(e){return function(e){return t=>{if(Sw(t.value)||Sw(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i{if(Sw(t.value)||Sw(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return Dw(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return Sw(e.value)||Mw.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>Sw(t.value)||!Tw(t.value)?null:t.value.length{if(Sw(e.value))return null;const n=e.value;return t.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(e)}static nullValidator(e){return null}static compose(e){return Fw(e)}static composeAsync(e){return qw(e)}}function Dw(e){return Sw(e.value)?{required:!0}:null}function Lw(e){return t=>Tw(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Ow(e){return null}function Aw(e){return null!=e}function Iw(e){const t=sa(e)?j(e):e;return aa(t),t}function Rw(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Pw(e,t){return t.map(t=>t(e))}function Yw(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Fw(e){if(!e)return null;const t=e.filter(Aw);return 0==t.length?null:function(e){return Rw(Pw(e,t))}}function jw(e){return null!=e?Fw(Yw(e)):null}function qw(e){if(!e)return null;const t=e.filter(Aw);return 0==t.length?null:function(e){return fw(Pw(e,t).map(Iw)).pipe(D(Rw))}}function Nw(e){return null!=e?qw(Yw(e)):null}function Hw(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Uw(e){return e._rawValidators}function zw(e){return e._rawAsyncValidators}function Bw(e){return e?Array.isArray(e)?e:[e]:[]}function Vw(e,t){return Array.isArray(e)?e.includes(t):e===t}function $w(e,t){const i=Bw(t);return Bw(e).forEach(e=>{Vw(i,e)||i.push(e)}),i}function Ww(e,t){return Bw(t).filter(t=>!Vw(e,t))}let Gw=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=jw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Nw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),Zw=(()=>{class e extends Gw{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,features:[Oo]}),e})();class Qw extends Gw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kw{constructor(e){this._cd=e}is(e){var t,i,n;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(n=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===n?void 0:n[e])}}let Jw=(()=>{class e extends Kw{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Qw,2))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&xa("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oo]}),e})(),Xw=(()=>{class e extends Kw{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&xa("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[Oo]}),e})();function ek(e,t){return[...t.path,e]}function tk(e,t){rk(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ok(e,t)})}(e,t),function(e,t){const i=(e,i)=>{t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ok(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const i=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function ik(e,t,i=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),sk(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function nk(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function rk(e,t){const i=Uw(e);null!==t.validator?e.setValidators(Hw(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=zw(e);null!==t.asyncValidator?e.setAsyncValidators(Hw(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();nk(t._rawValidators,r),nk(t._rawAsyncValidators,r)}function sk(e,t){let i=!1;if(null!==e){if(null!==t.validator){const n=Uw(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=zw(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}const n=()=>{};return nk(t._rawValidators,n),nk(t._rawAsyncValidators,n),i}function ok(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ak(e,t){rk(e,t)}function lk(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)}function uk(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ck(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(e=>{e.constructor===kw?i=e:function(e){return Object.getPrototypeOf(e.constructor)===yw}(e)?n=e:r=e}),r||n||i||null}function dk(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const hk="VALID",pk="INVALID",mk="PENDING",fk="DISABLED";function gk(e){return(vk(e)?e.validators:e)||null}function _k(e){return Array.isArray(e)?jw(e):e||null}function yk(e,t){return(vk(t)?t.asyncValidators:e)||null}function bk(e){return Array.isArray(e)?Nw(e):e||null}function vk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class wk{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=_k(this._rawValidators),this._composedAsyncValidatorFn=bk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===hk}get invalid(){return this.status===pk}get pending(){return this.status==mk}get disabled(){return this.status===fk}get enabled(){return this.status!==fk}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=_k(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=bk(e)}addValidators(e){this.setValidators($w(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators($w(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ww(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ww(e,this._rawAsyncValidators))}hasValidator(e){return Vw(this._rawValidators,e)}hasAsyncValidator(e){return Vw(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=mk,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=fk,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=hk,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hk||this.status===mk)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fk:hk}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=mk,this._hasOwnPendingAsyncValidator=!0;const t=Iw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,i){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let n=e;return t.forEach(e=>{n=n instanceof Sk?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Tk&&n.at(e)||null}),n}(this,e)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new vu,this.statusChanges=new vu}_calculateStatus(){return this._allControlsDisabled()?fk:this.errors?pk:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mk)?mk:this._anyControlsHaveStatus(pk)?pk:hk}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){vk(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class kk extends wk{constructor(e=null,t,i){super(gk(t),yk(i,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){dk(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){dk(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Sk extends wk{constructor(e,t,i){super(gk(t),yk(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t instanceof kk?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((e,n)=>{i=t(i,e,n)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Tk extends wk{constructor(e,t,i){super(gk(t),yk(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,i)=>{this.at(i)&&this.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof kk?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Ek={provide:Zw,useExisting:ae(()=>Mk)},xk=(()=>Promise.resolve(null))();let Mk=(()=>{class e extends Zw{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new vu,this.form=new Sk({},jw(e),Nw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xk.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),tk(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xk.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),dk(this._directives,e)})}addFormGroup(e){xk.then(()=>{const t=this._findContainer(e.path),i=new Sk({});ak(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xk.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){xk.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,uk(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10))},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&la("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[sl([Ek]),Oo]}),e})();const Ck={provide:Qw,useExisting:ae(()=>Lk)},Dk=(()=>Promise.resolve(null))();let Lk=(()=>{class e extends Qw{constructor(e,t,i,n){super(),this.control=new kk,this._registered=!1,this.update=new vu,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=ck(0,n)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),lk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ek(this.name,this._parent):[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(){tk(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Dk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,i=""===t||t&&"false"!==t;Dk.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,9),Go(Ew,10),Go(xw,10),Go(bw,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[sl([Ck]),Oo,ct]}),e})(),Ok=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Ak=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const Ik=new en("NgModelWithFormControlWarning"),Rk={provide:Qw,useExisting:ae(()=>Pk)};let Pk=(()=>{class e extends Qw{constructor(e,t,i,n){super(),this._ngModelWarningConfig=n,this.update=new vu,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ck(0,i)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&ik(t,this,!1),tk(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}lk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ik(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10),Go(bw,10),Go(Ik,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[sl([Rk]),Oo,ct]}),e._ngModelWarningSentOnce=!1,e})();const Yk={provide:Zw,useExisting:ae(()=>Fk)};let Fk=(()=>{class e extends Zw{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new vu,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sk(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return tk(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ik(e.control||null,e,!1),dk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,uk(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,i=this.form.get(e.path);t!==i&&(ik(t||null,e),i instanceof kk&&(tk(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ak(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return sk(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rk(this.form,this),this._oldForm&&sk(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&la("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[sl([Yk]),Oo,ct]}),e})();const jk={provide:Qw,useExisting:ae(()=>qk)};let qk=(()=>{class e extends Qw{constructor(e,t,i,n,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new vu,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=ck(0,n)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),lk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ek(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,13),Go(Ew,10),Go(xw,10),Go(bw,10),Go(Ik,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[sl([jk]),Oo,ct]}),e._ngModelWarningSentOnce=!1,e})();const Nk={provide:Ew,useExisting:ae(()=>Hk),multi:!0};let Hk=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Dw(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("required",t.required?"":null)},inputs:{required:"required"},features:[sl([Nk])]}),e})();const Uk={provide:Ew,useExisting:ae(()=>zk),multi:!0};let zk=(()=>{class e{constructor(){this._validator=Ow}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this.enabled()?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=this.enabled()?Lw(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):Ow}enabled(){return null!=this.maxlength}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("maxlength",t.enabled()?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[sl([Uk]),ct]}),e})(),Bk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ak]]}),e})(),Vk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[Bk]}),e})(),$k=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ik,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[Bk]}),e})(),Wk=(()=>{class e{group(e,t=null){const i=this._reduceControls(e);let n,r=null,s=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Sk(i,{asyncValidators:s,updateOn:n,validators:r})}control(e,t,i){return new kk(e,t,i)}array(e,t,i){const n=e.map(e=>this._createControl(e));return new Tk(n,t,i)}_reduceControls(e){const t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i])}),t}_createControl(e){return e instanceof kk||e instanceof Sk||e instanceof Tk?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:$k}),e})();function Gk(e){return null!=e&&"false"!=`${e}`}function Zk(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Qk(e){return Array.isArray(e)?e:[e]}function Kk(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Jk(e){return e instanceof pl?e.nativeElement:e}function Xk(e,t,i,r){return n(i)&&(r=i,i=void 0),r?Xk(e,t,i).pipe(D(e=>l(e)?r(...e):r(e))):new w(n=>{eS(e,t,function(e){n.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},n,i)})}function eS(e,t,i,n,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const n=e;e.addEventListener(t,i,r),s=()=>n.removeEventListener(t,i,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const n=e;e.on(t,i),s=()=>n.off(t,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const n=e;e.addListener(t,i),s=()=>n.removeListener(t,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let iS=1;const nS=Promise.resolve(),rS={};function sS(e){return e in rS&&(delete rS[e],!0)}const oS={setImmediate(e){const t=iS++;return rS[t]=!0,nS.then(()=>sS(t)&&e()),t},clearImmediate(e){sS(e)}},aS=new class extends Wb{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,n=-1,r=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++n0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=oS.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(oS.clearImmediate(t),e.scheduled=void 0)}});function lS(e,t){return i=>i.lift(new uS(e,t))}class uS{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new cS(e,this.compare,this.keySelector))}}class cS extends f{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:i}=this;t=i?i(e):e}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:e}=this;i=e(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}const dS=new Wb(Vb);class hS{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new pS(e,this.durationSelector))}}class pS extends N{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:t}=this;i=t(e)}catch(t){return this.destination.error(t)}const n=H(i,new q(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function mS(e){return!l(e)&&e-parseFloat(e)+1>=0}function fS(e=0,t,i){let n=-1;return mS(t)?n=Number(t)<1?1:Number(t):C(t)&&(i=t),C(i)||(i=dS),new w(t=>{const r=mS(e)?e:+e-i.now();return i.schedule(gS,r,{index:0,period:n,subscriber:t})})}function gS(e){const{index:t,period:i,subscriber:n}=e;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function _S(e,t=dS){return function(e){return function(t){return t.lift(new hS(e))}}(()=>fS(e,t))}function yS(e){return t=>t.lift(new bS(e))}class bS{constructor(e){this.notifier=e}call(e,t){const i=new vS(e),n=H(this.notifier,new q(i));return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}class vS extends N{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function wS(){return e=>e.lift(new kS)}class kS{call(e,t){return t.subscribe(new SS(e))}}class SS extends f{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}class TS extends x{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new ES(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,r=i.length;let s;if(this.closed)throw new S;if(this.isStopped||this.hasError?s=d.EMPTY:(this.observers.push(e),s=new T(this,e)),n&&e.add(e=new ev(e,n)),t)for(let o=0;ot&&(s=Math.max(s,r-t)),s>0&&n.splice(0,s),n}}class ES{constructor(e,t){this.time=e,this.value=t}}let xS;try{xS="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(h){xS=!1}let MS,CS=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Od(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&&!xS)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(Tn(Zu))},e.\u0275prov=fe({factory:function(){return new e(Tn(Zu))},token:e,providedIn:"root"}),e})(),DS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const LS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function OS(){if(MS)return MS;if("object"!=typeof document||!document)return MS=new Set(LS),MS;let e=document.createElement("input");return MS=new Set(LS.filter(t=>(e.setAttribute("type",t),e.type===t))),MS}let AS,IS,RS;function PS(e){return function(){if(null==AS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>AS=!0}))}finally{AS=AS||!1}return AS}()?e:!!e.capture}function YS(){if(null==IS){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return IS=!1,IS;if("scrollBehavior"in document.documentElement.style)IS=!0;else{const e=Element.prototype.scrollTo;IS=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return IS}function FS(e){if(function(){if(null==RS){const e="undefined"!=typeof document?document.head:null;RS=!(!e||!e.createShadowRoot&&!e.attachShadow)}return RS}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function jS(){let e="undefined"!=typeof document&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function qS(e){return e.composedPath?e.composedPath()[0]:e.target}function NS(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const HS=new en("cdk-dir-doc",{providedIn:"root",factory:function(){return En(zc)}});let US=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new vu,e){const t=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||t;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(Tn(HS,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(HS,8))},token:e,providedIn:"root"}),e})(),zS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();function BS(e){return e&&"function"==typeof e.connect}class VS{applyChanges(e,t,i,n,r){e.forEachOperation((e,n,s)=>{let o,a;if(null==e.previousIndex){const r=i(e,n,s);o=t.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(t.remove(n),a=3):(o=t.get(n),t.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:e})})}detach(){}}class $S{constructor(e=!1,t,i=!0){this._multiple=e,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new x,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let WS=(()=>{class e{constructor(){this._listeners=[]}notify(e,t){for(let i of this._listeners)i(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const GS=new en("_ViewRepeater");let ZS=(()=>{class e{constructor(e,t,i){this._ngZone=e,this._platform=t,this._scrolled=new x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new w(t=>{this._globalSubscription||this._addGlobalListener();const i=e>0?this._scrolled.pipe(_S(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):_h()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(bh(e=>!e||i.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,e)&&t.push(n)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let i=Jk(t),n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Xk(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(CS),Tn(zc,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(CS),Tn(zc,8))},token:e,providedIn:"root"}),e})(),QS=(()=>{class e{constructor(e,t,i){this._platform=e,this._change=new x,this._changeListener=e=>{this._change.next(e)},this._document=i,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_S(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc),Tn(zc,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc),Tn(zc,8))},token:e,providedIn:"root"}),e})(),KS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),JS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS,DS,KS],zS,KS]}),e})();function XS(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function eT(e,t=dS){return i=>i.lift(new tT(e,t))}class tT{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new iT(e,this.dueTime,this.scheduler))}}class iT extends f{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(nT,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function nT(e){e.debouncedNext()}function rT(e){return t=>t.lift(new sT(e))}class sT{constructor(e){this.total=e}call(e,t){return t.subscribe(new oT(e,this.total))}}class oT extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}let aT=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),lT=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Jk(e);return new w(e=>{const i=this._observeElement(t).subscribe(e);return()=>{i.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new x,i=this._mutationObserverFactory.create(e=>t.next(e));i&&i.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:i,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:i}=this._observedElements.get(e);t&&t.disconnect(),i.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(Tn(aT))},e.\u0275prov=fe({factory:function(){return new e(Tn(aT))},token:e,providedIn:"root"}),e})(),uT=(()=>{class e{constructor(e,t,i){this._contentObserver=e,this._elementRef=t,this._ngZone=i,this.event=new vu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Zk(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(eT(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(lT),Go(pl),Go(cc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),cT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[aT]}),e})();function dT(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}const hT="cdk-describedby-message-container",pT="cdk-describedby-message",mT="cdk-describedby-host";let fT=0;const gT=new Map;let _T=null,yT=(()=>{class e{constructor(e){this._document=e}describe(e,t,i){if(!this._canBeDescribed(e,t))return;const n=bT(t,i);"string"!=typeof t?(vT(t),gT.set(n,{messageElement:t,referenceCount:0})):gT.has(n)||this._createMessageElement(t,i),this._isElementDescribedByMessage(e,n)||this._addMessageReference(e,n)}removeDescription(e,t,i){if(!t||!this._isElementNode(e))return;const n=bT(t,i);if(this._isElementDescribedByMessage(e,n)&&this._removeMessageReference(e,n),"string"==typeof t){const e=gT.get(n);e&&0===e.referenceCount&&this._deleteMessageElement(n)}_T&&0===_T.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${mT}]`);for(let t=0;t0!=e.indexOf(pT));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const i=gT.get(t);(function(e,t,i){const n=dT(e,t);n.some(e=>e.trim()==i.trim())||(n.push(i.trim()),e.setAttribute(t,n.join(" ")))})(e,"aria-describedby",i.messageElement.id),e.setAttribute(mT,""),i.referenceCount++}_removeMessageReference(e,t){const i=gT.get(t);i.referenceCount--,function(e,t,i){const n=dT(e,t).filter(e=>e!=i.trim());n.length?e.setAttribute(t,n.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",i.messageElement.id),e.removeAttribute(mT)}_isElementDescribedByMessage(e,t){const i=dT(e,"aria-describedby"),n=gT.get(t),r=n&&n.messageElement.id;return!!r&&-1!=i.indexOf(r)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const i=null==t?"":`${t}`.trim(),n=e.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})();function bT(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function vT(e){e.id||(e.id=`${pT}-${fT++}`)}class wT{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new x,this.change=new x,e instanceof ku&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ig(e=>this._pressedLetters.push(e)),eT(e),bh(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let i=1;i!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||XS(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),n=t[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const n=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof ku?this._items.toArray():this._items}}class kT extends wT{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ST extends wT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let TT=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===xT(t)||!this.isVisible(t)))return!1;let i=e.nodeName.toLowerCase(),n=xT(e);return e.hasAttribute("contenteditable")?-1!==n:!("iframe"===i||"object"===i||this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==n:"video"===i?-1!==n&&(null!==n||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||ET(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS))},token:e,providedIn:"root"}),e})();function ET(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function xT(e){if(!ET(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class MT{constructor(e,t,i,n,r=!1){this._element=e,this._checker=t,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let i=0;i=0;i--){let e=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(dg(1)).subscribe(e)}}let CT=(()=>{class e{constructor(e,t,i){this._checker=e,this._ngZone=t,this._document=i}create(e,t=!1){return new MT(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(Tn(TT),Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(TT),Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();function DT(e){return 0===e.offsetX&&0===e.offsetY}function LT(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const OT=new en("cdk-input-modality-detector-options"),AT={ignoreKeys:[18,17,224,91,16]},IT=PS({passive:!0,capture:!0});let RT=(()=>{class e{constructor(e,t,i,n){this._platform=e,this._mostRecentTarget=null,this._modality=new Gf(null),this._lastTouchMs=0,this._onKeydown=e=>{var t,i;(null===(i=null===(t=this._options)||void 0===t?void 0:t.ignoreKeys)||void 0===i?void 0:i.some(t=>t===e.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=qS(e))},this._onMousedown=e=>{Date.now()-this._lastTouchMs<650||(this._modality.next(DT(e)?"keyboard":"mouse"),this._mostRecentTarget=qS(e))},this._onTouchstart=e=>{LT(e)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=qS(e))},this._options=Object.assign(Object.assign({},AT),n),this.modalityDetected=this._modality.pipe(rT(1)),this.modalityChanged=this.modalityDetected.pipe(lS()),e.isBrowser&&t.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,IT),i.addEventListener("mousedown",this._onMousedown,IT),i.addEventListener("touchstart",this._onTouchstart,IT)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,IT),document.removeEventListener("mousedown",this._onMousedown,IT),document.removeEventListener("touchstart",this._onTouchstart,IT))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc),Tn(zc),Tn(OT,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc),Tn(zc),Tn(OT,8))},token:e,providedIn:"root"}),e})();const PT=new en("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),YT=new en("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let FT=(()=>{class e{constructor(e,t,i,n){this._ngZone=t,this._defaultOptions=n,this._document=i,this._liveElement=e||this._createLiveElement()}announce(e,...t){const i=this._defaultOptions;let n,r;return 1===t.length&&"number"==typeof t[0]?r=t[0]:[n,r]=t,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==r&&i&&(r=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),i=this._document.createElement("div");for(let n=0;n{class e{constructor(e,t,i,n,r){this._ngZone=e,this._platform=t,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new x,this._rootNodeFocusAndBlurListener=e=>{const t=qS(e),i="focus"===e.type?this._onFocus:this._onBlur;for(let n=t;n;n=n.parentElement)i.call(this,e,n)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(e,t=!1){const i=Jk(e);if(!this._platform.isBrowser||1!==i.nodeType)return _h(null);const n=FS(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return t&&(r.checkChildren=!0),r.subject;const s={checkChildren:t,subject:new x,rootNode:n};return this._elementInfo.set(i,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Jk(e),i=this._elementInfo.get(t);i&&(i.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(i))}focusVia(e,t,i){const n=Jk(e);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([e,i])=>this._originChanged(e,t,i)):(this._setOrigin(t),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,i){i?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const i=this._elementInfo.get(t),n=qS(e);!i||!i.checkChildren&&t!==n||this._originChanged(t,this._getFocusOrigin(n),i)}_onBlur(e,t){const i=this._elementInfo.get(t);!i||i.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(i.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,i=this._rootNodeFocusListenerCount.get(t)||0;i||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,qT),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,qT)}),this._rootNodeFocusListenerCount.set(t,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yS(this._stopInputModalityDetector)).subscribe(e=>{this._setOrigin(e,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,qT),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,qT),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,i){this._setClasses(e,t),this._emitOrigin(i.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((i,n)=>{(n===e||i.checkChildren&&n.contains(e))&&t.push([n,i])}),t}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(CS),Tn(RT),Tn(zc,8),Tn(jT,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(CS),Tn(RT),Tn(zc,8),Tn(jT,8))},token:e,providedIn:"root"}),e})(),HT=(()=>{class e{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new vu}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>this.cdkFocusChange.emit(e))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT))},e.\u0275dir=Ke({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e})();const UT="cdk-high-contrast-black-on-white",zT="cdk-high-contrast-white-on-black",BT="cdk-high-contrast-active";let VT=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,i=t&&t.getComputedStyle?t.getComputedStyle(e):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(BT),e.remove(UT),e.remove(zT),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(BT),e.add(UT)):2===t&&(e.add(BT),e.add(zT))}}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(zc))},token:e,providedIn:"root"}),e})(),$T=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(Tn(VT))},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DS,cT]]}),e})();function WT(e){const{subscriber:t,counter:i,period:n}=e;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}function GT(e,t,i){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?e.setProperty(n,r,(null==i?void 0:i.has(n))?"important":""):e.removeProperty(n)}return e}function ZT(e,t){const i=t?"":"none";GT(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":i,"-ms-user-select":i,"-webkit-user-select":i,"-moz-user-select":i})}function QT(e,t,i){GT(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},i)}function KT(e,t){return t&&"none"!=t?e+" "+t:e}function JT(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function XT(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function eE(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function tE(e,t,i){const{top:n,bottom:r,left:s,right:o}=e;return i>=n&&i<=r&&t>=s&&t<=o}function iE(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function nE(e,t,i,n){const{top:r,right:s,bottom:o,left:a,width:l,height:u}=e,c=l*t,d=u*t;return n>r-d&&na-c&&i{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:eE(e)})})}handleScroll(e){const t=qS(e),i=this.positions.get(t);if(!i)return null;const n=t===this._document?t.documentElement:t,r=i.scrollPosition;let s,o;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();s=e.top,o=e.left}else s=t.scrollTop,o=t.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&iE(e.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function sE(e){const t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const i=qS(e);return!!i&&(i===t||t.contains(i))});t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),i=this._dropContainer;if(!t)return void this._endDragSequence(e);(!i||!i.isDragging()&&!i.isReceiving())&&(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),e.preventDefault();const i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{const e=this._activeTransform;e.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new rE(i,r),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=Gk(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>ZT(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>Jk(e)),this._handles.forEach(e=>ZT(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=Jk(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,dE),t.addEventListener("touchstart",this._pointerDown,cE)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?Jk(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&gE(this._rootElement),gE(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ZT(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ZT(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&gE(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&gE(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){_E(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,i=e.parentNode,n=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(r,e),this._initialTransform=e.style.transform||"",this._preview=this._createPreviewElement(),QT(e,!1,hE),this._document.body.appendChild(i.replaceChild(n,e)),this._getPreviewInsertionPoint(i,s).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),n=_E(t),r=!n&&0!==t.button,s=this._rootElement,o=qS(t),a=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=n?LT(t):DT(t);if(o&&o.draggable&&"mousedown"===t.type&&t.preventDefault(),i||r||a||l)return;this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor||"",s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>this._updateOnScroll(e)),this._boundaryElement&&(this._boundaryRect=eE(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){QT(this._rootElement,!0,hE),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),n=this._getPointerPositionOnPage(e),r=this._getDragDistance(n),s=t._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:r,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r,dropPoint:n}),t.drop(this,i,this._initialIndex,this._initialContainer,s,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:n}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let n;if(i&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(i,e.context);r.detectChanges(),n=yE(r,this._document),this._previewRef=r,e.matchSize?bE(n,t):n.style.transform=mE(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;n=sE(e),bE(n,e.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return GT(n.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},hE),ZT(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>n.classList.add(e)):n.classList.add(t)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function(e){const t=getComputedStyle(e),i=XT(t,"transition-property"),n=i.find(e=>"transform"===e||"all"===e);if(!n)return 0;const r=i.indexOf(n),s=XT(t,"transition-duration"),o=XT(t,"transition-delay");return JT(s[r])+JT(o[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const i=t=>{var r;(!t||qS(t)===this._preview&&"transform"===t.propertyName)&&(null===(r=this._preview)||void 0===r||r.removeEventListener("transitionend",i),e(),clearTimeout(n))},n=setTimeout(i,1.5*t);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=yE(this._placeholderRef,this._document)):i=sE(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,r=n?n.getBoundingClientRect():i,s=_E(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-i.left+(s.pageX-r.left-o.left),y:r.top-i.top+(s.pageY-r.top-o.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=_E(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=n,t.y=r,t.matrixTransform(e.inverse())}}return{x:n,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?n=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,r=this._boundaryRect,s=this._previewRect,o=r.top+t,a=r.bottom-(s.height-t);i=fE(i,r.left+e,r.right-(s.width-e)),n=fE(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),o=Math.abs(i-r.y);return s>this._config.pointerDirectionChangeThreshold&&(n.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ZT(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,dE),e.removeEventListener("touchstart",this._pointerDown,cE)}_applyRootElementTransform(e,t){const i=mE(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=KT(i,this._initialTransform)}_applyPreviewTransform(e,t){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=mE(e,t);this._preview.style.transform=KT(r,n)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const r=i.left-n.left,s=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,i.height>n.height?(o>0&&(t+=o),a>0&&(t-=a)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:_E(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=qS(e);this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&iE(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=FS(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const e=this._document;return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}return Jk(i)}}function mE(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function fE(e,t,i){return Math.max(t,Math.min(i,e))}function gE(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _E(e){return"t"===e.type[0]}function yE(e,t){const i=e.rootNodes;if(1===i.length&&i[0].nodeType===t.ELEMENT_NODE)return i[0];const n=t.createElement("div");return i.forEach(e=>n.appendChild(e)),n}function bE(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=mE(t.left,t.top)}function vE(e,t){return Math.max(0,Math.min(t,e))}class wE{constructor(e,t,i,n,r){this._dragDropRegistry=t,this._ngZone=n,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new x,this.entered=new x,this.exited=new x,this.dropped=new x,this.sorted=new x,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=d.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=dS){return(!mS(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=dS),new w(i=>(i.add(t.schedule(WT,e,{subscriber:i,counter:0,period:e})),i))}(0,tS).pipe(yS(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?SE(e,-t):2===this._verticalScrollDirection&&SE(e,t),1===this._horizontalScrollDirection?TE(e,-t):2===this._horizontalScrollDirection&&TE(e,t)})},this.element=Jk(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new rE(i,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,n){let r;this._draggingStarted(),null==n?(r=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(e,t,i))):r=n;const s=this._activeDraggables,o=s.indexOf(e),a=e.getPlaceholderElement();let l=s[r];if(l===e&&(l=s[r+1]),o>-1&&s.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,i)){const t=s[0].getRootElement();t.parentNode.insertBefore(a,t),s.unshift(e)}else Jk(this.element).appendChild(a),s.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,n,r,s,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:s,dropPoint:o})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=Jk(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?kE("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,n){if(this.sortingDisabled||!this._clientRect||!nE(this._clientRect,.05,t,i))return;const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,i,n);if(-1===s&&r.length>0)return;const o="horizontal"===this._orientation,a=kE(r,t=>t.drag===e),l=r[s],u=l.clientRect,c=a>s?1:-1,d=this._getItemOffsetPx(r[a].clientRect,u,c),h=this._getSiblingOffsetPx(a,r,c),p=r.slice();(function(e,t,i){const n=vE(t,e.length-1),r=vE(i,e.length-1);if(n===r)return;const s=e[n],o=r{if(p[i]===t)return;const n=t.drag===e,r=n?d:h,s=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(s.style.transform=KT(`translate3d(${Math.round(t.offset)}px, 0, 0)`,t.initialTransform),iE(t.clientRect,0,r)):(s.style.transform=KT(`translate3d(0, ${Math.round(t.offset)}px, 0)`,t.initialTransform),iE(t.clientRect,r,0))}),this._previousSwap.overlaps=tE(u,t,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,n=0,r=0;if(this._parentPositions.positions.forEach((s,o)=>{o===this._document||!s.clientRect||i||nE(s.clientRect,.05,e,t)&&([n,r]=function(e,t,i,n){const r=EE(t,n),s=xE(t,i);let o=0,a=0;if(r){const t=e.scrollTop;1===r?t>0&&(o=1):e.scrollHeight-t>e.clientHeight&&(o=2)}if(s){const t=e.scrollLeft;1===s?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[o,a]}(o,s.clientRect,e,t),(n||r)&&(i=o))}),!n&&!r){const{width:s,height:o}=this._viewportRuler.getViewportSize(),a={width:s,height:o,top:0,right:s,bottom:o,left:0};n=EE(a,t),r=xE(a,e),i=window}i&&(n!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=r,this._scrollNode=i,(n||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=Jk(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=Jk(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:eE(t)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=Jk(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const i=e.getRootElement();if(i){const n=null===(t=this._itemPositions.find(t=>t.drag===e))||void 0===t?void 0:t.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const n="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*i];let o=r[n?"width":"height"]*i;if(s){const e=n?"left":"top",t=n?"right":"bottom";-1===i?o-=s.clientRect[e]-r[t]:o+=r[e]-s.clientRect[t]}return o}_getItemOffsetPx(e,t,i){const n="horizontal"===this._orientation;let r=n?t.left-e.left:t.top-e.top;return-1===i&&(r+=n?t.width-e.width:t.height-e.height),r}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const r=i[i.length-1].clientRect;return n?e>=r.right:t>=r.bottom}{const r=i[0].clientRect;return n?e<=r.left:t<=r.top}}_getItemIndexFromPointerPosition(e,t,i,n){const r="horizontal"===this._orientation,s=kE(this._itemPositions,({drag:s,clientRect:o},a,l)=>{if(s===e)return l.length<2;if(n){const e=r?n.x:n.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return r?t>=Math.floor(o.left)&&t=Math.floor(o.top)&&in._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!tE(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;const r=Jk(this.element);return n===r||r.contains(n)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{iE(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=FS(Jk(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function kE(e,t){for(let i=0;i=i-s&&t<=i+s?1:t>=n-s&&t<=n+s?2:0}function xE(e,t){const{left:i,right:n,width:r}=e,s=.05*r;return t>=i-s&&t<=i+s?1:t>=n-s&&t<=n+s?2:0}const ME=PS({passive:!1,capture:!0});let CE=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new x,this.pointerUp=new x,this.scroll=new x,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ME)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ME)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ME}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:ME}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new w(t=>this._ngZone.runOutsideAngular(()=>{const i=e=>{this._activeDragInstances.length&&t.next(e)};return e.addEventListener("scroll",i,!0),()=>{e.removeEventListener("scroll",i,!0)}}))),W(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();const DE={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let LE=(()=>{class e{constructor(e,t,i,n){this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(e,t=DE){return new pE(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new wE(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc),Tn(cc),Tn(QS),Tn(CE))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc),Tn(cc),Tn(QS),Tn(CE))},token:e,providedIn:"root"}),e})(),OE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[LE],imports:[KS]}),e})();const AE=[[["caption"]],[["colgroup"],["col"]]],IE=["caption","colgroup, col"];function RE(e){return class extends e{constructor(...e){super(...e),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(e){const t=this._sticky;this._sticky=Gk(e),this._hasStickyChanged=t!==this._sticky}hasStickyChanged(){const e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}resetStickyChanged(){this._hasStickyChanged=!1}}}const PE=new en("CDK_TABLE");let YE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellDef",""]]}),e})(),FE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e})(),jE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterCellDef",""]]}),e})();class qE{}const NE=RE(qE);let HE=(()=>{class e extends NE{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Gk(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return e.\u0275fac=function(t){return new(t||e)(Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,YE,5),Ru(i,FE,5),Ru(i,jE,5)),2&e){let e;Au(e=Pu())&&(t.cell=e.first),Au(e=Pu())&&(t.headerCell=e.first),Au(e=Pu())&&(t.footerCell=e.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[sl([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Oo]}),e})();class UE{constructor(e,t){const i=t.nativeElement.classList;for(const n of e._columnCssClassName)i.add(n)}}let zE=(()=>{class e extends UE{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(Go(HE),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Oo]}),e})(),BE=(()=>{class e extends UE{constructor(e,t){var i;if(super(e,t),1===(null===(i=e._table)||void 0===i?void 0:i._elementRef.nativeElement.nodeType)){const i=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===i||"treegrid"===i?"gridcell":"cell")}}}return e.\u0275fac=function(t){return new(t||e)(Go(HE),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Oo]}),e})();class VE{constructor(){this.tasks=[],this.endTasks=[]}}const $E=new en("_COALESCED_STYLE_SCHEDULER");let WE=(()=>{class e{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new VE,this._getScheduleObservable().pipe(yS(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new VE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(dg(1))}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),GE=(()=>{class e{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof KE?e.headerCell.template:this instanceof ex?e.footerCell.template:e.cell.template}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al))},e.\u0275dir=Ke({type:e,features:[ct]}),e})();class ZE extends GE{}const QE=RE(ZE);let KE=(()=>{class e extends QE{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Oo,ct]}),e})();class JE extends GE{}const XE=RE(JE);let ex=(()=>{class e extends XE{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Oo,ct]}),e})(),tx=(()=>{class e extends GE{constructor(e,t,i){super(e,t),this._table=i}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Oo]}),e})(),ix=(()=>{class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e})(),nx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),rx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),sx=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e})();const ox=["top","bottom","left","right"];class ax{constructor(e,t,i,n,r=!0,s=!0,o){this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${t}-border-elem-top`,bottom:`${t}-border-elem-bottom`,left:`${t}-border-elem-left`,right:`${t}-border-elem-right`}}clearStickyPositioning(e,t){const i=[];for(const n of e)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let e=0;e{for(const e of i)this._removeStickyStyle(e,t)})}updateStickyColumns(e,t,i,n=!0){if(!e.length||!this._isBrowser||!t.some(e=>e)&&!i.some(e=>e))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=e[0],s=r.children.length,o=this._getCellWidths(r,n),a=this._getStickyStartColumnPositions(o,t),l=this._getStickyEndColumnPositions(o,i),u=t.lastIndexOf(!0),c=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,r=n?"right":"left",d=n?"left":"right";for(const o of e)for(let e=0;et[i]?e:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===c?[]:o.slice(c).map((e,t)=>i[t+c]?e:null).reverse()}))})}stickRows(e,t,i){if(!this._isBrowser)return;const n="bottom"===i?e.slice().reverse():e,r="bottom"===i?t.slice().reverse():t,s=[],o=[],a=[];for(let u=0,c=0;u{var e,t;for(let o=0;o{t.some(e=>!e)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(e,t){for(const i of t)e.style[i]="",e.classList.remove(this._borderCellCss[i]);ox.some(i=>-1===t.indexOf(i)&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,t,i,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[t]),e.style[t]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){const t={top:100,bottom:10,left:1,right:1};let i=0;for(const n of ox)e.style[n]&&(i+=t[n]);return i?`${i}`:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=e.children;for(let r=0;r0;r--)t[r]&&(i[r]=n,n+=e[r]);return i}}const lx=new en("CDK_SPL");let ux=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","rowOutlet",""]]}),e})(),cx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","headerRowOutlet",""]]}),e})(),dx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","footerRowOutlet",""]]}),e})(),hx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","noDataRowOutlet",""]]}),e})(),px=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c){this._differs=e,this._changeDetectorRef=t,this._elementRef=i,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=u,this._stickyPositioningListener=c,this._onDestroy=new x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new vu,this.viewChange=new Gf({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Gk(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Gk(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(yS(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),BS(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(e,t,i)=>this._getEmbeddedViewArgs(e.item,i),e=>e.item.data,e=>{1===e.operation&&e.context&&this._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(e=>{t.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");const i=this._headerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");const i=this._footerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((e,t)=>{this._addStickyColumnStyles([e],this._headerRowDefs[t])}),this._rowDefs.forEach(e=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([e],this._footerRowDefs[t])}),Array.from(this._columnDefsByName.values()).forEach(e=>e.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const r=i&&i.has(n)?i.get(n):[];if(r.length){const e=r.shift();return e.dataIndex=t,e}return{data:e,rowDef:n,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),mx(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(e=>{this._columnDefsByName.has(e.name),this._columnDefsByName.set(e.name,e)})}_cacheRowDefs(){this._headerRowDefs=mx(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=mx(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=mx(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(e=>!e.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(e,t)=>e||!!t.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(e,!1);return n&&this._forceRenderFooterRows(),t||i||n}_switchDataSource(e){this._data=[],BS(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;BS(this.dataSource)?e=this.dataSource.connect(this):function(e){return!!e&&(e instanceof w||"function"==typeof e.lift&&"function"==typeof e.subscribe)}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=_h(this.dataSource)),this._renderChangeSubscription=e.pipe(yS(this._onDestroy)).subscribe(e=>{this._data=e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const i=Array.from(t.columns||[]).map(e=>this._columnDefsByName.get(e)),n=i.map(e=>e.sticky),r=i.map(e=>e.stickyEnd);this._stickyStyler.updateStickyColumns(e,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let i=0;i!i.when||i.when(t,e));else{let n=this._rowDefs.find(i=>i.when&&i.when(t,e))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,i,n={}){const r=e.viewContainer.createEmbeddedView(t.template,n,i);return this._renderCellTemplateForItem(t,n),r}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))ix.mostRecentCellOutlet&&ix.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t{const i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of t){const t=this._document.createElement(i.tag);t.setAttribute("role","rowgroup");for(const e of i.outlets)t.appendChild(e.elementRef.nativeElement);e.appendChild(t)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(e,t)=>e||t.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ax(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:_h()).pipe(yS(this._onDestroy)).subscribe(e=>{this._stickyStyler.direction=e,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(e=>!e._table||e._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;t?i.createEmbeddedView(e.templateRef):i.clear(),this._isShowingNoDataRow=t}}}}return e.\u0275fac=function(t){return new(t||e)(Go(Al),Go(ql),Go(pl),Gi("role"),Go(US,8),Go(zc),Go(CS),Go(GS),Go($E),Go(QS),Go(lx,12))},e.\u0275cmp=Ve({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,sx,5),Ru(i,HE,5),Ru(i,tx,5),Ru(i,KE,5),Ru(i,ex,5)),2&e){let e;Au(e=Pu())&&(t._noDataRow=e.first),Au(e=Pu())&&(t._contentColumnDefs=e),Au(e=Pu())&&(t._contentRowDefs=e),Au(e=Pu())&&(t._contentHeaderRowDefs=e),Au(e=Pu())&&(t._contentFooterRowDefs=e)}},viewQuery:function(e,t){if(1&e&&(Iu(ux,7),Iu(cx,7),Iu(dx,7),Iu(hx,7)),2&e){let e;Au(e=Pu())&&(t._rowOutlet=e.first),Au(e=Pu())&&(t._headerRowOutlet=e.first),Au(e=Pu())&&(t._footerRowOutlet=e.first),Au(e=Pu())&&(t._noDataRowOutlet=e.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&xa("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[sl([{provide:PE,useExisting:e},{provide:GS,useClass:VS},{provide:$E,useClass:WE},{provide:lx,useValue:null}])],ngContentSelectors:IE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(fa(AE),ga(0),ga(1,1),ia(2,0),ia(3,1),ia(4,2),ia(5,3))},directives:[cx,ux,hx,dx],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e})();function mx(e,t){return e.concat(Array.from(t))}let fx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[JS]]}),e})(),gx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const _x=new bl("12.2.13");function yx(e,t){if(1&e&&Xo(0,"mat-pseudo-checkbox",4),2&e){const e=pa();Zo("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function bx(e,t){if(1&e&&(Ko(0,"span",5),Fa(1),Jo()),2&e){const e=pa();fs(1),qa("(",e.group.label,")")}}const vx=["*"];let wx=(()=>{class e{}return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e})(),kx=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const Sx=new bl("12.2.13"),Tx=new en("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ex=(()=>{class e{constructor(e,t,i){this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Sc()||NS())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Sx.full!==_x.full&&console.warn("The Angular Material version ("+Sx.full+") does not match the Angular CDK version ("+_x.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(Tn(VT),Tn(Tx,8),Tn(zc))},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS],zS]}),e})();function xx(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e)}}}function Mx(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Cx(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Gk(e)}}}function Dx(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Zk(e):this.defaultTabIndex}}}function Lx(e){return class extends e{constructor(...e){super(...e),this.stateChanges=new x,this.errorState=!1}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function Ox(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}const Ax=new en("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return En(Ju)}});class Ix{constructor(){this._localeChanges=new x,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let i=this.isValid(e),n=this.isValid(t);return i&&n?!this.compareDate(e,t):i==n}return e==t}clampDate(e,t,i){return t&&this.compareDate(e,t)<0?t:i&&this.compareDate(e,i)>0?i:e}}const Rx=new en("mat-date-formats");let Px;try{Px="undefined"!=typeof Intl}catch(h){Px=!1}const Yx={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Fx=Nx(31,e=>String(e+1)),jx={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},qx=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Nx(e,t){const i=Array(e);for(let n=0;n{class e extends Ix{constructor(e,t){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!t.TRIDENT,this._clampDate=t.TRIDENT||t.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Nx(12,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,e,1))))}return Yx[e]}getDateNames(){if(Px){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Nx(31,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Fx}getDayOfWeekNames(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Nx(7,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return jx[e]}getYearName(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,i){let n=this._createDateWithOverflow(e,t,i);return n.getMonth(),n}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Px){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(i,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(qx.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,i){const n=new Date;return n.setFullYear(e,t,i),n.setHours(0,0,0,0),n}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,t){const i=new Date;return i.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(i)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Ax,8),Tn(CS))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),Ux=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[{provide:Ix,useClass:Hx}],imports:[[DS]]}),e})();const zx={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Bx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[{provide:Rx,useValue:zx}],imports:[[Ux]]}),e})(),Vx=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),$x=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e})();function Wx(e,t,i){const n=e.nativeElement.classList;i?n.add(t):n.remove(t)}let Gx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})();class Zx{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qx={enterDuration:225,exitDuration:150},Kx=PS({passive:!0}),Jx=["mousedown","touchstart"],Xx=["mouseup","mouseleave","touchend","touchcancel"];class eM{constructor(e,t,i,n){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Jk(i))}fadeInRipple(e,t,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Qx),i.animation);i.centered&&(e=n.left+n.width/2,t=n.top+n.height/2);const s=i.radius||function(e,t,i){const n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+r*r)}(e,t,n),o=e-n.left,a=t-n.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-s+"px",u.style.top=a-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u),function(e){window.getComputedStyle(e).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const c=new Zx(this,u,i);return c.state=0,this._activeRipples.add(c),i.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const e=c===this._mostRecentTransientRipple;c.state=1,!i.persistent&&(!e||!this._isPointerDown)&&c.fadeOut()},l),c}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,n=Object.assign(Object.assign({},Qx),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Jk(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Jx))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xx),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=DT(e),i=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,Kx)})})}_removeTriggerEvents(){this._triggerElement&&(Jx.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kx)}),this._pointerUpEventsRegistered&&Xx.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kx)}))}}const tM=new en("mat-ripple-global-options");let iM=(()=>{class e{constructor(e,t,i,n,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new eM(this,t,e,i)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,i){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(CS),Go(tM,8),Go(zf,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),nM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,DS],Ex]}),e})(),rM=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&xa("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),sM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex]]}),e})();const oM=new en("MAT_OPTION_PARENT_COMPONENT"),aM=xx(class{});let lM=0,uM=(()=>{class e extends aM{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+lM++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(Go(oM,8))},e.\u0275dir=Ke({type:e,inputs:{label:"label"},features:[Oo]}),e})();const cM=new en("MatOptgroup");let dM=0;class hM{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let pM=(()=>{class e{constructor(e,t,i,n){this._element=e,this._changeDetectorRef=t,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dM++,this.onSelectionChange=new vu,this._stateChanges=new x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Gk(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!XS(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new hM(this,e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(void 0),Go(uM))},e.\u0275dir=Ke({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),mM=(()=>{class e extends pM{constructor(e,t,i,n){super(e,t,i,n)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oM,8),Go(cM,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&la("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Ua("id",t.id),Bo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),xa("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Oo],ngContentSelectors:vx,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(fa(),$o(0,yx,1,2,"mat-pseudo-checkbox",0),Ko(1,"span",1),ga(2),Jo(),$o(3,bx,2,1,"span",2),Xo(4,"div",3)),2&e&&(Zo("ngIf",t.multiple),fs(3),Zo("ngIf",t.group&&t.group._inert),fs(1),Zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[gd,iM,rM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function fM(e,t,i){if(i.length){let n=t.toArray(),r=i.toArray(),s=0;for(let t=0;t{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Dd,Ex,sM]]}),e})();class _M{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class yM extends _M{constructor(e,t,i,n){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=n}}class bM extends _M{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class vM extends _M{constructor(e){super(),this.element=e instanceof pl?e.nativeElement:e}}class wM{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof yM?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof bM?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof vM?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class kM extends wM{constructor(e,t,i,n,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=e=>{const t=e.element,i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=t.create(e.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(e=>this.outletElement.appendChild(e)),i.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(i);-1!==e&&t.remove(e)}),this._attachedPortal=e,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let SM=(()=>{class e extends wM{constructor(e,t,i){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new vu,this.attachDomPortal=e=>{const t=e.element,i=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(i,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(Go(ul),Go(Kl),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oo]}),e})(),TM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();class EM{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new xM(e,this.predicate,this.inclusive))}}class xM extends f{constructor(e,t,i){super(e),this.predicate=t,this.inclusive=i,this.index=0}_next(e){const t=this.destination;let i;try{i=this.predicate(e,this.index++)}catch(n){return void t.error(n)}this.nextOrComplete(e,i)}nextOrComplete(e,t){const i=this.destination;Boolean(t)?i.next(e):(this.inclusive&&i.next(e),i.complete())}}const MM=YS();class CM{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Kk(-this._previousScrollPosition.left),e.style.top=Kk(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,i=this._document.body.style,n=t.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),MM&&(t.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),MM&&(t.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class DM{constructor(e,t,i,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class LM{enable(){}disable(){}attach(){}}function OM(e,t){return t.some(t=>e.bottomt.bottom||e.rightt.right)}function AM(e,t){return t.some(t=>e.topt.bottom||e.leftt.right)}class IM{constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:i}=this._viewportRuler.getViewportSize();OM(e,[{width:t,height:i,bottom:i,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let RM=(()=>{class e{constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this.noop=()=>new LM,this.close=e=>new DM(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new CM(this._viewportRuler,this._document),this.reposition=e=>new IM(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=n}}return e.\u0275fac=function(t){return new(t||e)(Tn(ZS),Tn(QS),Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(ZS),Tn(QS),Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();class PM{constructor(e){if(this.scrollStrategy=new LM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class YM{constructor(e,t,i,n,r){this.offsetX=i,this.offsetY=n,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class FM{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let jM=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})(),qM=(()=>{class e extends jM{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let i=t.length-1;i>-1;i--)if(t[i]._keydownEvents.observers.length>0){t[i]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})(),NM=(()=>{class e extends jM{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=e=>{this._pointerDownEventTarget=qS(e)},this._clickListener=e=>{const t=qS(e),i="click"===e.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){const s=n[r];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(t)||s.overlayElement.contains(i))break;s._outsidePointerEvents.next(e)}}}}add(e){if(super.add(e),!this._isAttached){const e=this._document.body;e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc),Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc),Tn(CS))},token:e,providedIn:"root"}),e})(),HM=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||NS()){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;ethis._backdropClick.next(e),this._keydownEvents=new x,this._outsidePointerEvents=new x,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Kk(this._config.width),e.height=Kk(this._config.height),e.minWidth=Kk(this._config.minWidth),e.minHeight=Kk(this._config.minHeight),e.maxWidth=Kk(this._config.maxWidth),e.maxHeight=Kk(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const n=e.classList;Qk(t).forEach(e=>{e&&(i?n.add(e):n.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(yS(W(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.parentNode&&e.parentNode.removeChild(e),this._backdropElement===e&&(this._backdropElement=null))}}const zM="cdk-overlay-connected-position-bounding-box",BM=/([A-Za-z%]+)$/;class VM{constructor(e,t,i,n,r){this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new x,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(zM),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,n=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),l=this._getOverlayFit(a,t,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreat&&(t=n,e=i)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&$M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(zM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let i,n;if("center"==t.originX)i=e.left+e.width/2;else{const n=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;i="start"==t.originX?n:r}return n="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:i,y:n}}_getOverlayPoint(e,t,i){let n,r;return n="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+n,y:e.y+r}}_getOverlayFit(e,t,i,n){const r=GM(t);let{x:s,y:o}=e,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(s+=a),l&&(o+=l);let u=0-o,c=o+r.height-i.height,d=this._subtractOverflows(r.width,0-s,s+r.width-i.width),h=this._subtractOverflows(r.height,u,c),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const n=i.bottom-t.y,r=i.right-t.x,s=WM(this._overlayRef.getConfig().minHeight),o=WM(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=s&&s<=n)&&a}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const n=GM(t),r=this._viewportRect,s=Math.max(e.x+n.width-r.width,0),o=Math.max(e.y+n.height-r.height,0),a=Math.max(r.top-i.top-e.y,0),l=Math.max(r.left-i.left-e.x,0);let u=0,c=0;return u=n.width<=r.width?l||-s:e.xn&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-n/2)}if("end"===t.overlayX&&!n||"start"===t.overlayX&&n)u=i.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!n||"end"===t.overlayX&&n)l=e.x,a=i.right-e.x;else{const t=Math.min(i.right-e.x+i.left,e.x),n=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-n/2)}return{top:s,left:l,bottom:o,right:u,width:a,height:r}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=Kk(i.height),n.top=Kk(i.top),n.bottom=Kk(i.bottom),n.width=Kk(i.width),n.left=Kk(i.left),n.right=Kk(i.right),n.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",n.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(n.maxHeight=Kk(e)),r&&(n.maxWidth=Kk(r))}this._lastBoundingBoxSize=i,$M(this._boundingBox.style,n)}_resetBoundingBoxStyles(){$M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){$M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();$M(i,this._getExactOverlayY(t,e,n)),$M(i,this._getExactOverlayX(t,e,n))}else i.position="static";let o="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),s.maxHeight&&(n?i.maxHeight=Kk(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=Kk(s.maxWidth):r&&(i.maxWidth="")),$M(this._pane.style,i)}_getExactOverlayY(e,t,i){let n={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Kk(r.y),n}_getExactOverlayX(e,t,i){let n,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),n=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===n?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Kk(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:AM(e,i),isOriginOutsideView:OM(e,i),isOverlayClipped:AM(t,i),isOverlayOutsideView:OM(t,i)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Qk(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof pl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function $M(e,t){for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function WM(e){if("number"!=typeof e&&null!=e){const[t,i]=e.split(BM);return i&&"px"!==i?null:parseFloat(t)}return e||null}function GM(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class ZM{constructor(e,t,i,n,r,s,o){this._preferredPositions=[],this._positionStrategy=new VM(i,n,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,i,n){const r=new YM(e,t,i,n);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}const QM="cdk-global-overlay-wrapper";class KM{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(QM),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(QM),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let JM=(()=>{class e{constructor(e,t,i,n){this._viewportRuler=e,this._document=t,this._platform=i,this._overlayContainer=n}global(){return new KM}connectedTo(e,t,i){return new ZM(t,i,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new VM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(Tn(QS),Tn(zc),Tn(CS),Tn(HM))},e.\u0275prov=fe({factory:function(){return new e(Tn(QS),Tn(zc),Tn(CS),Tn(HM))},token:e,providedIn:"root"}),e})(),XM=0,eC=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=u,this._outsideClickDispatcher=c}create(e){const t=this._createHostElement(),i=this._createPaneElement(t),n=this._createPortalOutlet(i),r=new PM(e);return r.direction=r.direction||this._directionality.value,new UM(n,t,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+XM++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Oc)),new kM(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(Tn(RM),Tn(HM),Tn(ul),Tn(JM),Tn(qM),Tn(Do),Tn(cc),Tn(zc),Tn(US),Tn(rd),Tn(NM))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})();const tC=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],iC=new en("cdk-connected-overlay-scroll-strategy");let nC=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),rC=(()=>{class e{constructor(e,t,i,n,r){this._overlay=e,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this._attachSubscription=d.EMPTY,this._detachSubscription=d.EMPTY,this._positionSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new vu,this.positionChange=new vu,this.attach=new vu,this.detach=new vu,this.overlayKeydown=new vu,this.overlayOutsideClick=new vu,this._templatePortal=new bM(t,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Gk(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Gk(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Gk(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Gk(e)}get push(){return this._push}set push(e){this._push=Gk(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tC);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27===e.keyCode&&!this.disableClose&&!XS(e)&&(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new PM({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return i=>i.lift(new EM(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(Bl),Go(Kl),Go(iC),Go(US,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ct]}),e})();const sC={provide:iC,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let oC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[eC,sC],imports:[[zS,TM,JS],JS]}),e})();const aC=["underline"],lC=["connectionContainer"],uC=["inputContainer"],cC=["label"];function dC(e,t){1&e&&(ea(0),Ko(1,"div",14),Xo(2,"div",15),Xo(3,"div",16),Xo(4,"div",17),Jo(),Ko(5,"div",18),Xo(6,"div",15),Xo(7,"div",16),Xo(8,"div",17),Jo(),ta())}function hC(e,t){1&e&&(Ko(0,"div",19),ga(1,1),Jo())}function pC(e,t){if(1&e&&(ea(0),ga(1,2),Ko(2,"span"),Fa(3),Jo(),ta()),2&e){const e=pa(2);fs(3),ja(e._control.placeholder)}}function mC(e,t){1&e&&ga(0,3,["*ngSwitchCase","true"])}function fC(e,t){1&e&&(Ko(0,"span",23),Fa(1," *"),Jo())}function gC(e,t){if(1&e){const e=na();Ko(0,"label",20,21),la("cdkObserveContent",function(){return Yt(e),pa().updateOutlineGap()}),$o(2,pC,4,1,"ng-container",12),$o(3,mC,1,0,"ng-content",12),$o(4,fC,2,0,"span",22),Jo()}if(2&e){const e=pa();xa("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Zo("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Bo("for",e._control.id)("aria-owns",e._control.id),fs(2),Zo("ngSwitchCase",!1),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function _C(e,t){1&e&&(Ko(0,"div",24),ga(1,4),Jo())}function yC(e,t){if(1&e&&(Ko(0,"div",25,26),Xo(2,"span",27),Jo()),2&e){const e=pa();fs(2),xa("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bC(e,t){1&e&&(Ko(0,"div"),ga(1,5),Jo()),2&e&&Zo("@transitionMessages",pa()._subscriptAnimationState)}function vC(e,t){if(1&e&&(Ko(0,"div",31),Fa(1),Jo()),2&e){const e=pa(2);Zo("id",e._hintLabelId),fs(1),ja(e.hintLabel)}}function wC(e,t){if(1&e&&(Ko(0,"div",28),$o(1,vC,2,2,"div",29),ga(2,6),Xo(3,"div",30),ga(4,7),Jo()),2&e){const e=pa();Zo("@transitionMessages",e._subscriptAnimationState),fs(1),Zo("ngIf",e.hintLabel)}}const kC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],SC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TC=0;const EC=new en("MatError");let xC=(()=>{class e{constructor(e,t){this.id="mat-error-"+TC++,e||t.nativeElement.setAttribute("aria-live","polite")}}return e.\u0275fac=function(t){return new(t||e)(Gi("aria-live"),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&Bo("id",t.id)},inputs:{id:"id"},features:[sl([{provide:EC,useExisting:e}])]}),e})();const MC={transitionMessages:rp("transitionMessages",[lp("enter",ap({opacity:1,transform:"translateY(0%)"})),cp("void => enter",[ap({opacity:0,transform:"translateY(-5px)"}),sp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let CC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),DC=0;const LC=new en("MatHint");let OC=(()=>{class e{constructor(){this.align="start",this.id="mat-hint-"+DC++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Bo("id",t.id)("align",null),xa("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[sl([{provide:LC,useExisting:e}])]}),e})(),AC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-label"]]}),e})(),IC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-placeholder"]]}),e})();const RC=new en("MatPrefix"),PC=new en("MatSuffix");let YC=0;const FC=Mx(class{constructor(e){this._elementRef=e}},"primary"),jC=new en("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qC=new en("MatFormField");let NC=(()=>{class e extends FC{constructor(e,t,i,n,r,s,o,a){super(e),this._changeDetectorRef=t,this._dir=n,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+YC++,this._labelId="mat-form-field-label-"+YC++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Gk(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(mg(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(yS(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(yS(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mg(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mg(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yS(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(dg(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,i=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,i=0;const n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),s=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=n.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e0?.75*l+10:0}for(let o=0;o{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,cT],Ex]}),e})();function UC(e,t=dS){const i=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return e=>e.lift(new zC(i,t))}class zC{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new BC(e,this.delay,this.scheduler))}}class BC extends f{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,n=e.scheduler,r=e.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const t=Math.max(0,i[0].time-n.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(BC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new VC(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Jb.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Jb.createComplete()),this.unsubscribe()}}class VC{constructor(e,t){this.time=e,this.notification=t}}const $C={provide:new en("mat-autocomplete-scroll-strategy"),deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let WC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[$C],imports:[[oC,gM,Ex,Dd],KS,gM,Ex]}),e})(),GC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[$T,Ex],Ex]}),e})();const ZC=new Set;let QC,KC=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(e){if(!ZC.has(e))try{QC||(QC=document.createElement("style"),QC.setAttribute("type","text/css"),document.head.appendChild(QC)),QC.sheet&&(QC.sheet.insertRule(`@media ${e} {body{ }}`,0),ZC.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS))},token:e,providedIn:"root"}),e})();function JC(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let XC=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eD(Qk(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Xf(eD(Qk(e)).map(e=>this._registerQuery(e).observable));return t=ng(t.pipe(dg(1)),t.pipe(rT(1),eT(0))),t.pipe(D(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:i})=>{t.matches=t.matches||e,t.breakpoints[i]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),i={observable:new w(e=>{const i=t=>this._zone.run(()=>e.next(t));return t.addListener(i),()=>{t.removeListener(i)}}).pipe(mg(t),D(({matches:t})=>({query:e,matches:t})),yS(this._destroySubject)),mql:t};return this._queries.set(e,i),i}}return e.\u0275fac=function(t){return new(t||e)(Tn(KC),Tn(cc))},e.\u0275prov=fe({factory:function(){return new e(Tn(KC),Tn(cc))},token:e,providedIn:"root"}),e})();function eD(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let tD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[oC,Ex,TM],Ex]}),e})();const iD=["mat-button",""],nD=["*"],rD=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sD=Mx(xx(Cx(class{constructor(e){this._elementRef=e}})));let oD=(()=>{class e extends sD{constructor(e,t,i){super(e),this._focusMonitor=t,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of rD)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Iu(iM,5),2&e){let e;Au(e=Pu())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Bo("disabled",t.disabled||null),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Oo],attrs:iD,ngContentSelectors:nD,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(fa(),Ko(0,"span",0),ga(1),Jo(),Xo(2,"span",1),Xo(3,"span",2)),2&e&&(fs(2),xa("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Zo("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[iM],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),aD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex],Ex]}),e})(),lD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,nM],Ex]}),e})();const uD=["*",[["mat-card-footer"]]],cD=["*","mat-card-footer"],dD=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],hD=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let pD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e})(),mD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e})(),fD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e})(),gD=(()=>{class e{constructor(){this.align="start"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e})(),_D=(()=>{class e{constructor(e){this._animationMode=e}}return e.\u0275fac=function(t){return new(t||e)(Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:cD,decls:2,vars:0,template:function(e,t){1&e&&(fa(uD),ga(0),ga(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e})(),yD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:hD,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(fa(dD),ga(0),Ko(1,"div",0),ga(2,1),Jo(),ga(3,2))},encapsulation:2,changeDetection:0}),e})(),bD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})();const vD=["input"],wD=function(e){return{enterDuration:e}},kD=["*"],SD=new en("mat-checkbox-default-options",{providedIn:"root",factory:TD});function TD(){return{color:"accent",clickAction:"check-indeterminate"}}let ED=0;const xD=TD(),MD={provide:bw,useExisting:ae(()=>LD),multi:!0};class CD{}const DD=Dx(Mx(Cx(xx(class{constructor(e){this._elementRef=e}}))));let LD=(()=>{class e extends DD{constructor(e,t,i,n,r,s,o){super(e),this._changeDetectorRef=t,this._focusMonitor=i,this._ngZone=n,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++ED,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new vu,this.indeterminateChange=new vu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||xD,this.color=this.defaultColor=this._options.color||xD.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Gk(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Gk(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Gk(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new CD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(NT),Go(cc),Gi("tabindex"),Go(zf,8),Go(SD,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(Iu(vD,5),Iu(iM,5)),2&e){let e;Au(e=Pu())&&(t._inputElement=e.first),Au(e=Pu())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Bo("tabindex",null),xa("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[sl([MD]),Oo],ngContentSelectors:kD,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"span",2),Ko(3,"input",3,4),la("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(5,"span",5),Xo(6,"span",6),Jo(),Xo(7,"span",7),Ko(8,"span",8),ci(),Ko(9,"svg",9),Xo(10,"path",10),Jo(),di(),Xo(11,"span",11),Jo(),Jo(),Ko(12,"span",12,13),la("cdkObserveContent",function(){return t._onLabelTextChange()}),Ko(14,"span",14),Fa(15,"\xa0"),Jo(),ga(16),Jo(),Jo()),2&e){const e=Wo(1),i=Wo(13);Bo("for",t.inputId),fs(2),xa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),fs(1),Zo("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),Bo("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),fs(2),Zo("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",pu(19,wD,"NoopAnimations"===t._animationMode?0:150))}},directives:[iM,uT],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e})(),OD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),AD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex,cT,OD],Ex,OD]}),e})();const ID=["*"],RD=new en("MatChipRemove"),PD=new en("MatChipAvatar"),YD=new en("MatChipTrailingIcon");class FD{constructor(e){this._elementRef=e}}const jD=Dx(Mx(Cx(FD),"primary"),-1);let qD=(()=>{class e extends jD{constructor(e,t,i,n,r,s,o,a){super(e),this._ngZone=t,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new x,this._onBlur=new x,this.selectionChange=new vu,this.destroyed=new vu,this.removed=new vu,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new eM(this,t,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Gk(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Gk(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Gk(e)}get removable(){return this._removable}set removable(e){this._removable=Gk(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled?e.preventDefault():e.stopPropagation()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(CS),Go(tM,8),Go(ql),Go(zc),Go(zf,8),Gi("tabindex"))},e.\u0275dir=Ke({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,PD,5),Ru(i,YD,5),Ru(i,RD,5)),2&e){let e;Au(e=Pu())&&(t.avatar=e.first),Au(e=Pu())&&(t.trailingIcon=e.first),Au(e=Pu())&&(t.removeIcon=e.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&la("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(Bo("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),xa("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oo]}),e})(),ND=(()=>{class e{constructor(e,t){this._parentChip=e,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}_handleClick(e){const t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)(Go(qD),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&la("click",function(e){return t._handleClick(e)})},features:[sl([{provide:RD,useExisting:e}])]}),e})();const HD=new en("mat-chips-default-options"),UD=Lx(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n}});let zD=0;class BD{constructor(e,t){this.source=e,this.value=t}}let VD=(()=>{class e extends UD{constructor(e,t,i,n,r,s,o){super(s,n,r,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new x,this._uid="mat-chip-list-"+zD++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(e,t)=>e===t,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new vu,this.valueChange=new vu,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=Gk(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(e){this._required=Gk(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Gk(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Gk(e),this.chips&&this.chips.forEach(e=>e.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return W(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return W(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return W(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return W(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new ST(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(yS(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(yS(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(mg(null),yS(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new $S(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&ee.deselect()),Array.isArray(e))e.forEach(e=>this._selectValue(e,t)),this._sortValues();else{const i=this._selectValue(e,t);i&&t&&this._keyManager.setActiveItem(i)}}_selectValue(e,t=!0){const i=this.chips.find(t=>null!=t.value&&this._compareWith(t.value,e));return i&&(t?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new BD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(e=>{!this._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&t._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(US,8),Go(Mk,8),Go(Fk,8),Go(Vx),Go(Qw,10))},e.\u0275cmp=Ve({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,qD,5),2&e){let e;Au(e=Pu())&&(t.chips=e)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&la("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(Ua("id",t._uid),Bo("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),xa("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[sl([{provide:CC,useExisting:e}]),Oo],ngContentSelectors:ID,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),ga(1),Jo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e})();const $D={separatorKeyCodes:[13]};let WD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[Vx,{provide:HD,useValue:$D}],imports:[[Ex]]}),e})(),GD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS]]}),e})();const ZD=["*"];function QD(e){return Error(`Unable to find icon with the name "${e}"`)}function KD(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function JD(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class XD{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let eL=(()=>{class e{constructor(e,t,i,n){this._httpClient=e,this._sanitizer=t,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,n){return this._addSvgIconConfig(e,t,new XD(i,null,n))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,n){const r=this._sanitizer.sanitize(Wr.HTML,i);if(!r)throw JD(i);return this._addSvgIconConfig(e,t,new XD("",r,n))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new XD(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){const n=this._sanitizer.sanitize(Wr.HTML,t);if(!n)throw JD(t);return this._addSvgIconSetConfig(e,new XD("",n,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(Wr.RESOURCE_URL,e);if(!t)throw KD(e);const i=this._cachedIconsByUrl.get(t);return i?_h(tL(i)):this._loadSvgIconFromConfig(new XD(e,null)).pipe(Ig(e=>this._cachedIconsByUrl.set(t,e)),D(e=>tL(e)))}getNamedSvgIcon(e,t=""){const i=iL(t,e);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(t,e),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Qb(QD(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?_h(tL(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(D(e=>tL(e)))}_getSvgFromIconSetConfigs(e,t){const i=this._extractIconWithNameFromAnySet(e,t);return i?_h(i):fw(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(yg(t=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(Wr.RESOURCE_URL,e.url)} failed: ${t.message}`;return this._errorHandler.handleError(new Error(i)),_h(null)})))).pipe(D(()=>{const i=this._extractIconWithNameFromAnySet(e,t);if(!i)throw QD(e);return i}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(n.svgText&&n.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(t,e,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ig(t=>e.svgText=t),D(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?_h(null):this._fetchIcon(e).pipe(Ig(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){const n=e.querySelector(`[id="${t}"]`);if(!n)return null;const r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);const s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,i)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(e){const t=this._svgElementFromString(""),i=e.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(s)),te());return this._inProgressUrlFetches.set(s,a),a}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(iL(e,t),i),this}_addSvgIconSetConfig(e,t){const i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;it?t.pathname+t.search:""}}}),oL=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],aL=e=>`[${e}]`,lL=oL.map(aL).join(", "),uL=/^url\(['"]?#(.*?)['"]?\)$/;let cL=(()=>{class e extends rL{constructor(e,t,i,n,r){super(e),this._iconRegistry=t,this._location=n,this._errorHandler=r,this._inline=!1,this._currentIconFetch=d.EMPTY,i||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Gk(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let n=0;n{t.forEach(t=>{i.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(lL),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const r=t[n],s=r.getAttribute(e),o=s?s.match(uL):null;if(o){let t=i.get(r);t||(t=[],i.set(r,t)),t.push({name:e,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(dg(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${i}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(eL),Gi("aria-hidden"),Go(sL),Go(Xr))},e.\u0275cmp=Ve({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),xa("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Oo],ngContentSelectors:ZD,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),dL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),hL=(()=>{class e{constructor(){this.changes=new x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const pL={provide:hL,deps:[[new On,new An,hL]],useFactory:function(e){return e||new hL}};let mL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[pL,Vx],imports:[[Ex,Dd,TM,aD,GD,dL,nM],Ex]}),e})();const fL=PS({passive:!0});let gL=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return rg;const t=Jk(e),i=this._monitoredElements.get(t);if(i)return i.subject;const n=new x,r="cdk-text-field-autofilled",s=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>n.next({target:e.target,isAutofilled:!1}))):(t.classList.add(r),this._ngZone.run(()=>n.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,fL),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:n,unlisten:()=>{t.removeEventListener("animationstart",s,fL)}}),n}stopMonitoring(e){const t=Jk(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc))},token:e,providedIn:"root"}),e})(),_L=(()=>{class e{constructor(e,t,i,n){this._elementRef=e,this._platform=t,this._ngZone=i,this._destroyed=new x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=e=>{this._hasFocus="focus"===e.type},this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Zk(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Zk(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Gk(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=e,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Xk(this._getWindow(),"resize").pipe(_S(16),yS(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,n=i&&this._hasFocus,r=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";n&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(r);const s=e.scrollHeight-4;return e.classList.remove(r),n&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),r=Math.max(n,this._cachedPlaceholderHeight||0);t.style.height=`${r}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(cc),Go(zc,8))},e.\u0275dir=Ke({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&la("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e})(),yL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DS]]}),e})();const bL=new en("MAT_INPUT_VALUE_ACCESSOR"),vL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wL=0;const kL=Lx(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n}});let SL=(()=>{class e extends kL{constructor(e,t,i,n,r,s,o,a,l,u){super(s,n,r,i),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+wL++,this.focused=!1,this.stateChanges=new x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>OS().has(e));const c=this._elementRef.nativeElement,d=c.nodeName.toLowerCase();this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{const t=e.target;!t.value&&0===t.selectionStart&&0===t.selectionEnd&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===d,this._isTextarea="textarea"===d,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Gk(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Gk(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&OS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Gk(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const i=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(i!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=i,i?e.setAttribute("placeholder",i):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){vL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(Qw,10),Go(Mk,8),Go(Fk,8),Go(Vx),Go(bL,10),Go(gL),Go(cc),Go(qC,8))},e.\u0275dir=Ke({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,t){1&e&&la("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Ua("disabled",t.disabled)("required",t.required),Bo("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),xa("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[sl([{provide:CC,useExisting:e}]),Oo,ct]}),e})(),TL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[Vx],imports:[[yL,HC,Ex],yL,HC]}),e})(),EL=(()=>{class e{constructor(){this.changes=new x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const xL={provide:new en("mat-datepicker-scroll-strategy"),deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let ML=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[EL,xL],imports:[[Dd,aD,oC,$T,TM,Ex],KS]}),e})();function CL(e,t){}class DL{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const LL={dialogContainer:rp("dialogContainer",[lp("void, exit",ap({opacity:0,transform:"scale(0.7)"})),lp("enter",ap({transform:"none"})),cp("* => enter",sp("150ms cubic-bezier(0, 0, 0.2, 1)",ap({transform:"none",opacity:1}))),cp("* => void, * => exit",sp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ap({opacity:0})))])};let OL=(()=>{class e extends wM{constructor(e,t,i,n,r,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=i,this._config=r,this._focusMonitor=s,this._animationStateChanged=new vu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=jS(),i=this._elementRef.nativeElement;(!t||t===this._document.body||t===i||i.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=jS())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=jS();return e===t||e.contains(t)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CT),Go(ql),Go(zc,8),Go(DL),Go(NT))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Iu(SM,7),2&e){let e;Au(e=Pu())&&(t._portalOutlet=e.first)}},features:[Oo]}),e})(),AL=(()=>{class e extends OL{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ua("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Ua("id",t._id),Bo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),za("@dialogContainer",t._state))},features:[Oo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&$o(0,CL,0,0,"ng-template",0)},directives:[SM],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[LL.dialogContainer]}}),e})(),IL=0;class RL{constructor(e,t,i="mat-dialog-"+IL++){this._overlayRef=e,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new x,this._afterClosed=new x,this._beforeClosed=new x,this._state=0,t._id=i,t._animationStateChanged.pipe(bh(e=>"opened"===e.state),dg(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(bh(e=>"closed"===e.state),dg(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(bh(e=>27===e.keyCode&&!this.disableClose&&!XS(e))).subscribe(e=>{e.preventDefault(),PL(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():PL(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(bh(e=>"closing"===e.state),dg(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function PL(e,t,i){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(i)}const YL=new en("MatDialogData"),FL=new en("mat-dialog-default-options"),jL=new en("mat-dialog-scroll-strategy"),qL={provide:jL,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.block()}};let NL=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l){this._overlay=e,this._injector=t,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x,this._afterOpenedAtThisLevel=new x,this._ariaHiddenElements=new Map,this.afterAllClosed=og(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mg(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new DL),t.id&&this.getDialogById(t.id);const i=this._createOverlay(t),n=this._attachDialogContainer(i,t),r=this._attachDialogContent(e,n,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),n._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new PM({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const i=Do.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:DL,useValue:t}]}),n=new yM(this._dialogContainerType,t.viewContainerRef,i,t.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,i,n){const r=new this._dialogRefConstructor(i,t,n.id);if(e instanceof Bl)t.attachTemplatePortal(new bM(e,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,t),s=t.attachComponentPortal(new yM(e,n.viewContainerRef,i));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(e,t,i){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!n||!n.get(US,null,Te.Optional))&&r.push({provide:US,useValue:{value:e.direction,change:_h()}}),Do.create({parent:n||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let n=t[i];n!==e&&"SCRIPT"!==n.nodeName&&"STYLE"!==n.nodeName&&!n.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(Do),Go(void 0),Go(void 0),Go(HM),Go(void 0),Go(on),Go(on),Go(en))},e.\u0275dir=Ke({type:e}),e})(),HL=(()=>{class e extends NL{constructor(e,t,i,n,r,s,o){super(e,t,n,s,o,r,RL,AL,YL)}}return e.\u0275fac=function(t){return new(t||e)(Tn(eC),Tn(Do),Tn(rd,8),Tn(FL,8),Tn(jL),Tn(e,12),Tn(HM))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),UL=0,zL=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this._elementRef=t,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=WL(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){PL(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL,8),Go(pl),Go(HL))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&la("click",function(e){return t._onButtonClick(e)}),2&e&&Bo("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ct]}),e})(),BL=(()=>{class e{constructor(e,t,i){this._dialogRef=e,this._elementRef=t,this._dialog=i,this.id="mat-dialog-title-"+UL++}ngOnInit(){this._dialogRef||(this._dialogRef=WL(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(Go(RL,8),Go(pl),Go(HL))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Ua("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),VL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),$L=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})();function WL(e,t){let i=e.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?t.find(e=>e.id===i.id):null}let GL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[HL,qL],imports:[[oC,TM,Ex],Ex]}),e})(),ZL=(()=>{class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Gk(e)}get inset(){return this._inset}set inset(e){this._inset=Gk(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("aria-orientation",t.vertical?"vertical":"horizontal"),xa("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e})(),QL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),KL=0;const JL=new en("CdkAccordion");let XL=(()=>{class e{constructor(){this._stateChanges=new x,this._openCloseAllActions=new x,this.id="cdk-accordion-"+KL++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Gk(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[sl([{provide:JL,useExisting:e}]),ct]}),e})(),eO=0,tO=(()=>{class e{constructor(e,t,i){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=i,this._openCloseAllSubscription=d.EMPTY,this.closed=new vu,this.opened=new vu,this.destroyed=new vu,this.expandedChange=new vu,this.id="cdk-accordion-child-"+eO++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Gk(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return e.\u0275fac=function(t){return new(t||e)(Go(JL,12),Go(ql),Go(WS))},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[sl([{provide:JL,useValue:void 0}])]}),e})(),iO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const nO=["body"];function rO(e,t){}const sO=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oO=["mat-expansion-panel-header","*","mat-action-row"];function aO(e,t){1&e&&Xo(0,"span",2),2&e&&Zo("@indicatorRotate",pa()._getExpandedState())}const lO=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],uO=["mat-panel-title","mat-panel-description","*"],cO=new en("MAT_ACCORDION"),dO="225ms cubic-bezier(0.4,0.0,0.2,1)",hO={indicatorRotate:rp("indicatorRotate",[lp("collapsed, void",ap({transform:"rotate(0deg)"})),lp("expanded",ap({transform:"rotate(180deg)"})),cp("expanded <=> collapsed, void => collapsed",sp(dO))]),bodyExpansion:rp("bodyExpansion",[lp("collapsed, void",ap({height:"0px",visibility:"hidden"})),lp("expanded",ap({height:"*",visibility:"visible"})),cp("expanded <=> collapsed, void => collapsed",sp(dO))])};let pO=(()=>{class e{constructor(e){this._template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e})(),mO=0;const fO=new en("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let gO=(()=>{class e extends tO{constructor(e,t,i,n,r,s,o){super(e,t,i),this._viewContainerRef=n,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new vu,this.afterCollapse=new vu,this._inputChanges=new x,this._headerId="mat-expansion-panel-header-"+mO++,this._bodyAnimationDone=new x,this.accordion=e,this._document=r,this._bodyAnimationDone.pipe(lS((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{"void"!==e.fromState&&("expanded"===e.toState?this.afterExpand.emit():"collapsed"===e.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Gk(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(mg(null),bh(()=>this.expanded&&!this._portal),dg(1)).subscribe(()=>{this._portal=new bM(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return e.\u0275fac=function(t){return new(t||e)(Go(cO,12),Go(ql),Go(WS),Go(Kl),Go(zc),Go(zf,8),Go(fO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,pO,5),2&e){let e;Au(e=Pu())&&(t._lazyContent=e.first)}},viewQuery:function(e,t){if(1&e&&Iu(nO,5),2&e){let e;Au(e=Pu())&&(t._body=e.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&xa("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[sl([{provide:cO,useValue:void 0}]),Oo,ct],ngContentSelectors:oO,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(fa(sO),ga(0),Ko(1,"div",0,1),la("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),Ko(3,"div",2),ga(4,1),$o(5,rO,0,0,"ng-template",3),Jo(),ga(6,2),Jo()),2&e&&(fs(1),Zo("@bodyExpansion",t._getExpandedState())("id",t.id),Bo("aria-labelledby",t._headerId),fs(4),Zo("cdkPortalOutlet",t._portal))},directives:[SM],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hO.bodyExpansion]},changeDetection:0}),e})();class _O{}const yO=Dx(_O);let bO=(()=>{class e extends yO{constructor(e,t,i,n,r,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=s,this._parentChangeSubscription=d.EMPTY;const a=e.accordion?e.accordion._stateChanges.pipe(bh(e=>!(!e.hideToggle&&!e.togglePosition))):rg;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=W(e.opened,e.closed,a,e._inputChanges.pipe(bh(e=>!!(e.hideToggle||e.disabled||e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(bh(()=>e._containsFocus())).subscribe(()=>i.focusVia(t,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:XS(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return e.\u0275fac=function(t){return new(t||e)(Go(gO,1),Go(pl),Go(NT),Go(ql),Go(fO,8),Go(zf,8),Gi("tabindex"))},e.\u0275cmp=Ve({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&la("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(Bo("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Ea("height",t._getHeaderHeight()),xa("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Oo],ngContentSelectors:uO,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(fa(lO),Ko(0,"span",0),ga(1),ga(2,1),ga(3,2),Jo(),$o(4,aO,1,1,"span",1)),2&e&&(fs(4),Zo("ngIf",t._showToggle()))},directives:[gd],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hO.indicatorRotate]},changeDetection:0}),e})(),vO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e})(),wO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e})(),kO=(()=>{class e extends XL{constructor(){super(...arguments),this._ownHeaders=new ku,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Gk(e)}ngAfterContentInit(){this._headers.changes.pipe(mg(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(e=>e.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ST(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,bO,5),2&e){let e;Au(e=Pu())&&(t._headers=e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[sl([{provide:cO,useExisting:e}]),Oo]}),e})(),SO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,iO,TM]]}),e})();const TO=["*"],EO=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n";class xO{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const e=Math.max(...this.tracker);return e>1?this.rowCount+e-1:this.rowCount}update(e,t){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(e=>this._trackTile(e))}_trackTile(e){const t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new MO(this.rowIndex,t)}_findMatchingGap(e){let t=-1,i=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):(t=this.tracker.indexOf(0,this.columnIndex),-1!=t?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)))}while(i-t{class e{constructor(e,t){this._element=e,this._gridList=t,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(Zk(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(Zk(e))}_setStyle(e,t){this._element.nativeElement.style[e]=t}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&Bo("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:TO,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),ga(1),Jo())},styles:[EO],encapsulation:2,changeDetection:0}),e})();const LO=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class OO{constructor(){this._rows=0,this._rowspan=0}init(e,t,i,n){this._gutterSize=YO(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=n}getBaseTileSize(e,t){return`(${e}% - (${this._gutterSize} * ${t}))`}getTilePosition(e,t){return 0===t?"0":PO(`(${e} + ${this._gutterSize}) * ${t}`)}getTileSize(e,t){return`(${e} * ${t}) + (${t-1} * ${this._gutterSize})`}setStyle(e,t,i){let n=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(e,i,n,r),this.setRowStyles(e,t,n,r)}setColStyles(e,t,i,n){let r=this.getBaseTileSize(i,n);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,t)),e._setStyle("width",PO(this.getTileSize(r,e.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(e){return`${this._rowspan} * ${this.getTileSize(e,1)}`}getComputedHeight(){return null}}class AO extends OO{constructor(e){super(),this.fixedRowHeight=e}init(e,t,i,n){super.init(e,t,i,n),this.fixedRowHeight=YO(this.fixedRowHeight),LO.test(this.fixedRowHeight)}setRowStyles(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",PO(this.getTileSize(this.fixedRowHeight,e.rowspan)))}getComputedHeight(){return["height",PO(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}class IO extends OO{constructor(e){super(),this._parseRatio(e)}setRowStyles(e,t,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",PO(this.getTileSize(this.baseTileHeight,e.rowspan)))}getComputedHeight(){return["paddingBottom",PO(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(e){const t=e.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}class RO extends OO{setRowStyles(e,t){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(i,t)),e._setStyle("height",PO(this.getTileSize(i,e.rowspan)))}reset(e){e._tiles&&e._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}function PO(e){return`calc(${e})`}function YO(e){return e.match(/([A-Za-z%]+)$/)?e:`${e}px`}let FO=(()=>{class e{constructor(e,t){this._element=e,this._dir=t,this._gutter="1px"}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(Zk(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${null==e?"":e}`}get rowHeight(){return this._rowHeight}set rowHeight(e){const t=`${null==e?"":e}`;t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new RO:e&&e.indexOf(":")>-1?new IO(e):new AO(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new xO);const e=this._tileCoordinator,t=this._tiles.filter(e=>!e._gridList||e._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,t),this._tileStyler.init(this.gutterSize,e,this.cols,i),t.forEach((t,i)=>{const n=e.positions[i];this._tileStyler.setStyle(t,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-grid-list"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,DO,5),2&e){let e;Au(e=Pu())&&(t._tiles=e)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&Bo("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[sl([{provide:CO,useExisting:e}])],ngContentSelectors:TO,decls:2,vars:0,template:function(e,t){1&e&&(fa(),Ko(0,"div"),ga(1),Jo())},styles:[EO],encapsulation:2,changeDetection:0}),e})(),jO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Gx,Ex],Gx,Ex]}),e})();const qO=["*"],NO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],HO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],UO=xx(Cx(class{})),zO=Cx(class{}),BO=new en("MatList"),VO=new en("MatNavList");let $O=(()=>{class e extends UO{constructor(e){super(),this._elementRef=e,this._stateChanges=new x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275cmp=Ve({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[sl([{provide:BO,useExisting:e}]),Oo,ct],ngContentSelectors:qO,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),e})(),WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e})(),GO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e})(),ZO=(()=>{class e extends zO{constructor(e,t,i,n){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new x,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const r=this._getHostElement();"button"===r.nodeName.toLowerCase()&&!r.hasAttribute("type")&&r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(yS(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Gk(e)}ngAfterContentInit(){!function(e,t,i="mat"){e.changes.pipe(mg(e)).subscribe(({length:e})=>{Wx(t,`${i}-2-line`,!1),Wx(t,`${i}-3-line`,!1),Wx(t,`${i}-multi-line`,!1),2===e||3===e?Wx(t,`${i}-${e}-line`,!0):e>3&&Wx(t,`${i}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(VO,8),Go(BO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,WO,5),Ru(i,GO,5),Ru(i,$x,5)),2&e){let e;Au(e=Pu())&&(t._avatar=e.first),Au(e=Pu())&&(t._icon=e.first),Au(e=Pu())&&(t._lines=e)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&xa("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Oo],ngContentSelectors:HO,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(fa(NO),Ko(0,"div",0),Xo(1,"div",1),ga(2),Ko(3,"div",2),ga(4,1),Jo(),ga(5,2),Jo()),2&e&&(fs(1),Zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[iM],encapsulation:2,changeDetection:0}),e})(),QO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Gx,nM,Ex,sM,Dd],Gx,Ex,sM,QL]}),e})();const KO=["mat-menu-item",""];function JO(e,t){1&e&&(ci(),Ko(0,"svg",2),Xo(1,"polygon",3),Jo())}const XO=["*"];function eA(e,t){if(1&e){const e=na();Ko(0,"div",0),la("keydown",function(t){return Yt(e),pa()._handleKeydown(t)})("click",function(){return Yt(e),pa().closed.emit("click")})("@transformMenu.start",function(t){return Yt(e),pa()._onAnimationStart(t)})("@transformMenu.done",function(t){return Yt(e),pa()._onAnimationDone(t)}),Ko(1,"div",1),ga(2),Jo(),Jo()}if(2&e){const e=pa();Zo("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Bo("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const tA={transformMenu:rp("transformMenu",[lp("void",ap({opacity:0,transform:"scale(0.8)"})),cp("void => enter",sp("120ms cubic-bezier(0, 0, 0.2, 1)",ap({opacity:1,transform:"scale(1)"}))),cp("* => void",sp("100ms 25ms linear",ap({opacity:0})))]),fadeInItems:rp("fadeInItems",[lp("showing",ap({opacity:1})),cp("void => *",[ap({opacity:0}),sp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},iA=new en("MatMenuContent"),nA=new en("MAT_MENU_PANEL"),rA=Cx(xx(class{}));let sA=(()=>{class e extends rA{constructor(e,t,i,n,r){super(),this._elementRef=e,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=r,this.role="menuitem",this._hovered=new x,this._focused=new x,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class e{constructor(e,t,i){this._elementRef=e,this._ngZone=t,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new ku,this._tabSubscription=d.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new vu,this.close=this.closed,this.panelId="mat-menu-panel-"+aA++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Gk(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Gk(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ST(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(mg(this._directDescendantItems),ag(e=>W(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(mg(this._directDescendantItems),ag(e=>W(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,i=this._keyManager;switch(t){case 27:XS(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===t||40===t)&&i.setFocusOrigin("keyboard"),i.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(dg(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(e=>e.startsWith(this._elevationPrefix));(!n||n===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}setPositionClasses(e=this.xPosition,t=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===e,i["mat-menu-after"]="after"===e,i["mat-menu-above"]="above"===t,i["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(mg(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(oA))},e.\u0275dir=Ke({type:e,contentQueries:function(e,t,i){if(1&e&&(Ru(i,iA,5),Ru(i,sA,5),Ru(i,sA,4)),2&e){let e;Au(e=Pu())&&(t.lazyContent=e.first),Au(e=Pu())&&(t._allItems=e),Au(e=Pu())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Iu(Bl,5),2&e){let e;Au(e=Pu())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),uA=(()=>{class e extends lA{constructor(e,t,i){super(e,t,i),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(oA))},e.\u0275cmp=Ve({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Bo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[sl([{provide:nA,useExisting:e}]),Oo],ngContentSelectors:XO,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(fa(),$o(0,eA,3,6,"ng-template"))},directives:[hd],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[tA.transformMenu,tA.fadeInItems]},changeDetection:0}),e})();const cA=new en("mat-menu-scroll-strategy"),dA={provide:cA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},hA=PS({passive:!0});let pA=(()=>{class e{constructor(e,t,i,n,r,s,o,a){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.EMPTY,this._hoverSubscription=d.EMPTY,this._menuCloseSubscription=d.EMPTY,this._handleTouchStart=e=>{LT(e)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new vu,this.onMenuOpen=this.menuOpened,this.menuClosed=new vu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=r instanceof lA?r:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,hA),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),("click"===e||"tab"===e)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,hA),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof lA&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof lA?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(bh(e=>"void"===e.toState),dg(1),yS(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new PM({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[n,r],[a,l]=[t,i],u=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",i=a="end"===t?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(s="top"===n?"bottom":"top",o="top"===r?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:s,overlayX:l,overlayY:n,offsetY:u},{originX:t,originY:o,overlayX:a,overlayY:r,offsetY:-u},{originX:i,originY:o,overlayX:l,overlayY:r,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return W(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:_h(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(bh(e=>e!==this._menuItemInstance),bh(()=>this._menuOpen)):_h(),t)}_handleMousedown(e){DT(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(bh(e=>e===this._menuItemInstance&&!e.disabled),UC(0,aS)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof lA&&this.menu._isAnimating?this.menu._animationDone.pipe(dg(1),UC(0,aS),yS(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new bM(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(Kl),Go(cA),Go(nA,8),Go(sA,10),Go(US,8),Go(NT))},e.\u0275dir=Ke({type:e,hostVars:3,hostBindings:function(e,t){1&e&&la("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Bo("aria-haspopup",t._ariaHaspopup)("aria-expanded",t._ariaExpanded)("aria-controls",t._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),e})(),mA=(()=>{class e extends pA{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Oo]}),e})(),fA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[dA],imports:[[Dd,Ex,nM,oC],KS,Ex]}),e})();const gA=["trigger"],_A=["panel"];function yA(e,t){if(1&e&&(Ko(0,"span",8),Fa(1),Jo()),2&e){const e=pa();fs(1),ja(e.placeholder)}}function bA(e,t){if(1&e&&(Ko(0,"span",12),Fa(1),Jo()),2&e){const e=pa(2);fs(1),ja(e.triggerValue)}}function vA(e,t){1&e&&ga(0,0,["*ngSwitchCase","true"])}function wA(e,t){1&e&&(Ko(0,"span",9),$o(1,bA,2,1,"span",10),$o(2,vA,1,0,"ng-content",11),Jo()),2&e&&(Zo("ngSwitch",!!pa().customTrigger),fs(2),Zo("ngSwitchCase",!0))}function kA(e,t){if(1&e){const e=na();Ko(0,"div",13),Ko(1,"div",14,15),la("@transformPanel.done",function(t){return Yt(e),pa()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Yt(e),pa()._handleKeydown(t)}),ga(3,1),Jo(),Jo()}if(2&e){const e=pa();Zo("@transformPanelWrap",void 0),fs(1),Ha("mat-select-panel ",e._getPanelTheme(),""),Ea("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),Zo("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Bo("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const SA=[[["mat-select-trigger"]],"*"],TA=["mat-select-trigger","*"],EA={transformPanelWrap:rp("transformPanelWrap",[cp("* => void",hp("@transformPanel",[dp()],{optional:!0}))]),transformPanel:rp("transformPanel",[lp("void",ap({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),lp("showing",ap({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),lp("showing-multiple",ap({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),cp("void => *",sp("120ms cubic-bezier(0, 0, 0.2, 1)")),cp("* => void",sp("100ms 25ms linear",ap({opacity:0})))])};let xA=0;const MA=new en("mat-select-scroll-strategy"),CA=new en("MAT_SELECT_CONFIG"),DA={provide:MA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class LA{constructor(e,t){this.source=e,this.value=t}}const OA=Cx(Dx(xx(Lx(class{constructor(e,t,i,n,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}})))),AA=new en("MatSelectTrigger");let IA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-select-trigger"]],features:[sl([{provide:AA,useExisting:e}])]}),e})(),RA=(()=>{class e extends OA{constructor(e,t,i,n,r,s,o,a,l,u,c,d,h,p){var m,f,g;super(r,n,o,a,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=i,this._dir=s,this._parentFormField=l,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+xA++,this._triggerAriaLabelledBy=null,this._destroy=new x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+xA++,this._panelDoneAnimatingStream=new x,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(g=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this.optionSelectionChanges=og(()=>{const e=this.options;return e?e.changes.pipe(mg(e),ag(()=>W(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(dg(1),ag(()=>this.optionSelectionChanges))}),this.openedChange=new vu,this._openedStream=this.openedChange.pipe(bh(e=>e),D(()=>{})),this._closedStream=this.openedChange.pipe(bh(e=>!e),D(()=>{})),this.selectionChange=new vu,this.valueChange=new vu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(c)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Gk(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Gk(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Gk(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Zk(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new $S(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(lS(),yS(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(yS(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(mg(null),yS(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,i=40===t||38===t||37===t||39===t,n=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&n&&!XS(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;r.onKeydown(e);const i=this.selected;i&&t!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,i=e.keyCode,n=40===i||38===i,r=t.isTyping();if(n&&e.altKey)e.preventDefault(),this.close();else if(r||13!==i&&32!==i||!t.activeItem||XS(e))if(!r&&this._multiple&&65===i&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const i=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==i&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(dg(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(i){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new kT(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(yS(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(yS(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yS(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(e=>e._stateChanges)).pipe(yS(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let i=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(Go(QS),Go(ql),Go(cc),Go(Vx),Go(pl),Go(US,8),Go(Mk,8),Go(Fk,8),Go(qC,8),Go(Qw,10),Gi("tabindex"),Go(MA),Go(FT),Go(CA,8))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&(Iu(gA,5),Iu(_A,5),Iu(rC,5)),2&e){let e;Au(e=Pu())&&(t.trigger=e.first),Au(e=Pu())&&(t.panel=e.first),Au(e=Pu())&&(t._overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oo,ct]}),e})(),PA=(()=>{class e extends RA{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(yS(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=fM(e,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function(e,t,i,n){return ei+n?Math.max(0,e-n+t):i}((e+t)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new LA(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let e=this._selectionModel.selected[0]||this.options.first;r=e&&e.group?32:16}i||(r*=-1);const s=0-(e.left+r-(i?n:0)),o=e.right+r-t.width+(i?0:n);s>0?r+=s+8:o>0&&(r-=o+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,i){const n=this._getItemHeight(),r=(n-this._triggerRect.height)/2,s=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*n:this._scrollTop===i?(e-(this._getItemCount()-s))*n+(n-(this._getItemCount()*n-256)%n):t-n/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>n?this._adjustPanelDown(s,n,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,i){const n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=fM(r,this.options,this.optionGroups);const s=i/2;this._scrollTop=this._calculateOverlayScroll(r,s,n),this._offsetY=this._calculateOverlayOffsetY(r,s,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,AA,5),Ru(i,mM,5),Ru(i,cM,5)),2&e){let e;Au(e=Pu())&&(t.customTrigger=e.first),Au(e=Pu())&&(t.options=e),Au(e=Pu())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&la("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Bo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),xa("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[sl([{provide:CC,useExisting:e},{provide:oM,useExisting:e}]),Oo],ngContentSelectors:TA,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(fa(SA),Ko(0,"div",0,1),la("click",function(){return t.toggle()}),Ko(3,"div",2),$o(4,yA,2,1,"span",3),$o(5,wA,3,2,"span",4),Jo(),Ko(6,"div",5),Xo(7,"div",6),Jo(),Jo(),$o(8,kA,4,14,"ng-template",7),la("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=Wo(1);Bo("aria-owns",t.panelOpen?t.id+"-panel":null),fs(3),Zo("ngSwitch",t.empty),Bo("id",t._valueId),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1),fs(3),Zo("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[nC,vd,wd,rC,kd,hd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[EA.transformPanelWrap,EA.transformPanel]},changeDetection:0}),e})(),YA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[DA],imports:[[Dd,oC,gM,Ex],KS,HC,gM,Ex]}),e})();const FA={tooltipState:rp("state",[lp("initial, void, hidden",ap({opacity:0,transform:"scale(0)"})),lp("visible",ap({transform:"scale(1)"})),cp("* => visible",sp("200ms cubic-bezier(0, 0, 0.2, 1)",up([ap({opacity:0,transform:"scale(0)",offset:0}),ap({opacity:.5,transform:"scale(0.99)",offset:.5}),ap({opacity:1,transform:"scale(1)",offset:1})]))),cp("* => hidden",sp("100ms cubic-bezier(0, 0, 0.2, 1)",ap({opacity:0})))])},jA="tooltip-panel",qA=PS({passive:!0}),NA=new en("mat-tooltip-scroll-strategy"),HA={provide:NA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},UA=new en("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let zA=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c,d){this._overlay=e,this._elementRef=t,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=c,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new x,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!XS(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=d,c&&(c.position&&(this.position=c.position),c.touchGestures&&(this.touchGestures=c.touchGestures)),u.change.pipe(yS(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yS(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,i])=>{e.removeEventListener(t,i,qA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new yM(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(yS(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(yS(this._destroyed)).subscribe(e=>{this._updateCurrentPositionClass(e.connectionPair),this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${jA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yS(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yS(this._destroyed)).subscribe(()=>{var e;return null===(e=this._tooltipInstance)||void 0===e?void 0:e._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let i;"above"==t||"below"==t?i={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?i={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(i={originX:"end",originY:"center"});const{x:n,y:r}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:r}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let i;"above"==t?i={overlayX:"center",overlayY:"bottom"}:"below"==t?i={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?i={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:r}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(dg(1),yS(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:i,originY:n}=e;let r;if(r="center"===t?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===t&&"top"===n?"above":"below",r!==this._currentPosition){const e=this._overlayRef;if(e){const t=`${this._cssClassPrefix}-${jA}-`;e.removePanelClass(t+this._currentPosition),e.addPanelClass(t+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,qA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),i=this._elementRef.nativeElement;t!==i&&!i.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,i=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),("on"===e||!t.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(ZS),Go(Kl),Go(cc),Go(CS),Go(yT),Go(NT),Go(void 0),Go(US),Go(void 0),Go(zc))},e.\u0275dir=Ke({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e})(),BA=(()=>{class e extends zA{constructor(e,t,i,n,r,s,o,a,l,u,c,d){super(e,t,i,n,r,s,o,a,l,u,c,d),this._tooltipComponent=$A}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(ZS),Go(Kl),Go(cc),Go(CS),Go(yT),Go(NT),Go(NA),Go(US,8),Go(UA,8),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Oo]}),e})(),VA=(()=>{class e{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new x}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return e.\u0275fac=function(t){return new(t||e)(Go(ql))},e.\u0275dir=Ke({type:e}),e})(),$A=(()=>{class e extends VA{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return e.\u0275fac=function(t){return new(t||e)(Go(ql),Go(XC))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Ea("zoom","visible"===t._visibility?1:null)},features:[Oo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ko(0,"div",0),la("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),_u(1,"async"),Fa(2),Jo()),2&e){let e;xa("mat-tooltip-handset",null==(e=yu(1,5,t._isHandset))?null:e.matches),Zo("ngClass",t.tooltipClass)("@state",t._visibility),fs(2),ja(t.message)}},directives:[hd],pipes:[Cd],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[FA.tooltipState]},changeDetection:0}),e})(),WA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[HA],imports:[[$T,Dd,oC,Ex],Ex,KS]}),e})();function GA(e,t){if(1&e&&(Ko(0,"mat-option",19),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),qa(" ",e," ")}}function ZA(e,t){if(1&e){const e=na();Ko(0,"mat-form-field",16),Ko(1,"mat-select",17),la("selectionChange",function(t){return Yt(e),pa(2)._changePageSize(t.value)}),$o(2,GA,2,2,"mat-option",18),Jo(),Jo()}if(2&e){const e=pa(2);Zo("appearance",e._formFieldAppearance)("color",e.color),fs(1),Zo("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),fs(1),Zo("ngForOf",e._displayedPageSizeOptions)}}function QA(e,t){if(1&e&&(Ko(0,"div",20),Fa(1),Jo()),2&e){const e=pa(2);fs(1),ja(e.pageSize)}}function KA(e,t){if(1&e&&(Ko(0,"div",12),Ko(1,"div",13),Fa(2),Jo(),$o(3,ZA,3,6,"mat-form-field",14),$o(4,QA,2,1,"div",15),Jo()),2&e){const e=pa();fs(2),qa(" ",e._intl.itemsPerPageLabel," "),fs(1),Zo("ngIf",e._displayedPageSizeOptions.length>1),fs(1),Zo("ngIf",e._displayedPageSizeOptions.length<=1)}}function JA(e,t){if(1&e){const e=na();Ko(0,"button",21),la("click",function(){return Yt(e),pa().firstPage()}),ci(),Ko(1,"svg",7),Xo(2,"path",22),Jo(),Jo()}if(2&e){const e=pa();Zo("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Bo("aria-label",e._intl.firstPageLabel)}}function XA(e,t){if(1&e){const e=na();ci(),di(),Ko(0,"button",23),la("click",function(){return Yt(e),pa().lastPage()}),ci(),Ko(1,"svg",7),Xo(2,"path",24),Jo(),Jo()}if(2&e){const e=pa();Zo("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Bo("aria-label",e._intl.lastPageLabel)}}let eI=(()=>{class e{constructor(){this.changes=new x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,i)=>{if(0==i||0==t)return`0 of ${i}`;const n=e*t;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+t,i):n+t} of ${i}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const tI={provide:eI,deps:[[new On,new An,eI]],useFactory:function(e){return e||new eI}},iI=new en("MAT_PAGINATOR_DEFAULT_OPTIONS"),nI=xx(Ox(class{}));let rI=(()=>{class e extends nI{constructor(e,t,i){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new vu,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:e,pageSizeOptions:t,hidePageSize:n,showFirstLastButtons:r}=i;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=n&&(this._hidePageSize=n),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Zk(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Zk(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Zk(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>Zk(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Gk(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Gk(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(Go(eI),Go(ql),Go(void 0))},e.\u0275dir=Ke({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Oo]}),e})(),sI=(()=>{class e extends rI{constructor(e,t,i){super(e,t,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(Go(eI),Go(ql),Go(iI,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Oo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),$o(2,KA,5,3,"div",2),Ko(3,"div",3),Ko(4,"div",4),Fa(5),Jo(),$o(6,JA,3,5,"button",5),Ko(7,"button",6),la("click",function(){return t.previousPage()}),ci(),Ko(8,"svg",7),Xo(9,"path",8),Jo(),Jo(),di(),Ko(10,"button",9),la("click",function(){return t.nextPage()}),ci(),Ko(11,"svg",7),Xo(12,"path",10),Jo(),Jo(),$o(13,XA,3,5,"button",11),Jo(),Jo(),Jo()),2&e&&(fs(2),Zo("ngIf",!t.hidePageSize),fs(3),qa(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),fs(1),Zo("ngIf",t.showFirstLastButtons),fs(1),Zo("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Bo("aria-label",t._intl.previousPageLabel),fs(3),Zo("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Bo("aria-label",t._intl.nextPageLabel),fs(3),Zo("ngIf",t.showFirstLastButtons))},directives:[gd,oD,BA,NC,PA,md,mM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),e})(),oI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[tI],imports:[[Dd,aD,YA,WA,Ex]]}),e})(),aI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex],Ex]}),e})();function lI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function uI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function cI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function dI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}const hI=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",pI=Mx(class{constructor(e){this._elementRef=e}},"primary"),mI=new en("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class fI extends pI{constructor(e,t,i,n,r){super(e),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const s=fI._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._fallbackAnimation=t.EDGE||t.TRIDENT,this._noopAnimations="NoopAnimations"===n&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(e){this._diameter=Zk(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(e){this._strokeWidth=Zk(e)}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,Zk(e)))}ngOnInit(){const e=this._elementRef.nativeElement;this._styleRoot=FS(e)||this._document.head,this._attachStyleNode(),e.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const e=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,t=this._diameter,i=fI._diameters;let n=i.get(e);if(!n||!n.has(t)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),e.appendChild(r),n||(n=new Set,i.set(e,n)),n.add(t)}}_getAnimationText(){const e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}fI.\u0275fac=function(e){return new(e||fI)(Go(pl),Go(CS),Go(zc,8),Go(zf,8),Go(mI))},fI.\u0275cmp=Ve({type:fI,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Bo("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),Ea("width",t.diameter,"px")("height",t.diameter,"px"),xa("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ci(),Ko(0,"svg",0),$o(1,lI,1,9,"circle",1),$o(2,uI,1,7,"circle",2),Jo()),2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),Zo("ngSwitch","indeterminate"===t.mode),Bo("viewBox",t._getViewBox()),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1))},directives:[vd,wd],styles:[hI],encapsulation:2,changeDetection:0}),fI._diameters=new WeakMap;let gI=(()=>{class e extends fI{constructor(e,t,i,n,r){super(e,t,i,n,r),this.mode="indeterminate"}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(zc,8),Go(zf,8),Go(mI))},e.\u0275cmp=Ve({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),xa("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ci(),Ko(0,"svg",0),$o(1,cI,1,9,"circle",1),$o(2,dI,1,7,"circle",2),Jo()),2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),Zo("ngSwitch","indeterminate"===t.mode),Bo("viewBox",t._getViewBox()),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1))},directives:[vd,wd],styles:[hI],encapsulation:2,changeDetection:0}),e})(),_I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,Dd],Ex]}),e})();const yI=["input"],bI=function(e){return{enterDuration:e}},vI=["*"],wI=new en("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let kI=0;const SI={provide:bw,useExisting:ae(()=>MI),multi:!0};class TI{constructor(e,t){this.source=e,this.value=t}}const EI=new en("MatRadioGroup");let xI=(()=>{class e{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+kI++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new vu}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Gk(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(e=>{e.checked=this.value===e.value,e.checked&&(this._selected=e)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new TI(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Go(ql))},e.\u0275dir=Ke({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e})(),MI=(()=>{class e extends xI{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,OI,5),2&e){let e;Au(e=Pu())&&(t._radios=e)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[sl([SI,{provide:EI,useExisting:e}]),Oo]}),e})();class CI{constructor(e){this._elementRef=e}}const DI=Cx(Dx(CI));let LI=(()=>{class e extends DI{constructor(e,t,i,n,r,s,o,a){super(t),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++kI,this.id=this._uniqueId,this.change=new vu,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,a&&(this.tabIndex=Zk(a,0)),this._removeUniqueSelectionListener=r.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Gk(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Gk(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Gk(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new TI(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Go(xI),Go(pl),Go(ql),Go(NT),Go(WS),Go(String),Go(void 0),Go(String))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Iu(yI,5),2&e){let e;Au(e=Pu())&&(t._inputElement=e.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[Oo]}),e})(),OI=(()=>{class e extends LI{constructor(e,t,i,n,r,s,o,a){super(e,t,i,n,r,s,o,a)}}return e.\u0275fac=function(t){return new(t||e)(Go(EI,8),Go(pl),Go(ql),Go(NT),Go(WS),Go(zf,8),Go(wI,8),Gi("tabindex"))},e.\u0275cmp=Ve({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&la("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(Bo("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),xa("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Oo],ngContentSelectors:vI,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"span",2),Xo(3,"span",3),Xo(4,"span",4),Ko(5,"input",5,6),la("change",function(e){return t._onInputInteraction(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(7,"span",7),Xo(8,"span",8),Jo(),Jo(),Ko(9,"span",9),Ko(10,"span",10),Fa(11,"\xa0"),Jo(),ga(12),Jo(),Jo()),2&e){const e=Wo(1);Bo("for",t.inputId),fs(5),Zo("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),Bo("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),fs(2),Zo("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pu(18,bI,t._noopAnimations?0:150)),fs(2),xa("mat-radio-label-before","before"==t.labelPosition)}},directives:[iM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e})(),AI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex],Ex]}),e})(),II=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,DS,KS],KS,Ex]}),e})(),RI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex],Ex]}),e})();const PI=["thumbContainer"],YI=["toggleBar"],FI=["input"],jI=function(e){return{enterDuration:e}},qI=["*"],NI=new en("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let HI=0;const UI={provide:bw,useExisting:ae(()=>VI),multi:!0};class zI{constructor(e,t){this.source=e,this.checked=t}}const BI=Dx(Mx(Cx(xx(class{constructor(e){this._elementRef=e}}))));let VI=(()=>{class e extends BI{constructor(e,t,i,n,r,s){super(e),this._focusMonitor=t,this._changeDetectorRef=i,this.defaults=r,this._onChange=e=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++HI,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new vu,this.toggleChange=new vu,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===s}get required(){return this._required}set required(e){this._required=Gk(e)}get checked(){return this._checked}set checked(e){this._checked=Gk(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._inputElement.nativeElement.focus():e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new zI(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT),Go(ql),Gi("tabindex"),Go(NI),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(Iu(PI,5),Iu(YI,5),Iu(FI,5)),2&e){let e;Au(e=Pu())&&(t._thumbEl=e.first),Au(e=Pu())&&(t._thumbBarEl=e.first),Au(e=Pu())&&(t._inputElement=e.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Bo("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),xa("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[sl([UI]),Oo],ngContentSelectors:qI,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"div",2,3),Ko(4,"input",4,5),la("change",function(e){return t._onChangeEvent(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(6,"div",6,7),Xo(8,"div",8),Ko(9,"div",9),Xo(10,"div",10),Jo(),Jo(),Jo(),Ko(11,"span",11,12),la("cdkObserveContent",function(){return t._onLabelTextChange()}),Ko(13,"span",13),Fa(14,"\xa0"),Jo(),ga(15),Jo(),Jo()),2&e){const e=Wo(1),i=Wo(12);Bo("for",t.inputId),fs(2),xa("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),fs(2),Zo("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),Bo("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),fs(5),Zo("matRippleTrigger",e)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pu(18,jI,t._noopAnimations?0:150))}},directives:[iM,uT],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e})(),$I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),WI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[$I,nM,Ex,cT],$I,Ex]}),e})();function GI(e,t){if(1&e){const e=na();Ko(0,"div",1),Ko(1,"button",2),la("click",function(){return Yt(e),pa().action()}),Fa(2),Jo(),Jo()}if(2&e){const e=pa();fs(2),ja(e.data.action)}}function ZI(e,t){}const QI=new en("MatSnackBarData");class KI{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const JI=Math.pow(2,31)-1;class XI{constructor(e,t){this._overlayRef=t,this._afterDismissed=new x,this._afterOpened=new x,this._onAction=new x,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(()=>this.dismiss()),e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,JI))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let eR=(()=>{class e{constructor(e,t){this.snackBarRef=e,this.data=t}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return e.\u0275fac=function(t){return new(t||e)(Go(XI),Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Ko(0,"span"),Fa(1),Jo(),$o(2,GI,3,1,"div",0)),2&e&&(fs(1),ja(t.data.message),fs(1),Zo("ngIf",t.hasAction))},directives:[gd,oD],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e})();const tR={snackBarState:rp("state",[lp("void, hidden",ap({transform:"scale(0.8)",opacity:0})),lp("visible",ap({transform:"scale(1)",opacity:1})),cp("* => visible",sp("150ms cubic-bezier(0, 0, 0.2, 1)")),cp("* => void, * => hidden",sp("75ms cubic-bezier(0.4, 0.0, 1, 1)",ap({opacity:0})))])};let iR=(()=>{class e extends wM{constructor(e,t,i,n,r){super(),this._ngZone=e,this._elementRef=t,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x,this._onExit=new x,this._onEnter=new x,this._animationState="void",this.attachDomPortal=e=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(e)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:t,toState:i}=e;if(("void"===i&&"void"!==t||"hidden"===i)&&this._completeExit(),"visible"===i){const e=this._onEnter;this._ngZone.run(()=>{e.next(),e.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(dg(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(t=>e.classList.add(t)):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),t=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&t){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),t.appendChild(e),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return e.\u0275fac=function(t){return new(t||e)(Go(cc),Go(pl),Go(ql),Go(CS),Go(KI))},e.\u0275cmp=Ve({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){if(1&e&&Iu(SM,7),2&e){let e;Au(e=Pu())&&(t._portalOutlet=e.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&ua("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&za("@state",t._animationState)},features:[Oo],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(Ko(0,"div",0),$o(1,ZI,0,0,"ng-template",1),Jo(),Xo(2,"div")),2&e&&(fs(2),Bo("aria-live",t._live)("role",t._role))},directives:[SM],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[tR.snackBarState]}}),e})(),nR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[oC,TM,Dd,aD,Ex],Ex]}),e})();const rR=new en("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new KI}});let sR=(()=>{class e{constructor(e,t,i,n,r,s){this._overlay=e,this._live=t,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=eR,this.snackBarContainerComponent=iR,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:e,action:t},n.announcementMessage===e&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){const i=Do.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:KI,useValue:t}]}),n=new yM(this.snackBarContainerComponent,t.viewContainerRef,i),r=e.attach(n);return r.instance.snackBarConfig=t,r.instance}_attach(e,t){const i=Object.assign(Object.assign(Object.assign({},new KI),this._defaultConfig),t),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),s=new XI(r,n);if(e instanceof Bl){const t=new bM(e,null,{$implicit:i.data,snackBarRef:s});s.instance=r.attachTemplatePortal(t)}else{const t=this._createInjector(i,s),n=new yM(e,void 0,t),o=r.attachComponentPortal(n);s.instance=o.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yS(n.detachments())).subscribe(e=>{const t=n.overlayElement.classList;e.matches?t.add(this.handsetCssClass):t.remove(this.handsetCssClass)}),i.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(s,i),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration))}_createOverlay(e){const t=new PM;t.direction=e.direction;let i=this._overlay.position().global();const n="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!n||"end"===e.horizontalPosition&&n,s=!r&&"center"!==e.horizontalPosition;return r?i.left("0"):s?i.right("0"):i.centerHorizontally(),"top"===e.verticalPosition?i.top("0"):i.bottom("0"),t.positionStrategy=i,this._overlay.create(t)}_createInjector(e,t){return Do.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:XI,useValue:t},{provide:QI,useValue:e.data}]})}}return e.\u0275fac=function(t){return new(t||e)(Tn(eC),Tn(FT),Tn(Do),Tn(XC),Tn(e,12),Tn(rR))},e.\u0275prov=fe({factory:function(){return new e(Tn(eC),Tn(FT),Tn(mo),Tn(XC),Tn(e,12),Tn(rR))},token:e,providedIn:nR}),e})();const oR=["mat-sort-header",""];function aR(e,t){if(1&e){const e=na();Ko(0,"div",3),la("@arrowPosition.start",function(){return Yt(e),pa()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Yt(e),pa()._disableViewStateAnimation=!1}),Xo(1,"div",4),Ko(2,"div",5),Xo(3,"div",6),Xo(4,"div",7),Xo(5,"div",8),Jo(),Jo()}if(2&e){const e=pa();Zo("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),fs(2),Zo("@indicator",e._getArrowDirectionState()),fs(1),Zo("@leftPointer",e._getArrowDirectionState()),fs(1),Zo("@rightPointer",e._getArrowDirectionState())}}const lR=["*"],uR=new en("MAT_SORT_DEFAULT_OPTIONS"),cR=Ox(xx(class{}));let dR=(()=>{class e extends cR{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new x,this.start="asc",this._direction="",this.sortChange=new vu}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Gk(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,i,n;if(!e)return"";const r=null!==(i=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let s=function(e,t){let i=["asc","desc"];return"desc"==e&&i.reverse(),t||i.push(""),i}(e.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Go(uR,8))},e.\u0275dir=Ke({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oo,ct]}),e})();const hR=kx.ENTERING+" "+wx.STANDARD_CURVE,pR={indicator:rp("indicator",[lp("active-asc, asc",ap({transform:"translateY(0px)"})),lp("active-desc, desc",ap({transform:"translateY(10px)"})),cp("active-asc <=> active-desc",sp(hR))]),leftPointer:rp("leftPointer",[lp("active-asc, asc",ap({transform:"rotate(-45deg)"})),lp("active-desc, desc",ap({transform:"rotate(45deg)"})),cp("active-asc <=> active-desc",sp(hR))]),rightPointer:rp("rightPointer",[lp("active-asc, asc",ap({transform:"rotate(45deg)"})),lp("active-desc, desc",ap({transform:"rotate(-45deg)"})),cp("active-asc <=> active-desc",sp(hR))]),arrowOpacity:rp("arrowOpacity",[lp("desc-to-active, asc-to-active, active",ap({opacity:1})),lp("desc-to-hint, asc-to-hint, hint",ap({opacity:.54})),lp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ap({opacity:0})),cp("* => asc, * => desc, * => active, * => hint, * => void",sp("0ms")),cp("* <=> *",sp(hR))]),arrowPosition:rp("arrowPosition",[cp("* => desc-to-hint, * => desc-to-active",sp(hR,up([ap({transform:"translateY(-25%)"}),ap({transform:"translateY(0)"})]))),cp("* => hint-to-desc, * => active-to-desc",sp(hR,up([ap({transform:"translateY(0)"}),ap({transform:"translateY(25%)"})]))),cp("* => asc-to-hint, * => asc-to-active",sp(hR,up([ap({transform:"translateY(25%)"}),ap({transform:"translateY(0)"})]))),cp("* => hint-to-asc, * => active-to-asc",sp(hR,up([ap({transform:"translateY(0)"}),ap({transform:"translateY(-25%)"})]))),lp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ap({transform:"translateY(0)"})),lp("hint-to-desc, active-to-desc, desc",ap({transform:"translateY(-25%)"})),lp("hint-to-asc, active-to-asc, asc",ap({transform:"translateY(25%)"}))]),allowChildren:rp("allowChildren",[cp("* <=> *",[hp("@*",dp(),{optional:!0})])])};let mR=(()=>{class e{constructor(){this.changes=new x}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const fR={provide:mR,deps:[[new On,new An,mR]],useFactory:function(e){return e||new mR}},gR=xx(class{});let _R=(()=>{class e extends gR{constructor(e,t,i,n,r,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=i,this._columnDef=n,this._focusMonitor=r,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Gk(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,i;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(i=this._ariaDescriber)||void 0===i||i.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=W(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(Go(mR),Go(ql),Go(dR,8),Go("MAT_SORT_HEADER_COLUMN_DEF",8),Go(NT),Go(pl),Go(yT,8))},e.\u0275cmp=Ve({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&la("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Bo("aria-sort",t._getAriaSortAttribute()),xa("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oo],attrs:oR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),Ko(1,"div",1),ga(2),Jo(),$o(3,aR,6,6,"div",2),Jo()),2&e&&(xa("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Bo("tabindex",t._isDisabled()?null:0),fs(3),Zo("ngIf",t._renderArrow()))},directives:[gd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),e})(),yR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[fR],imports:[[Dd,Ex]]}),e})();const bR=[[["caption"]],[["colgroup"],["col"]]],vR=["caption","colgroup, col"];let wR=(()=>{class e extends px{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[sl([{provide:GS,useClass:VS},{provide:px,useExisting:e},{provide:PE,useExisting:e},{provide:$E,useClass:WE},{provide:lx,useValue:null}]),Oo],ngContentSelectors:vR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(fa(bR),ga(0),ga(1,1),ia(2,0),ia(3,1),ia(4,2),ia(5,3))},directives:[cx,ux,hx,dx],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e})(),kR=(()=>{class e extends YE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matCellDef",""]],features:[sl([{provide:YE,useExisting:e}]),Oo]}),e})(),SR=(()=>{class e extends FE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matHeaderCellDef",""]],features:[sl([{provide:FE,useExisting:e}]),Oo]}),e})(),TR=(()=>{class e extends HE{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[sl([{provide:HE,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Oo]}),e})(),ER=(()=>{class e extends zE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Oo]}),e})(),xR=(()=>{class e extends BE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Oo]}),e})(),MR=(()=>{class e extends KE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[sl([{provide:KE,useExisting:e}]),Oo]}),e})(),CR=(()=>{class e extends tx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[sl([{provide:tx,useExisting:e}]),Oo]}),e})(),DR=(()=>{class e extends nx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[sl([{provide:nx,useExisting:e}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),LR=(()=>{class e extends rx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[sl([{provide:rx,useExisting:e}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),OR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[fx,Ex],Ex]}),e})();function AR(e,t){1&e&&ga(0)}const IR=["*"];function RR(e,t){}const PR=function(e){return{animationDuration:e}},YR=function(e,t){return{value:e,params:t}},FR=["tabBodyWrapper"],jR=["tabHeader"];function qR(e,t){}function NR(e,t){1&e&&$o(0,qR,0,0,"ng-template",9),2&e&&Zo("cdkPortalOutlet",pa().$implicit.templateLabel)}function HR(e,t){1&e&&Fa(0),2&e&&ja(pa().$implicit.textLabel)}function UR(e,t){if(1&e){const e=na();Ko(0,"div",6),la("click",function(){const t=Yt(e),i=t.$implicit,n=t.index,r=pa(),s=Wo(1);return r._handleClick(i,s,n)})("cdkFocusChange",function(t){const i=Yt(e).index;return pa()._tabFocusChanged(t,i)}),Ko(1,"div",7),$o(2,NR,1,1,"ng-template",8),$o(3,HR,1,1,"ng-template",8),Jo(),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();xa("mat-tab-label-active",n.selectedIndex==i),Zo("id",n._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||n.disableRipple),Bo("tabIndex",n._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),fs(2),Zo("ngIf",e.templateLabel),fs(1),Zo("ngIf",!e.templateLabel)}}function zR(e,t){if(1&e){const e=na();Ko(0,"mat-tab-body",10),la("_onCentered",function(){return Yt(e),pa()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return Yt(e),pa()._setTabBodyWrapperHeight(t)}),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();xa("mat-tab-body-active",n.selectedIndex===i),Zo("id",n._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",n.animationDuration),Bo("tabindex",null!=n.contentTabIndex&&n.selectedIndex===i?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(i))}}const BR=["tabListContainer"],VR=["tabList"],$R=["nextPaginator"],WR=["previousPaginator"],GR=new en("MatInkBarPositioner",{providedIn:"root",factory:function(){return e=>({left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"})}});let ZR=(()=>{class e{constructor(e,t,i,n){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=i,this._animationMode=n}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),i=this._elementRef.nativeElement;i.style.left=t.left,i.style.width=t.width}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(GR),Go(zf,8))},e.\u0275dir=Ke({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e})();const QR=new en("MatTabContent"),KR=new en("MatTabLabel"),JR=new en("MAT_TAB"),XR=xx(class{}),eP=new en("MAT_TAB_GROUP");let tP=(()=>{class e extends XR{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new bM(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(eP,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,KR,5),Ru(i,QR,7,Bl)),2&e){let e;Au(e=Pu())&&(t.templateLabel=e.first),Au(e=Pu())&&(t._explicitContent=e.first)}},viewQuery:function(e,t){if(1&e&&Iu(Bl,7),2&e){let e;Au(e=Pu())&&(t._implicitContent=e.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[sl([{provide:JR,useExisting:e}]),Oo,ct],ngContentSelectors:IR,decls:1,vars:0,template:function(e,t){1&e&&(fa(),$o(0,AR,1,0,"ng-template"))},encapsulation:2}),e})();const iP={translateTab:rp("translateTab",[lp("center, void, left-origin-center, right-origin-center",ap({transform:"none"})),lp("left",ap({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),lp("right",ap({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),cp("* => left, * => right, left => center, right => center",sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),cp("void => left-origin-center",[ap({transform:"translate3d(-100%, 0, 0)"}),sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),cp("void => right-origin-center",[ap({transform:"translate3d(100%, 0, 0)"}),sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let nP=(()=>{class e extends SM{constructor(e,t,i,n){super(e,t,n),this._host=i,this._centeringSub=d.EMPTY,this._leavingSub=d.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(mg(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(ul),Go(Kl),Go(ae(()=>sP)),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","matTabBodyHost",""]],features:[Oo]}),e})(),rP=(()=>{class e{constructor(e,t,i){this._elementRef=e,this._dir=t,this._dirChangeSubscription=d.EMPTY,this._translateTabComplete=new x,this._onCentering=new vu,this._beforeCentering=new vu,this._afterLeavingCenter=new vu,this._onCentered=new vu(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(e=>{this._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(lS((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(e.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8),Go(ql))},e.\u0275dir=Ke({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e})(),sP=(()=>{class e extends rP{constructor(e,t,i){super(e,t,i)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8),Go(ql))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&Iu(SM,5),2&e){let e;Au(e=Pu())&&(t._portalHost=e.first)}},hostAttrs:[1,"mat-tab-body"],features:[Oo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(Ko(0,"div",0,1),la("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),$o(2,RR,0,0,"ng-template",2),Jo()),2&e&&Zo("@translateTab",mu(3,YR,t._position,pu(1,PR,t.animationDuration)))},directives:[nP],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[iP.translateTab]}}),e})();const oP=new en("MAT_TABS_CONFIG");let aP=0;class lP{}const uP=Mx(Cx(class{constructor(e){this._elementRef=e}}),"primary");let cP=(()=>{class e extends uP{constructor(e,t,i,n){var r;super(e),this._changeDetectorRef=t,this._animationMode=n,this._tabs=new ku,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=d.EMPTY,this._tabLabelSubscription=d.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new vu,this.focusChange=new vu,this.animationDone=new vu,this.selectedTabChange=new vu(!0),this._groupId=aP++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,this.contentTabIndex=null!==(r=null==i?void 0:i.contentTabIndex)&&void 0!==r?r:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Gk(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Zk(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Zk(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const t=this._tabBodyWrapper.nativeElement;t.style.minHeight=t.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((t,i)=>t.isActive=i===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,i)=>{t.position=i-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const e=this._tabs.toArray();for(let t=0;t{this._tabs.reset(e.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new lP;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,i){e.disabled||(this.selectedIndex=t.focusIndex=i)}_getTabIndex(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oP,8),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Oo]}),e})(),dP=(()=>{class e extends cP{constructor(e,t,i,n){super(e,t,i,n)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oP,8),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,tP,5),2&e){let e;Au(e=Pu())&&(t._allTabs=e)}},viewQuery:function(e,t){if(1&e&&(Iu(FR,5),Iu(jR,5)),2&e){let e;Au(e=Pu())&&(t._tabBodyWrapper=e.first),Au(e=Pu())&&(t._tabHeader=e.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[sl([{provide:eP,useExisting:e}]),Oo],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(Ko(0,"mat-tab-header",0,1),la("indexFocused",function(e){return t._focusChanged(e)})("selectFocusedIndex",function(e){return t.selectedIndex=e}),$o(2,UR,4,14,"div",2),Jo(),Ko(3,"div",3,4),$o(5,zR,1,9,"mat-tab-body",5),Jo()),2&e&&(Zo("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),fs(2),Zo("ngForOf",t._tabs),fs(1),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode),fs(2),Zo("ngForOf",t._tabs))},directives:function(){return[_P,md,pP,iM,HT,gd,SM,sP]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e})();const hP=xx(class{});let pP=(()=>{class e extends hP{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Bo("aria-disabled",!!t.disabled),xa("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[Oo]}),e})();const mP=PS({passive:!0});let fP=(()=>{class e{constructor(e,t,i,n,r,s,o){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=i,this._dir=n,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new vu,this.indexFocused=new vu,r.runOutsideAngular(()=>{Xk(e.nativeElement,"mouseleave").pipe(yS(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Zk(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Xk(this._previousPaginator.nativeElement,"touchstart",mP).pipe(yS(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",mP).pipe(yS(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:_h("ltr"),t=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ST(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),W(e,t,this._items.changes).pipe(yS(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(yS(this._destroyed)).subscribe(e=>{this.indexFocused.emit(e),this._setTabFocus(e)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!XS(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=t.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=n,o=s+r):(o=this._tabList.nativeElement.offsetWidth-n,s=o-r);const a=this.scrollDistance,l=this.scrollDistance+i;sl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),fS(650,100).pipe(yS(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:t,distance:i}=this._scrollHeader(e);(0===i||i>=t)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{disablePagination:"disablePagination"}}),e})(),gP=(()=>{class e extends fP{constructor(e,t,i,n,r,s,o){super(e,t,i,n,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Gk(e)}_itemSelected(e){e.preventDefault()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{disableRipple:"disableRipple"},features:[Oo]}),e})(),_P=(()=>{class e extends gP{constructor(e,t,i,n,r,s,o){super(e,t,i,n,r,s,o)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,pP,4),2&e){let e;Au(e=Pu())&&(t._items=e)}},viewQuery:function(e,t){if(1&e&&(Iu(ZR,7),Iu(BR,7),Iu(VR,7),Iu($R,5),Iu(WR,5)),2&e){let e;Au(e=Pu())&&(t._inkBar=e.first),Au(e=Pu())&&(t._tabListContainer=e.first),Au(e=Pu())&&(t._tabList=e.first),Au(e=Pu())&&(t._nextPaginator=e.first),Au(e=Pu())&&(t._previousPaginator=e.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Oo],ngContentSelectors:IR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0,1),la("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),Xo(2,"div",2),Jo(),Ko(3,"div",3,4),la("keydown",function(e){return t._handleKeydown(e)}),Ko(5,"div",5,6),la("cdkObserveContent",function(){return t._onContentChanges()}),Ko(7,"div",7),ga(8),Jo(),Xo(9,"mat-ink-bar"),Jo(),Jo(),Ko(10,"div",8,9),la("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),Xo(12,"div",2),Jo()),2&e&&(xa("mat-tab-header-pagination-disabled",t._disableScrollBefore),Zo("matRippleDisabled",t._disableScrollBefore||t.disableRipple),fs(5),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode),fs(5),xa("mat-tab-header-pagination-disabled",t._disableScrollAfter),Zo("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[iM,uT,ZR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e})(),yP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,TM,nM,cT,$T],Ex]}),e})();const bP=["*",[["mat-toolbar-row"]]],vP=["*","mat-toolbar-row"],wP=Mx(class{constructor(e){this._elementRef=e}});let kP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e})(),SP=(()=>{class e extends wP{constructor(e,t,i){super(e),this._platform=t,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(zc))},e.\u0275cmp=Ve({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,kP,5),2&e){let e;Au(e=Pu())&&(t._toolbarRows=e)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oo],ngContentSelectors:vP,decls:2,vars:0,template:function(e,t){1&e&&(fa(bP),ga(0),ga(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e})(),TP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),EP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[gx,Ex],Ex]}),e})(),xP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[fx,gx,OE,WC,GC,tD,aD,lD,bD,AD,WD,mL,ML,GL,QL,SO,jO,dL,TL,QO,fA,Bx,oI,aI,_I,AI,nM,YA,II,RI,WI,nR,yR,OR,yP,TP,WA,EP,JS]}),e})(),MP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP]]}),e})(),CP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP]]}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Vk,$k,tp,Lb,xP,CP],Dd,Vk,$k,tp,Lb,xP,CP,MP]}),e})();const LP={githubUrl:"https://github.com",accessTokenUrl:"https://catcher-auth.herokuapp.com/authenticate",clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles-dev.json"},OP=i(4147),AP={version:i(4147).version,production:!0,test:!1,clientId:"5e1ed08cff7f0de1d68d",githubUrl:"https://github.com",accessTokenUrl:LP.accessTokenUrl,clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles.json",origin:"https://catcher-org.github.io"},IP=Object.assign(Object.assign({},AP),{clientId:"54b9dcc49069dc2f018e",origin:"https://catcher-org.github.io"});var RP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),PP=new Uint8Array(16);function YP(){if(!RP)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RP(PP)}for(var FP=[],jP=0;jP<256;++jP)FP[jP]=(jP+256).toString(16).substr(1);var qP=function(e,t,i){var n=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||YP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;++s)t[n+s]=r[s];return t||function(e,t){var i=t||0;return[FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]]].join("")}(r)};function NP(){return qP()}var HP=i(97582);function UP(e,t){return b(bh(t=>e(t)),Tg(t))}class zP{constructor(){this.issueLastModified=new Map}get(e){return this.issueLastModified.get(e)||""}set(e,t){this.issueLastModified.set(e,t)}clear(){this.issueLastModified.clear()}}class BP{constructor(){this.issuesCache=[]}getEtagFor(e){const t=this.get(e);let i="";return void 0!==t&&(i=t.headers.etag),i}get(e){return this.issuesCache[e-1]}set(e,t){t.isCached=!0,this.issuesCache[e-1]=t}clear(){this.issuesCache=[]}}function VP(e,t){return e.map(e=>t?t(e.node):e.node)}let $P=(()=>{class e{constructor(e){Object.assign(this,e),this.isCategorical()?(this.category=this.name.split(".")[0],this.label=this.name.split(".")[1]):(this.category=this.name,this.label=this.name),Object.freeze(this)}getCategory(){return this.category}getValue(){return this.label}getDescription(){return this.description}isCategorical(){return/^[^.]+\.[^.]+$/.test(this.name)}}return e.LABEL_ORDER={severity:{Low:0,Medium:1,High:2},type:{DocumentationBug:0,FunctionalityBug:1}},e.LABELS={severity:"severity",type:"type",response:"response",duplicated:"duplicated",status:"status",unsure:"unsure",pending:"pending",team:"team",tutorial:"tutorial"},e})();class WP{constructor(e){Object.assign(this,e),this.labels=[];for(const t of e.labels)this.labels.push(new $P(t))}findLabel(e,t=!0){if(!t){const t=this.labels.find(t=>!t.isCategorical()&&t.name===e);return t?t.getValue():void 0}const i=this.labels.filter(t=>t.isCategorical()&&t.getCategory()===e);if(0!==i.length){if(1===i.length)return i[0].getValue();if($P.LABEL_ORDER[e]){const t=$P.LABEL_ORDER[e];return i.reduce((e,i)=>t[i.getValue()]>t[e.getValue()]?i:e).getValue()}return i[0].getValue()}}findTeamId(){return`${this.findLabel("team")}.${this.findLabel("tutorial")}`}}class GP extends WP{constructor(e){super({id:e.id,number:e.number,body:e.body,created_at:String(e.createdAt),updated_at:String(e.updatedAt),url:String(e.url),title:e.title,state:e.state,user:{login:e.author.login,url:e.author.url,avatar_url:e.author.avatarUrl},assignees:VP(e.assignees.edges),labels:VP(e.labels.edges),comments:VP(e.comments.edges,e=>Object.assign(Object.assign({},e),{id:e.databaseId}))})}}const ZP=["*"];let QP=(()=>{class e{constructor(e){this.snackBarRef=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Go(XI))},e.\u0275cmp=Ve({type:e,selectors:[["app-toaster"]],ngContentSelectors:ZP,decls:6,vars:0,consts:[[1,"toaster"],[1,"message-container"],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),Ko(1,"div",1),Ko(2,"p"),ga(3),Jo(),Jo(),Ko(4,"button",2),la("click",function(){return t.snackBarRef.dismiss()}),Fa(5,"Close"),Jo(),Jo())},directives:[oD],styles:[".toaster[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.message-container[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:80%;overflow-wrap:anywhere}.message-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:auto 5px;text-align:center}button[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:20%;margin:auto 5px;text-align:center}"]}),e})();function KP(e,t){if(1&e&&(Ko(0,"div"),Fa(1," Validation Error: "),Ko(2,"ul"),Ko(3,"li"),Fa(4),Jo(),Jo(),Jo()),2&e){const e=t.$implicit;fs(4),ja(e.code+" in "+e.field)}}function JP(e,t){if(1&e&&(Ko(0,"div"),$o(1,KP,5,1,"div",2),Jo()),2&e){const e=pa();fs(1),Zo("ngForOf",e.data.errors)}}function XP(e,t){if(1&e&&Fa(0),2&e){const e=pa();qa(" ","Error code "+e.data.status+": "+e.data.message,"\n")}}let eY=(()=>{class e{constructor(e){this.data=e}}return e.\u0275fac=function(t){return new(t||e)(Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-form-error"]],decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],["generalMessage",""],[4,"ngFor","ngForOf"]],template:function(e,t){if(1&e&&(Ko(0,"app-toaster"),$o(1,JP,2,1,"div",0),Jo(),$o(2,XP,1,1,"ng-template",null,1,qu)),2&e){const e=Wo(3);fs(1),Zo("ngIf",t.data.errors)("ngIfElse",e)}},directives:[QP,gd,md],encapsulation:2}),e})(),tY=(()=>{class e{constructor(e){this.data=e}}return e.\u0275fac=function(t){return new(t||e)(Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-general-message-error"]],decls:2,vars:1,template:function(e,t){1&e&&(Ko(0,"app-toaster"),Fa(1),Jo()),2&e&&(fs(1),qa(" ",t.data.message," "))},directives:[QP],encapsulation:2}),e})();let iY=(()=>{class e{constructor(){this.isInSession=!1,this.LOG_KEY="CATcher-Log",this.LOG_FILE_NAME="CATcher-log.txt",this.LOG_START_HEADER=`====== New CATcher v${IP.version} Session Log ======`,this.LOG_COUNT_LIMIT=4,this.SESSION_LOG_SEPARATOR="\n".repeat(2),this.logger=console,this.startSession()}reset(){this.isInSession=!1}startSession(){window.opener&&window.opener!==window||this.isInSession||(this.isInSession=!0,this.initializeLogCache())}initializeLogCache(){this.setCachedLog(this.getTrimmedLogCache(this.getCachedLog(),this.LOG_COUNT_LIMIT))}getTrimmedLogCache(e,t){const i=(new Date).toLocaleString(),n=`${this.LOG_START_HEADER}\n${i}`,r=null==e?0:e.split("\n").filter(e=>e.includes(this.LOG_START_HEADER)).length;if(0===r)return n;if(r!!e).map(e=>`${this.LOG_START_HEADER}\n${e.trim()}`);return s.splice(0,s.length-t+1),s.push(`${n}`),s.join(this.SESSION_LOG_SEPARATOR)}getCachedLog(){return localStorage.getItem(this.LOG_KEY)}setCachedLog(e){localStorage.setItem(this.LOG_KEY,e)}updateLog(...e){this.setCachedLog(`${this.getCachedLog()}\n${e.toString()}`)}exportLogFile(){const e=this.getCachedLog();!function(e,t){const i=new Blob([t],{type:"file/txt"}),n=window.URL.createObjectURL(i),r=function(e,t){const i=document.createElement("a");return i.setAttribute("style","display: none;"),i.href=e,i.download=t,i}(n,e);(function(e){document.body.appendChild(e),e.click()})(r),window.URL.revokeObjectURL(n),function(e){document.body.removeChild(e),e.remove()}(r)}(this.LOG_FILE_NAME,e)}info(...e){this.updateLog(e),this.logger.info(e)}error(...e){this.updateLog(e),this.logger.error(e)}warn(...e){this.updateLog(e),this.logger.warn(e)}debug(...e){IP.production||this.logger.debug(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const nY=["node_modules"];let rY=(()=>{class e{constructor(e,t){this.snackBar=e,this.logger=t}handleError(e,t){this.logger.error("ErrorHandlingService: "+e),e instanceof Error&&this.logger.debug("ErrorHandlingService: "+this.cleanStack(e.stack)),e instanceof Nh||"RequestError"===e.constructor.name?this.handleHttpError(e,t):this.handleGeneralError("string"==typeof e?e:e.message||JSON.stringify(e))}cleanStack(e){return e.split("\n").filter(e=>!nY.some(t=>e.includes(t))).join("\n")}handleHttpError(e,t){if(304!==e.status){if(!navigator.onLine)return void this.handleGeneralError("No Internet Connection");switch(e.status){case 500:case 400:case 401:case 404:this.snackBar.openFromComponent(tY,{data:e});break;case 422:this.snackBar.openFromComponent(eY,{data:e});break;default:return void this.snackBar.openFromComponent(tY,{data:e})}}}handleGeneralError(e){this.snackBar.openFromComponent(tY,{data:{message:e}})}clearError(){this.snackBar.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(Tn(sR),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const{Octokit:sY}=i(60837);let oY="",aY="",lY="",uY="",cY=new sY,dY=(()=>{class e{constructor(e,t,i){this.errorHandlingService=e,this.apollo=t,this.logger=i,this.issuesCacheManager=new BP,this.issuesLastModifiedManager=new zP,this.issueQueryRefs=new Map}storeOAuthAccessToken(e){cY=new sY({auth:()=>`Token ${e}`,log:{debug:(e,...t)=>this.logger.debug("GithubService: "+e,...t),info:(e,...t)=>/304 in \d+ms$/.test(e)?void 0:this.logger.info("GithubService: "+e,...t),warn:(e,...t)=>this.logger.warn("GithubService: "+e,...t),error:(e,...t)=>this.logger.error("GithubService: "+e,...t)}})}storeOrganizationDetails(e,t){aY=e,uY=t}storePhaseDetails(e,t){lY=t,oY=e}fetchIssuesGraphqlByTeam(e,t,i){const n=i.convertToGraphqlFilter();return this.toFetchIssues(i).pipe(bh(e=>e),U(()=>this.fetchGraphqlList(dw,{owner:oY,name:lY,filter:Object.assign(Object.assign({},n),{labels:[...n.labels?n.labels:[],t]}),tutorial:e},e=>e.data.repository.label.issues.edges,GP)))}fetchIssuesGraphql(e){const t=e.convertToGraphqlFilter();return this.toFetchIssues(e).pipe(bh(e=>e),U(()=>this.fetchGraphqlList(hw,{owner:oY,name:lY,filter:t},e=>e.data.repository.issues.edges,GP)))}toFetchIssues(e){let t;return this.getIssuesAPICall(e,1).pipe(D(e=>(t=e,function(e){let t=1;return e.headers.link&&(t=+function(e){return e.split(",").map(e=>e.split(";").map((e,t)=>0===t?/[^_]page=(\d+)/.exec(e)[1]:1===t?/rel="(.+)"/.exec(e)[1]:void 0)).reduce((e,t)=>(e[t[1]]=t[0],e),{})}(e.headers.link).last||1),t}(e))),U(t=>{const i=[];for(let n=2;n<=t;n++)i.push(this.getIssuesAPICall(e,n));return 0===i.length?_h([]):fw(i)}),D(e=>{const i=[t,...e],n=i.reduce((e,t)=>e&&t.isCached,!0);return i.forEach((e,t)=>this.issuesCacheManager.set(t+1,e)),!n}))}isRepositoryPresent(t,i){return j(cY.repos.get({owner:t,repo:i,headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>404!==e.status),yg(e=>_h(!1)),yg(e=>Qb("Failed to fetch repo data.")))}createRepository(e){cY.repos.createForAuthenticatedUser({name:e})}createBranch(){return this.getDefaultBranch().pipe(U(e=>this.getBranchHeadInfo(e)),D(e=>e.data.object.sha),U(e=>this.createBranchFromCommit(e)),U(()=>this.isMainBranchPresent()),UP(e=>e,()=>new Error("Unable to create main branch.")))}createBranchFromCommit(e){return j(cY.git.createRef({owner:oY,repo:lY,ref:"refs/heads/main",sha:e}))}getDefaultBranch(){return j(cY.repos.get({owner:oY,repo:lY})).pipe(D(e=>e.data.default_branch))}getBranchHeadInfo(e){return j(cY.git.getRef({owner:oY,repo:lY,ref:`heads/${e}`}))}isMainBranchPresent(){return j(cY.git.getRef({owner:oY,repo:lY,ref:"heads/main"})).pipe(D(e=>404!==e.status),yg(()=>_h(!1)))}fetchIssueGraphql(e){if(void 0===this.issueQueryRefs.get(e)){const t=this.apollo.watchQuery({query:cw,variables:{owner:oY,name:lY,issueId:e}});this.issueQueryRefs.set(e,t)}const t=this.issueQueryRefs.get(e);return this.toFetchIssue(e).pipe(bh(e=>e),U(()=>j(t.refetch())),D(e=>new GP(e.data.repository.issue)),Tg(()=>new Nh({status:304})))}toFetchIssue(e){return j(cY.issues.get({owner:oY,repo:lY,issue_number:e,headers:{"If-Modified-Since":this.issuesLastModifiedManager.get(e)}})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),!0)),yg(e=>Qb("Failed to fetch issue.")))}fetchAllLabels(){return this.fetchGraphqlList(pw,{owner:oY,name:lY},e=>e.data.repository.labels.edges,$P).pipe(yg(e=>Qb("Failed to fetch labels.")))}createLabel(e,t){cY.issues.createLabel({owner:oY,repo:lY,name:e,color:t})}updateLabel(e,t){cY.issues.updateLabel({owner:oY,repo:lY,name:e,current_name:e,color:t})}closeIssue(e){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,state:"closed"})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))))}reopenIssue(e){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,state:"open"})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))))}createIssue(e,t,i){return j(cY.issues.create({owner:oY,repo:lY,title:e,body:t,labels:i})).pipe(D(e=>new WP(e.data)))}createIssueComment(e,t){return j(cY.issues.createComment({owner:oY,repo:lY,issue_number:e,body:t})).pipe(D(e=>e.data))}updateIssue(e,t,i,n,r){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,title:t,body:i,labels:n,assignees:r})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))),yg(e=>Qb(e)))}updateIssueComment(e){return j(cY.issues.updateComment({owner:oY,repo:lY,comment_id:e.id,body:e.description})).pipe(D(e=>e.data))}uploadFile(e,t){return j(cY.repos.createOrUpdateFile({owner:oY,repo:lY,branch:"main",path:`files/${e}`,message:"upload file",content:t}))}fetchEventsForRepo(){return j(cY.issues.listEventsForRepo({owner:oY,repo:lY,headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch events for repo.")))}fetchDataFile(){return j(cY.repos.getContents({owner:aY,repo:uY,path:"data.csv",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>({data:atob(e.data.content)})),yg(e=>Qb("Failed to fetch data file.")))}fetchLatestRelease(){return j(cY.repos.getLatestRelease({owner:"CATcher-org",repo:"CATcher",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch latest release.")))}fetchSettingsFromRawUrl(){return j(fetch(function(e,t){return`https://raw.githubusercontent.com/${e}/${t}/master/settings.json`}(aY,uY))).pipe(U(e=>e.json()),yg(e=>Qb("Failed to fetch settings file.")))}fetchSettingsFile(){return j(cY.repos.getContents({owner:aY,repo:uY,path:"settings.json",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>JSON.parse(atob(e.data.content))),yg(e=>(this.logger.error("GithubService: Failed to fetch settings file via REST API. Trying to fetch using raw.githubusercontent.com: ",e),this.fetchSettingsFromRawUrl())))}fetchAuthenticatedUser(){return j(cY.users.getAuthenticated()).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch authenticated user.")))}getRepoURL(){return oY.concat("/").concat(lY)}viewIssueInBrowser(e,t){e?window.open("https://github.com/".concat(this.getRepoURL()).concat("/issues/").concat(String(e))):this.errorHandlingService.handleError(new Error("Unable to open this issue in Browser")),t.stopPropagation()}reset(){this.logger.info("GithubService: Resetting issues cache"),this.issuesCacheManager.clear(),this.issuesLastModifiedManager.clear(),this.issueQueryRefs.clear()}getProfilesData(){return fetch(IP.clientDataUrl)}getIssuesAPICall(e,t){return j(cY.issues.listForRepo(Object.assign(Object.assign({},e),{owner:oY,repo:lY,sort:"created",direction:"desc",per_page:100,page:t,headers:{"If-None-Match":this.issuesCacheManager.getEtagFor(t)}}))).pipe(yg(e=>_h(this.issuesCacheManager.get(t))))}fetchGraphqlList(e,t,i,n){return j(this.withPagination(i)(e,t)).pipe(D(e=>e.reduce((e,t)=>e.concat(i(t)),[]).map(e=>new n(e.node))),Tg(()=>new Nh({status:304})))}withPagination(e){return(t,i={})=>(0,HP.mG)(this,void 0,void 0,function*(){const n=i.cursor||null;return this.apollo.watchQuery({query:t,variables:Object.assign(Object.assign({},i),{cursor:n})}).refetch().then(n=>(0,HP.mG)(this,void 0,void 0,function*(){const r=Array.isArray(n)?n:[n],s=e(n),o=0===s.length?null:s[s.length-1].cursor;if(s.length<100||!o)return r;const a=yield this.withPagination(e)(t,Object.assign(Object.assign({},i),{cursor:o}));return r.concat(a)}))})}}return e.IF_NONE_MATCH_EMPTY={"If-None-Match":""},e.\u0275fac=function(t){return new(t||e)(Tn(rY),Tn(dv),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class hY{constructor(e){Object.assign(this,e)}get tutorialClassId(){const[e,t]=this.id.split("-");return`${e}-${t}`}get teamId(){return this.id.split("-")[2]}}var pY=(()=>(function(e){e.Admin="Admin",e.Tutor="Tutor",e.Student="Student"}(pY||(pY={})),pY))();let mY=(()=>{class e{constructor(e){this.githubService=e}getDataFile(){return this.githubService.fetchDataFile().pipe(D(e=>this.constructData(e)),D(e=>(this.dataFile={teamStructure:this.extractTeamStructure(e)},e)))}constructData(t){const i={},n=t.data;return i[e.ROLES]=this.parseRolesData(n),i[e.TEAM_STRUCTURE]=this.parseTeamStructureData(n),i[e.STUDENTS_ALLOCATION]=this.parseStudentAllocation(n),i[e.TUTORS_ALLOCATION]=this.parseTutorAllocation(n),i[e.ADMINS_ALLOCATION]=this.parseAdminAllocation(n),i}parseAdminAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{t[e.ROLE]===pY.Admin.toLowerCase()&&(i[t[e.NAME].toLowerCase()]={})}),i}parseTutorAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Tutor.toLowerCase())return;const n=i[t[e.NAME].toLowerCase()]||{};n[t[e.TEAM]]="true",i[t[e.NAME].toLowerCase()]=n}),i}parseStudentAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Student.toLowerCase())return;const n={};n[e.TEAM_ID]=t[e.TEAM],i[t[e.NAME].toLowerCase()]=n}),i}parseTeamStructureData(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Student.toLowerCase())return;const n=i[t[e.TEAM]]||{};n[t[e.NAME].toLowerCase()]=t[e.NAME],i[t[e.TEAM]]=n}),i}parseRolesData(t){const i={},n={},r={},s={};return this.parseUsersData(t).forEach(t=>{t[e.ROLE]===pY.Student.toLowerCase()?n[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===pY.Tutor.toLowerCase()?r[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===pY.Admin.toLowerCase()&&(s[t[e.NAME].toLowerCase()]="true")}),i[e.STUDENTS]=n,i[e.TUTORS]=r,i[e.ADMINS]=s,i}parseUsersData(e){const t=e.split("\n").filter(e=>e.trim()),i=t[0].split(",").map(e=>e.trim()),n=[];for(let r=1;re.trim()),s={};for(let t=0;t{const t=Object.values(n[e]).map(e=>({loginId:e,role:pY.Student}));i.set(e,new hY({id:e,teamMembers:t}))}),i}reset(){this.dataFile=void 0}}return e.ROLES="roles",e.TEAM_STRUCTURE="team-structure",e.STUDENTS_ALLOCATION="students-allocation",e.TUTORS_ALLOCATION="tutors-allocation",e.ADMINS_ALLOCATION="admins-allocation",e.NAME="name",e.TEAM="team",e.ROLE="role",e.TEAM_ID="teamId",e.STUDENTS="students",e.TUTORS="tutors",e.ADMINS="admins",e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fY=(()=>{class e{constructor(e,t,i){this.githubService=e,this.dataService=t,this.logger=i}getAuthenticatedUser(){return this.githubService.fetchAuthenticatedUser().pipe(D(e=>e))}createUserModel(e){return this.dataService.getDataFile().pipe(D(t=>(this.currentUser=this.createUser(t,e),this.currentUser)),bh(e=>null!==e),Tg(()=>new Error("Unauthorized user.")))}reset(){this.logger.info("UserService: Clearing current user"),this.currentUser=void 0}createUser(e,t){const i=t.toLowerCase(),n=this.parseUserRole(e,i);switch(n){case pY.Student:return{loginId:t,role:n,team:this.createTeamModel(e[mY.TEAM_STRUCTURE],e[mY.STUDENTS_ALLOCATION][i][mY.TEAM_ID])};case pY.Tutor:return{loginId:t,role:n,allocatedTeams:Object.keys(e[mY.TUTORS_ALLOCATION][i]).map(t=>this.createTeamModel(e[mY.TEAM_STRUCTURE],t))};case pY.Admin:return{loginId:t,role:n,allocatedTeams:Object.keys(e[mY.ADMINS_ALLOCATION][i]).map(t=>this.createTeamModel(e[mY.TEAM_STRUCTURE],t))};default:return null}}createTeamModel(e,t){const i=Object.values(e[t]).map(e=>({loginId:e,role:pY.Student}));return new hY({id:t,teamMembers:i})}parseUserRole(e,t){let i;return e[mY.ROLES][mY.STUDENTS]&&e[mY.ROLES][mY.STUDENTS][[t]]&&(i=pY.Student),e[mY.ROLES][mY.TUTORS]&&e[mY.ROLES][mY.TUTORS][[t]]&&(i=pY.Tutor),e[mY.ROLES][mY.ADMINS]&&e[mY.ROLES][mY.ADMINS][[t]]&&(i=pY.Admin),i}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(mY),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function gY(e,t){return t?i=>i.pipe(gY((i,n)=>j(e(i,n)).pipe(D((e,r)=>t(i,e,n,r))))):t=>t.lift(new _Y(e))}class _Y{constructor(e){this.project=e}call(e,t){return t.subscribe(new yY(e,this.project))}}class yY extends N{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new q(this),i=this.destination;i.add(t);const n=H(e,t);n!==t&&i.add(n)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class bY{constructor(e){Object.assign(this,e)}convertToGraphqlFilter(){return{assignee:this.assignee,createdBy:this.creator,labels:this.labels,mentioned:this.mentioned,milestone:this.milestone,since:this.since,states:["close"===this.state?rw.Closed:rw.Open]}}}let vY=(()=>{class e{constructor(t){this.data=new Map;const i=t.match(e.REGEX);if(this.originalStringWithoutHiddenData=t.replace(e.REGEX,"").trim(),null!==i)for(const e of i){let t=e.replace("\x3c!--","").trim();t=t.replace("--\x3e","").trim();const i=t.split(":").map(e=>e.trim());if(2!==i.length){this.originalStringWithoutHiddenData+=`\n${e}`;continue}const[n,r]=i;this.data.has(n)||this.data.set(n,r)}}static embedDataIntoString(e,t){let i=e;return t.forEach((e,t)=>{i+=`\n\x3c!--${t}: ${e}--\x3e`}),i}toString(){let e="";return this.data.forEach((t,i)=>{e+=`\x3c!--${i}: ${t}--\x3e`}),e}}return e.REGEX=//gm,e})();var wY=i(16738),kY=(()=>(function(e){e.phaseBugReporting="phaseBugReporting",e.phaseTeamResponse="phaseTeamResponse",e.phaseTesterResponse="phaseTesterResponse",e.phaseModeration="phaseModeration"}(kY||(kY={})),kY))();class SY{constructor(e){this.parser=e}findConformingComment(e){let t,i;for(const n of e)if(i=this.parser.run(n.body),!i.isError){this.parseResult=i.result,t=n;break}return void 0===t&&(this.parseFailure=!0,i&&(this.parseError=i.error)),t}}const{endOfInput:TY,sequenceOf:EY,startOfInput:xY,str:MY}=i(80930),CY="Your response not required for this bug as the team has accepted the bug as it is.",DY=EY([xY,MY(CY),TY]);class LY extends SY{constructor(e){super(DY),this.findConformingComment(e),!this.parseFailure&&(this.teamAccepted=!0)}}const{char:OY,choice:AY,coroutine:IY,everyCharUntil:RY,str:PY,whitespace:YY}=i(80930);function FY(e){return IY(function*(){yield PY("# Team's Response"),yield YY;const t=yield RY(PY(e));return t.trim()?t.trim():"No details provided by team."})}function jY(e){return IY(function*(){yield PY("- [");const t=yield AY([OY("x"),YY]);return yield PY("] "+e),"x"===t})}const{choice:qY,coroutine:NY,digits:HY,str:UY,whitespace:zY}=i(80930),BY="## Duplicate status (if any):",VY=FY(BY),$Y=NY(function*(){yield UY("Duplicate of #");const e=yield HY;return parseInt(e,10)}),WY=NY(function*(){const e=yield VY;return yield UY(BY),yield zY,{teamResponse:e,issueNumber:yield qY([$Y,UY("--")]).map(e=>"--"===e?null:e)}});class GY extends SY{constructor(e){super(WY);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body,createdAt:t.created_at,updatedAt:t.updated_at}),this.teamResponse=this.parseResult.teamResponse,this.duplicateOf=this.parseResult.issueNumber)}}class ZY{constructor(e,t){this.description=e,this.isChecked=t}setChecked(e){this.isChecked=e}toString(){return`- ${this.isChecked?"[x]":"[ ]"} ${this.description}`}}class QY{constructor(e,t,i,n,r){this.TITLE_PREFIX="## :question: ",this.DISAGREEMENT_PREFIX="**Reason for disagreement:** ",this.INITIAL_RESPONSE="[replace this with your explanation]",this.LINE_BREAK="
\n",this.title=e,this.description=t,this.disagreeCheckbox=new ZY(i,n),this.reasonForDisagreement=r}toString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.disagreeCheckbox.toString()+"\n\n",e+=this.DISAGREEMENT_PREFIX+this.reasonForDisagreement+"\n\n",e+=this.LINE_BREAK,e}isDisagree(){return this.disagreeCheckbox.isChecked}compareTo(e){return this.isDisagree()===e.isDisagree()?this.reasonForDisagreement.localeCompare(e.reasonForDisagreement):this.isDisagree()?1:-1}getTitleInMarkDown(){return`## ${this.title}`}getDisagreementWithoutDefaultResponse(){return this.reasonForDisagreement.replace(this.INITIAL_RESPONSE," ")}setDisagree(e){this.disagreeCheckbox.setChecked(e)}setReasonForDisagreement(e){this.reasonForDisagreement=e}}const{between:KY,coroutine:JY,everyCharUntil:XY,letters:eF,lookAhead:tF,optionalWhitespace:iF,pipeParsers:nF,possibly:rF,str:sF,whitespace:oF}=i(80930),aF="
",lF="Team chose to mark this issue as a duplicate of another issue (as explained in the _**Team's response**_ above)",uF=jY("I disagree");function cF(e){return KY(sF("[`"+e+"."))(sF("`]"))(eF)}const dF=JY(function*(){yield sF("**Reason for disagreement:** ");const e=yield XY(sF(aF));return yield sF(aF),e.trim()}),hF=JY(function*(){yield sF("status"),yield oF,yield sF(lF),yield oF;const e=yield uF;return yield oF,{disagreeCheckboxValue:e,reasonForDisagreement:yield dF}}),pF=JY(function*(){yield sF("## :question: Issue ");const e=yield eF;if(yield oF,"duplicate"===e){const t=yield hF;return yield iF,{title:e+" status",description:lF,teamChose:null,testerChose:null,disagreeCheckboxValue:t.disagreeCheckboxValue,reasonForDisagreement:t.reasonForDisagreement}}const t=yield tF(XY(uF)),i=function(e){const t=cF(e);return nF([sF("Team chose "),t])}(e),n=function(e){const t=cF(e);return nF([sF("Originally "),t])}(e),r=yield i;yield oF;const s=yield rF(n);yield iF;const o=yield uF;yield oF;const a=yield dF;return yield iF,{title:e,description:t.trim(),teamChose:r,testerChose:s,disagreeCheckboxValue:o,reasonForDisagreement:a}}),{coroutine:mF,many1:fF,str:gF,optionalWhitespace:_F,possibly:yF,whitespace:bF}=i(80930),vF="# Items for the Tester to Verify",wF=FY(vF),kF=mF(function*(){yield yF(gF("[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]")),yield _F;const e=yield wF;yield gF(vF),yield bF;const t=yield fF(pF);let i,n,r=!1;const s=[];for(const o of t)o.disagreeCheckboxValue&&(r=!0),"severity"===o.title?i=o.teamChose:"type"===o.title&&(n=o.teamChose),s.push(new QY("Issue "+o.title,o.description,"I disagree",o.disagreeCheckboxValue,o.reasonForDisagreement));return{teamResponse:e,testerResponses:s,testerDisagree:r,teamChosenSeverity:i,teamChosenType:n}});class SF extends SY{constructor(e){super(kF);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body}),this.teamResponse=this.parseResult.teamResponse,this.testerResponses=this.parseResult.testerResponses,this.testerDisagree=this.parseResult.testerDisagree,this.teamChosenSeverity=this.parseResult.teamChosenSeverity,this.teamChosenType=this.parseResult.teamChosenType)}}class TF{constructor(e,t){this.TODO_DESCRIPTION="Done",this.INITIAL_RESPONSE="[replace this with your explanation]",this.TITLE_PREFIX="## :question: ",this.LINE_BREAK="
\n",this.title=e,this.description=t,this.tutorResponse=this.INITIAL_RESPONSE,this.todo=new ZY(this.TODO_DESCRIPTION,!1)}isDone(){return this.todo.isChecked}toTutorResponseString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.todo.toString()+"\n\n",e+=this.tutorResponse+"\n\n",e+=this.LINE_BREAK,e}compareTo(e){return this.isDone()===e.isDone()?this.tutorResponse.localeCompare(e.tutorResponse):this.isDone()?1:-1}toString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.LINE_BREAK,e}setTutorResponse(e){this.tutorResponse=e}setIsDone(e){this.todo.setChecked(e)}}const{coroutine:EF,everyCharUntil:xF,optionalWhitespace:MF,str:CF}=i(80930),DF="
",LF=EF(function*(){yield CF("## :question: ");const e=yield xF(CF("### Team says:")),t=yield xF(CF(DF));return yield CF(DF),yield MF,new TF(e.trim(),t.trim())}),{coroutine:OF,everyCharUntil:AF,many1:IF,str:RF,whitespace:PF}=i(80930),YF="# Disputes",FF=FY(YF),jF=OF(function*(){yield RF("# Issue Description"),yield PF;const e=yield AF(RF("# Team's Response")),t=yield FF;yield RF(YF),yield PF;const i=yield IF(LF);return{description:e.trim(),teamResponse:t,issueDisputes:i}});class qF extends SY{constructor(e){super(jF);const t=jF.run(e.body);t.isError?this.parseFailure=!0:(this.parseResult=t.result,this.description=this.parseResult.description,this.teamResponse=this.parseResult.teamResponse,this.disputes=this.parseResult.issueDisputes)}}const{coroutine:NF,everyCharUntil:HF,lookAhead:UF,optionalWhitespace:zF,str:BF,whitespace:VF}=i(80930),$F="
",WF=jY("Done"),GF=NF(function*(){yield BF("## :question: ");const e=yield HF(BF("- [")),t=yield UF(HF(BF($F))),i=yield WF;yield VF;const n=yield HF(BF($F));yield BF($F),yield zF;const r=new TF(e.trim(),t.trim());return r.todo=new ZY("Done",i),r.tutorResponse=n.trim(),r}),{coroutine:ZF,many1:QF,str:KF,whitespace:JF}=i(80930),XF=ZF(function*(){return yield KF("# Tutor Moderation"),yield JF,{disputesToResolve:yield QF(GF)}});class ej extends SY{constructor(e){super(XF);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body}),this.disputesToResolve=this.parseResult.disputesToResolve)}}class tj{constructor(e){this.globalId=e.id,this.id=+e.number,this.created_at=wY(e.created_at).format("lll"),this.title=e.title,this.hiddenDataInDescription=new vY(e.body),this.description=tj.updateDescription(this.hiddenDataInDescription.originalStringWithoutHiddenData),this.githubIssue=e,this.severity=e.findLabel($P.LABELS.severity),this.type=e.findLabel($P.LABELS.type),this.response=e.findLabel($P.LABELS.response),this.duplicated=!!e.findLabel($P.LABELS.duplicated,!1),this.status=e.findLabel($P.LABELS.status),this.pending=e.findLabel($P.LABELS.pending)}static formatText(e){return null===e?null:void 0!==e?e.split(/[\n\r]/gi).filter(e=>""!==e.trim()).length>0?`${e}\n\n`:e:void 0}static updateDescription(e){return tj.orDefaultString(tj.formatText(e),"No details provided by bug reporter.")}static updateTeamResponse(e){return tj.orDefaultString(tj.formatText(e),"No details provided by team.")}static orDefaultString(e,t){return e&&0!==e.length?e:t}static createPhaseBugReportingIssue(e){return new tj(e)}static createPhaseTeamResponseIssue(e,t){const i=new tj(e),n=new GY(e.comments);return i.githubComments=e.comments,i.teamAssigned=t,i.assignees=e.assignees.map(e=>e.login),i.teamResponseError=n.parseFailure,i.parseError=n.parseError,i.issueComment=n.comment,i.teamResponse=n.teamResponse,i.duplicateOf=n.duplicateOf,i.duplicated=null!=i.duplicateOf,i}static createPhaseTesterResponseIssue(e){const t=new tj(e),i=new SF(e.comments),n=new LY(e.comments);return t.githubComments=e.comments,t.testerResponseError=i.parseFailure&&n.parseFailure,t.parseError=i.parseError,t.teamAccepted=n.teamAccepted,t.issueComment=i.comment,t.teamResponse=i.teamResponse,t.testerResponses=i.testerResponses,t.testerDisagree=i.testerDisagree,t.teamChosenSeverity=i.teamChosenSeverity||null,t.teamChosenType=i.teamChosenType||null,t}static createPhaseModerationIssue(e,t){const i=new tj(e),n=new qF(e),r=new ej(e.comments);return i.githubComments=e.comments,i.teamAssigned=t,i.description=n.description,i.teamResponse=n.teamResponse,i.issueDisputes=n.disputes,r.disputesToResolve&&r.comment&&(i.issueDisputes=r.disputesToResolve.map((e,t)=>(e.description=n.disputes[t].description,e)),i.issueComment=r.comment),i}clone(e){switch(e){case kY.phaseBugReporting:return tj.createPhaseBugReportingIssue(this.githubIssue);case kY.phaseTeamResponse:return tj.createPhaseTeamResponseIssue(this.githubIssue,this.teamAssigned);case kY.phaseTesterResponse:return tj.createPhaseTesterResponseIssue(this.githubIssue);case kY.phaseModeration:return tj.createPhaseModerationIssue(this.githubIssue,this.teamAssigned);default:return tj.createPhaseBugReportingIssue(this.githubIssue)}}retainResponses(e,t){switch(this.issueComment=t.issueComment,this.githubComments=t.githubComments,e){case kY.phaseBugReporting:this.description=t.description;break;case kY.phaseTeamResponse:this.teamResponse=t.teamResponse;break;case kY.phaseTesterResponse:this.testerResponses=t.testerResponses,this.teamResponse=t.teamResponse;break;case kY.phaseModeration:this.issueDisputes=t.issueDisputes}}updateTesterResponse(e){const t=new SF([e]);this.issueComment=t.comment,this.teamResponse=t.teamResponse,this.testerResponses=t.testerResponses}updateDispute(e){const t=new ej([e]);this.issueComment=t.comment,this.issueDisputes=t.disputesToResolve.map((e,t)=>(e.description=this.issueDisputes[t].description,e))}createGithubIssueDescription(){return`${this.description}\n${this.hiddenDataInDescription.toString()}`}createGithubTeamResponse(){return`# Team's Response\n${this.teamResponse}\n## Duplicate status (if any):\n${this.duplicateOf?`Duplicate of #${this.duplicateOf}`:"--"}`}createGithubTutorResponse(){let e="# Tutor Moderation\n\n";if(void 0!==this.issueDisputes)for(const t of this.issueDisputes)e+=t.toTutorResponseString();return e}createGithubTesterResponse(){return`# Team's Response\n${this.teamResponse}\n# Items for the Tester to Verify\n${this.getTesterResponsesString(this.testerResponses)}`}numOfUnresolvedDisputes(){return this.issueDisputes?this.issueDisputes.reduce((e,t)=>e+Number(!t.isDone()),0):0}getTesterResponsesString(e){let t="";for(const i of e)t+=i.toString();return t}}const ij={"-":0,VeryLow:1,Low:2,Medium:3,High:4},nj={"-":0,DocumentationBug:1,FeatureFlaw:2,FunctionalityBug:3};var rj=(()=>(function(e){e.Incomplete="Incomplete",e.Done="Done"}(rj||(rj={})),rj))(),sj=(()=>(function(e){e.NoFilter="NoFilter",e.NoAccess="NoAccess",e.FilterByCreator="FilterByCreator",e.FilterByTeam="FilterByTeam",e.FilterByTeamAssigned="FilterByTeamAssigned"}(sj||(sj={})),sj))();const oj={phaseBugReporting:{Student:sj.FilterByCreator,Tutor:sj.NoFilter,Admin:sj.NoFilter},phaseTeamResponse:{Student:sj.FilterByTeam,Tutor:sj.FilterByTeamAssigned,Admin:sj.NoFilter},phaseTesterResponse:{Student:sj.NoFilter,Tutor:sj.NoAccess,Admin:sj.NoFilter},phaseModeration:{Student:sj.NoAccess,Tutor:sj.FilterByTeamAssigned,Admin:sj.NoFilter}},aj=IP.version;let lj=(()=>{class e{constructor(e){this.githubService=e,this.currentVersion=aj}isApplicationOutdated(){return this.latestVersion?_h(this.isOutdatedVersion(this.latestVersion,this.currentVersion)):this.githubService.fetchLatestRelease().pipe(D(e=>(this.latestVersion=e.tag_name.substring(1),this.latestReleaseUrl=e.html_url,this.isOutdatedVersion(this.latestVersion,this.currentVersion))))}isOutdatedVersion(e,t){return 1===this.compareVersions(e,t)}compareVersions(e,t){const i=e.split("."),n=t.split("."),r=Math.min(e.length,t.length),s=[],o=[];for(let a=0;ao[a])return 1;if(s[a]-1&&(this.count=i-1),t.subscribe(this._unsubscribeAndRecycle())}}}function dj(){return b(UP(e=>void 0!==e,()=>new Error("Session Data Unavailable")),UP(hj,()=>new Error("Session data does not define an 'openPhases' key")),UP(fj,()=>new Error("There are no accessible phases")),UP(pj,()=>new Error("Invalid Open Phases detected")),UP(mj,()=>new Error("Opened Phase has no repo defined")))}function hj(e){return null!=e.openPhases}function pj(e){return e.openPhases.reduce((e,t)=>e&&t in kY,!0)}function mj(e){return e.openPhases.reduce((t,i)=>t&&!!e[i],!0)}function fj(e){return 0!==e.openPhases.length}class gj{constructor(e,t,i,n){this.labelValue=t,this.labelColor=i,this.labelCategory=e,this.labelDefinition=n}getFormattedName(){return void 0===this.labelCategory||""===this.labelCategory?this.labelValue:this.labelCategory.concat(".",this.labelValue)}equals(e){return this.labelValue===e.labelValue&&this.labelColor===e.labelColor&&this.labelCategory===e.labelCategory}}const _j="ffffff",yj={severity:{VeryLow:new gj("severity","VeryLow","ffe0e0","

A flaw that is purely cosmetic and does not affect usage. For example,

  • typo issues
  • spacing issues
  • layout issues
  • color issues
  • font issues
in the docs or the UI that doesn't affect usage.

"),Low:new gj("severity","Low","ffcccc","

A flaw that is unlikely to affect normal operations of the product. Appears only in very rare situations and causes a minor inconvenience only.

"),Medium:new gj("severity","Medium","ff9999","

A flaw that causes occasional inconvenience to some users but they can continue to use the product.

"),High:new gj("severity","High","ff6666","

A flaw that affects most users and causes major problems for users.i.e., makes the product almost unusable for most users.

")},type:{DocumentationBug:new gj("type","DocumentationBug","d966ff",'

A flaw in the documentation e.g., a missing step, a wrong instruction, typos

'),FeatureFlaw:new gj("type","FeatureFlaw","d966ff","

Some functionality missing from a feature delivered in the current version in a way that the feature becomes less useful to the intended target user for normal usage. i.e., the feature is not 'complete'.\nIn other words, an acceptance-testing bug that falls within the scope of the current version features. These issues are counted against the product design aspect of the project.

"),FunctionalityBug:new gj("type","FunctionalityBug","9900cc","

A functionality does not work as specified/expected.

")},response:{Accepted:new gj("response","Accepted","00802b","

You accept it as a bug.

"),CannotReproduce:new gj("response","CannotReproduce","ffebcc","

You are unable to reproduce the behavior reported in the bug after multiple tries.

"),IssueUnclear:new gj("response","IssueUnclear","ffcc80","

The issue description is not clear.

"),NotInScope:new gj("response","NotInScope","ffcc80",'

It is a valid issue but not something the team should be penalized for e.g., it was not related to features delivered in this version.

'),Rejected:new gj("response","Rejected","ff9900","

What tester treated as a bug is in fact the expected behavior (from the user's point of view), or the tester was mistaken in some other way.

")},status:{Done:new gj("status","Done","a6a6a6"),Incomplete:new gj("status","Incomplete","000000")},others:{duplicate:new gj(void 0,"duplicate","0066ff")}};class bj{constructor(e,t){this.githubService=e,this.logger=t}static getRequiredLabelsAsArray(e){let t=[];return Object.values(e?this.allLabelArrays:this.testerLabelArrays).map(e=>t=t.concat(e)),t}static updateRequiredLabelColor(e,t){const i=bj.allLabelArrays[t.labelCategory];i&&(i.find(e=>e.labelValue===t.labelValue).labelColor=e)}syncLabels(e){return b(U(()=>this.synchronizeRemoteLabels(e)))}synchronizeRemoteLabels(e){return this.githubService.fetchAllLabels().pipe(D(e=>e.map(this.toLabel)),D(t=>(this.ensureRepoHasRequiredLabels(t,bj.getRequiredLabelsAsArray(e)),t)))}getLabelList(e){switch(e){case"severity":return bj.severityLabels;case"type":return bj.typeLabels;case"response":return bj.responseLabels}this.logger.info(`LabelService: Unfiltered Attribute ${e} in getLabelList`)}getLabelTitle(e){switch(e){case"severity":return"Severity";case"type":return"Bug Type";case"response":return"Response"}this.logger.info(`LabelService: Unfiltered Attribute ${e} in getLabelTitle`)}getColorOfLabel(e,t){if(""===t||!bj.allLabelArrays[e])return this.logger.info(`LabelService: Unfiltered Attribute, ${t}: ${e} in getColorOfLabel`),_j;const i=bj.allLabelArrays[e].find(e=>e.labelValue===t);return void 0===i||void 0===i.labelColor?_j:i.labelColor}getLabelDefinition(e,t){if(""===e||null===e||""===t||null===t)return null;const i=bj.getRequiredLabelsAsArray(!0).find(i=>i.labelValue===e&&i.labelCategory===t);return void 0===i||void 0===i.labelDefinition?null:i.labelDefinition}ensureRepoHasRequiredLabels(e,t){t.forEach(t=>{const i=e.filter(e=>e.getFormattedName()===t.getFormattedName());if(0===i.length)this.githubService.createLabel(t.getFormattedName(),t.labelColor);else{if(1!==i.length)throw new Error("Unexpected error: the repo has multiple labels with the same name "+t.getFormattedName());i[0].equals(t)||bj.updateRequiredLabelColor(i[0].labelColor,t)}})}toLabel(e){let t,i;const n=String(e.name);[t,i]=/\./g.test(n)?e.name.split("."):[void 0,n];const r=e.color,s=String(e.description);return new gj(t,i,r,s)}isDarkColor(e){const t="#"===e.charAt(0)?e.substring(1,7):e,i=[parseInt(t.substring(0,2),16)/255,parseInt(t.substring(2,4),16)/255,parseInt(t.substring(4,6),16)/255].map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*i[0]+.7152*i[1]+.0722*i[2]<.184}setLabelStyle(e,t="inline-flex"){let i;return i=this.isDarkColor(e)?_j:"000000",{"background-color":`#${e}`,"border-radius":"3px",cursor:"default",padding:"3px",color:`#${i}`,"font-weight":"410",display:t}}}bj.severityLabels=Object.values(yj.severity),bj.typeLabels=Object.values(yj.type),bj.responseLabels=Object.values(yj.response),bj.statusLabels=Object.values(yj.status),bj.otherLabels=Object.values(yj.others),bj.allLabelArrays={severity:bj.severityLabels,type:bj.typeLabels,response:bj.responseLabels,status:bj.statusLabels,others:bj.otherLabels},bj.testerLabelArrays={severity:bj.severityLabels,type:bj.typeLabels},bj.\u0275fac=function(e){return new(e||bj)(Tn(dY),Tn(iY))},bj.\u0275prov=fe({token:bj,factory:bj.\u0275fac,providedIn:"root"});let vj=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL))},e.\u0275cmp=Ve({type:e,selectors:[["app-session-fix-confirmation"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-button","","mat-raised-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1),Jo(),Ko(2,"div",1),Ko(3,"p"),Fa(4),Jo(),Ko(5,"p"),Fa(6,"in your Github Account?"),Jo(),Jo(),Ko(7,"div",2),Ko(8,"button",3),Fa(9,"No Thanks"),Jo(),Ko(10,"button",4),Fa(11,"Yes"),Jo(),Jo()),2&e&&(fs(1),qa("Hi ",t.data.user,""),fs(3),qa('Do you want CATcher to create a repository named "',t.data.repoName,'"'),fs(4),Zo("mat-dialog-close",!1),fs(2),Zo("mat-dialog-close",!0))},directives:[BL,VL,$L,oD,zL],styles:[""]}),e})(),wj=(()=>{class e{constructor(e,t,i){this.githubService=e,this.userService=t,this.repoCreationConfirmationDialog=i}requestRepoCreationPermissions(e,t){return b(U(i=>i||e!==kY.phaseBugReporting?_h(null):this.openRepoCreationConfirmation(t)))}openRepoCreationConfirmation(e){return this.repoCreationConfirmationDialog.open(vj,{data:{user:this.userService.currentUser.loginId,repoName:e}}).afterClosed()}verifyRepoCreationPermissions(e){return b(Ig(t=>{if(null!==t){if(!1===t)throw new Error("You cannot proceed without the required repository.");if(e!==kY.phaseBugReporting)throw new Error("Current Phase's Repository has not been opened.");if(this.userService.currentUser.role!==pY.Student)throw new Error("'Bug-Reporting Phase's repository initialisation is only available to Students.'")}}))}attemptRepoCreation(e){return b(U(t=>null===t?_h(null):(this.githubService.createRepository(e),new w(e=>{setTimeout(()=>e.next(!0),1e3)}))))}verifyRepoCreation(e,t){return b(U(i=>i?this.githubService.isRepositoryPresent(e,t):_h(!0)))}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(fY),Tn(HL))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kj={[kY.phaseBugReporting]:"Bug Reporting Phase",[kY.phaseTeamResponse]:"Team's Response Phase",[kY.phaseTesterResponse]:"Tester's Response Phase",[kY.phaseModeration]:"Moderation Phase"};let Sj=(()=>{class e{constructor(e,t,i){this.githubService=e,this.labelService=t,this.repoCreatorService=i,this.phaseRepoOwners={phaseBugReporting:"",phaseTeamResponse:"",phaseTesterResponse:"",phaseModeration:""}}setPhaseOwners(e,t){this.orgName=e,this.phaseRepoOwners.phaseBugReporting=t,this.phaseRepoOwners.phaseTeamResponse=e,this.phaseRepoOwners.phaseTesterResponse=t,this.phaseRepoOwners.phaseModeration=e}getPhaseOwner(e){return this.phaseRepoOwners[e]}fetchSessionData(){return this.githubService.fetchSettingsFile().pipe(D(e=>e))}storeSessionData(){return this.fetchSessionData().pipe(dj(),D(e=>{localStorage.setItem("sessionData",JSON.stringify(e)),this.updateSessionParameters(e)}))}setSessionData(){const e=JSON.parse(localStorage.getItem("sessionData"));this.updateSessionParameters(e)}githubRepoPermissionLevel(){return this.sessionData.openPhases.includes(kY.phaseModeration)?"repo":"public_repo"}verifySessionAvailability(e){return this.githubService.isRepositoryPresent(this.phaseRepoOwners[this.currentPhase],e[this.currentPhase])}updateSessionParameters(e){this.sessionData=e,this.currentPhase=kY[e.openPhases[0]],this.repoName=e[e.openPhases[0]],this.githubService.storePhaseDetails(this.phaseRepoOwners[this.currentPhase],this.repoName)}sessionSetup(){let e=!1;return this.fetchSessionData().pipe(dj(),U(e=>(this.updateSessionParameters(e),this.verifySessionAvailability(e))),this.repoCreatorService.requestRepoCreationPermissions(this.currentPhase,this.sessionData[this.currentPhase]),b(Ig(t=>{e=t||!1})),this.repoCreatorService.verifyRepoCreationPermissions(this.currentPhase),this.repoCreatorService.attemptRepoCreation(this.sessionData[this.currentPhase]),this.repoCreatorService.verifyRepoCreation(this.getPhaseOwner(this.currentPhase),this.sessionData[this.currentPhase]),UP(e=>e,()=>new Error("Session Availability Fix failed.")),this.labelService.syncLabels(this.isTeamOrModerationPhase()),function(e=-1){return t=>t.lift(new uj(e,t))}(1))}isTeamOrModerationPhase(){return this.currentPhase===kY.phaseTeamResponse||this.currentPhase===kY.phaseModeration}getPhaseDetail(){return this.orgName.concat("/").concat(this.repoName)}isValidRoute(e){return e.startsWith("/"+this.currentPhase)}reset(){this.currentPhase=null}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(bj),Tn(wj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Tj=(()=>{class e{constructor(e,t,i,n,r){this.githubService=e,this.userService=t,this.phaseService=i,this.dataService=n,this.logger=r,this.issueTeamFilter="All Teams",this.isLoading=new Gf(!1),this.issues$=new Gf(new Array)}startPollIssues(){void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=fS(0,e.POLL_INTERVAL).pipe(gY(()=>this.reloadAllIssues().pipe(yg(()=>rg),Yg(()=>this.isLoading.next(!1))))).subscribe())}stopPollIssues(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}pollIssue(t){return fS(0,e.POLL_INTERVAL).pipe(gY(()=>this.githubService.fetchIssueGraphql(t).pipe(D(e=>{const t=this.createIssueModel(e);return this.updateLocalStore(t),t}),yg(e=>this.getIssue(t)))))}reloadAllIssues(){return this.initializeData()}getIssue(e){return void 0===this.issues?this.getLatestIssue(e):_h(this.issues[e])}getLatestIssue(e){return this.githubService.fetchIssueGraphql(e).pipe(D(t=>(this.createAndSaveIssueModel(t),this.issues[e])),yg(t=>_h(this.issues[e])))}createIssue(e,t,i,n){const r=[this.createLabel("severity",i),this.createLabel("type",n)],s=new Map([["session",this.sessionId],["Version",`Desktop v${aj}`]]),o=vY.embedDataIntoString(t,s);return this.githubService.createIssue(e,o,r).pipe(D(e=>this.createIssueModel(e)))}updateIssue(e){return this.updateGithubIssue(e).pipe(D(t=>(t.comments=e.githubComments,this.createIssueModel(t))))}updateGithubIssue(e){const t=this.phaseService.currentPhase===kY.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),t).pipe(yg(e=>this.parseUpdateIssueResponseError(e)))}updateIssueWithComment(e,t){return this.githubService.updateIssueComment(t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}updateTesterResponse(e,t){const i=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),n=e.clone(this.phaseService.currentPhase);return n.status=rj.Done,fw([i,this.updateIssue(n)]).pipe(D(e=>{const[t,i]=e;return i.updateTesterResponse(t),i}))}updateTutorResponse(e,t){return fw([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createTeamResponse(e){const t=e.createGithubTeamResponse();return this.updateGithubIssue(e).pipe(U(i=>this.githubService.createIssueComment(e.id,t).pipe(D(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],i.comments=e.githubComments,this.createIssueModel(i))))))}createTutorResponse(e,t){return fw([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createGithubIssueDescription(e){return this.phaseService.currentPhase===kY.phaseModeration?`# Issue Description\n${e.createGithubIssueDescription()}\n# Team's Response\n${e.teamResponse}\n # Disputes\n\n${this.getIssueDisputeString(e.issueDisputes)}\n`:e.createGithubIssueDescription()}getIssueDisputeString(e){let t="";for(const i of e)t+=i.toString();return t}deleteIssue(e){return this.githubService.closeIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.deleteFromLocalStore(t),t}))}undeleteIssue(e){return this.githubService.reopenIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.updateLocalStore(t),t}))}deleteFromLocalStore(e){const t=e.id,i=(0,HP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=i,this.issues$.next(Object.values(this.issues))}updateLocalStore(e){this.issues=Object.assign(Object.assign({},this.issues),{[e.id]:e}),this.issues$.next(Object.values(this.issues))}hasTeamResponse(e){return!!this.issues[e].teamResponse}getDuplicateIssuesFor(e){return this.issues$.pipe(D(t=>t.filter(t=>t.duplicateOf===e.id)))}reset(e){e&&(this.sessionId=void 0),this.issues=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new Gf(!1)}initializeData(){const e=[];switch(oj[this.phaseService.currentPhase][this.userService.currentUser.role]){case sj.FilterByCreator:e.push(this.githubService.fetchIssuesGraphql(new bY({creator:this.userService.currentUser.loginId})));break;case sj.FilterByTeam:e.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",this.userService.currentUser.team.tutorialClassId),this.createLabel("team",this.userService.currentUser.team.teamId),new bY({})));break;case sj.FilterByTeamAssigned:this.userService.currentUser.allocatedTeams.forEach(t=>{e.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",t.tutorialClassId),this.createLabel("team",t.teamId),new bY({})))});break;case sj.NoFilter:e.push(this.githubService.fetchIssuesGraphql(new bY({})));break;default:return _h([])}return fw(e).pipe(D(e=>{const t=[];for(const n of e)for(const e of n)t.push(this.createIssueModel(e).id),this.createAndSaveIssueModel(e);const i=this.getOutdatedIssueIds(t);return this.deleteIssuesFromLocalStore(i),Object.values(this.issues)}))}createAndSaveIssueModel(e){const t=this.createIssueModel(e);return this.updateLocalStore(t),!0}deleteIssuesFromLocalStore(e){e.forEach(e=>{this.getIssue(e).subscribe(e=>this.deleteFromLocalStore(e))})}getOutdatedIssueIds(e){if(void 0===this.issues||!e.length)return[];const t=new Set(e);return Object.keys(this.issues).map(e=>+e).filter(e=>!t.has(e))}createLabelsForIssue(e){const t=[];if(this.phaseService.currentPhase!==kY.phaseBugReporting&&this.phaseService.currentPhase!==kY.phaseTesterResponse){const i=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial",`${i[0]}-${i[1]}`),this.createLabel("team",i[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}createLabel(e,t){return`${e}.${t}`}extractTeamIdFromGithubIssue(e){return e.findLabel($P.LABELS.tutorial).concat("-").concat(e.findLabel($P.LABELS.team))}createIssueModel(e){let t;switch(this.phaseService.currentPhase){case kY.phaseBugReporting:t=tj.createPhaseBugReportingIssue(e);break;case kY.phaseTeamResponse:t=tj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;case kY.phaseTesterResponse:t=tj.createPhaseTesterResponseIssue(e);break;case kY.phaseModeration:t=tj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;default:return}return t.parseError&&this.logger.error("IssueService: "+t.parseError),t}parseUpdateIssueResponseError(e){if(this.logger.error("IssueService: ",e),422!==e.code||!e.hasOwnProperty("message"))return Qb(e.response.data.message);const t=e.message.substring("Validation Failed:".length),i=JSON.parse(t);return["field","code","value"].every(e=>i.hasOwnProperty(e))&&"assignees"===i.field&&"invalid"===i.code?Qb(`Assignee ${i.value} has not joined your organization yet. Please remove them from the assignees list.`):Qb(e.response.data.message)}setIssueTeamFilter(e){e&&(this.issueTeamFilter=e)}setSessionId(e){this.sessionId=e}getIssueTeamFilter(){return this.issueTeamFilter}}return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(fY),Tn(Sj),Tn(mY),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ej=(()=>{class e{constructor(e,t){this.githubService=e,this.issueService=t}setLatestChangeEvent(){return this.githubService.fetchEventsForRepo().pipe(D(e=>(0===e.length||(this.setLastModifiedTime(e[0].created_at),this.setLastModifiedCommentTime(e[0].issue.updated_at)),e)))}reloadPage(){return this.githubService.fetchEventsForRepo().pipe(U(e=>{if(0===e.length)return _h(!1);const t=e[0];return t.created_at!==this.lastModified||t.issue.updated_at!==this.lastModifiedComment?(this.setLastModifiedTime(t.created_at),this.setLastModifiedCommentTime(t.issue.updated_at),this.issueService.reloadAllIssues().pipe(D(e=>!0))):_h(!1)}))}setLastModifiedTime(e){this.lastModified=e}setLastModifiedCommentTime(e){this.lastModifiedComment=e}reset(){this.setLastModifiedTime(void 0),this.setLastModifiedCommentTime(void 0)}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(Tj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var xj=(()=>(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(xj||(xj={})),xj))();let Mj=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.router=e,this.ngZone=t,this.githubService=i,this.userService=n,this.issueService=r,this.phaseService=s,this.dataService=o,this.githubEventService=a,this.titleService=l,this.logger=u,this.authStateSource=new Gf(xj.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new Gf(void 0),this.ENABLE_POPUP_MESSAGE="Please enable pop-ups in your browser"}storeNext(t){sessionStorage.setItem(e.SESSION_NEXT_KEY,t.url)}getNext(){return sessionStorage.getItem(e.SESSION_NEXT_KEY)}clearNext(){sessionStorage.removeItem(e.SESSION_NEXT_KEY)}storeOAuthAccessToken(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}reset(){this.logger.info("AuthService: Clearing access token and setting AuthState to NotAuthenticated."),this.accessToken.next(void 0),this.changeAuthState(xj.NotAuthenticated),this.ngZone.run(()=>this.router.navigate([""]))}logOut(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}setTitleWithPhaseDetail(){const e=i(4147),t=`${e.name} ${e.version} - ${this.phaseService.getPhaseDetail()}`;this.logger.info(`AuthService: Setting Title as ${t}`),this.titleService.setTitle(t)}setLandingPageTitle(){const e=i(4147),t=`${e.name} ${e.version}`;this.logger.info(`AuthService: Setting LandingPageTitle as ${t}`),this.titleService.setTitle(t)}isAuthenticated(){return this.authStateSource.getValue()===xj.Authenticated}changeAuthState(e){if(e===xj.Authenticated){const e=`${Date.now()}-${NP()}`;this.issueService.setSessionId(e),this.logger.info(`AuthService: Successfully authenticated with session: ${e}`)}this.authStateSource.next(e)}generateStateString(){this.state=NP(),sessionStorage.setItem("state",this.state)}isReturnedStateSame(e){return e===sessionStorage.getItem("state")}startOAuthProcess(){this.logger.info("AuthService: Starting authentication");const e=this.phaseService.githubRepoPermissionLevel();this.changeAuthState(xj.AwaitingAuthentication),this.generateStateString(),this.redirectToOAuthPage(encodeURI(`${IP.githubUrl}/login/oauth/authorize?client_id=${IP.clientId}&scope=${e},read:user&state=${this.state}`)),this.logger.info("AuthService: Redirecting for Github authentication")}redirectToOAuthPage(e){null!=e&&(window.location.href=e)}navigateToLandingPage(){const e=this.getNext();e&&this.phaseService.isValidRoute(e)?this.router.navigateByUrl(e):this.router.navigateByUrl(this.phaseService.currentPhase)}}return e.SESSION_NEXT_KEY="next",e.\u0275fac=function(t){return new(t||e)(Tn(fb),Tn(cc),Tn(dY),Tn(fY),Tn(Tj),Tn(Sj),Tn(mY),Tn(Ej),Tn(gh),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Cj={profileName:{required:!0,validate:e=>!!e},repoName:{required:!0,validate:e=>!!e.match(/\w+\/\w+/g)}},Dj=e=>((e,t)=>Object.entries(t).every(([t,i])=>!i.required||t in e&&i.validate(e[t])))(e,Cj),Lj=new Error("profiles.json is malformed");let Oj=(()=>{class e{constructor(e){this.githubService=e}fetchExternalProfiles(){return this.githubService.getProfilesData().then(e=>e.json()).then(e=>e.profiles||[]).then(e=>(this.validateProfiles(e),e))}validateProfiles(e){if(!e.every(Dj))throw Lj}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Aj=(()=>{class e{constructor(e){this.dialogRef=e}ngOnInit(){}onClick(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(Go(RL))},e.\u0275cmp=Ve({type:e,selectors:[["app-json-parse-error-dialog"]],decls:14,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","center",2,"max-width","390px"],["mat-dialog-actions","","align","center"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1,'Error in "profiles.json" format'),Jo(),Ko(2,"div",1),Ko(3,"p",2),Fa(4,' The format of the "profiles.json" file is not as required. You might not have included '),Ko(5,"code"),Fa(6,"profileName"),Jo(),Fa(7," and "),Ko(8,"code"),Fa(9,"repoName"),Jo(),Fa(10," keys. Please refer to our User Guide for the correct format. "),Jo(),Jo(),Ko(11,"div",3),Ko(12,"button",4),la("click",function(){return t.onClick()}),Fa(13,"Ok"),Jo(),Jo())},directives:[BL,VL,$L,oD],styles:[""]}),e})();function Ij(e,t){if(1&e){const e=na();Ko(0,"mat-option",7),la("click",function(){const t=Yt(e).$implicit;return pa().selectProfile(t)}),Fa(1),Jo()}if(2&e){const e=t.$implicit;Zo("value",e.profileName),fs(1),ja(e.profileName)}}let Rj=(()=>{class e{constructor(e,t,i){this.errorDialog=e,this.profileService=t,this.errorHandlingService=i,this.ANIMATION_DURATION=250,this.profiles=[],this.blankProfile={profileName:"",repoName:""},this.animationActivated=!1,this.selectedProfile=this.blankProfile,this.selectedProfileEmitter=new vu,this.profilesData={isDirectoryMessageVisible:!1,fileName:null,fileDirectory:null}}ngOnInit(){this.initProfiles()}fileSelectorInitiation(e){this.animationActivated=!0,setTimeout(()=>{this.animationActivated=!1,e.click()},this.ANIMATION_DURATION)}fileSelected(e){const t=e.target,i=t.files[0],n=new FileReader;n.onload=()=>{if(!(n.result instanceof ArrayBuffer))try{const{profiles:e}=JSON.parse(n.result);this.profileService.validateProfiles(e),this.profiles=e.concat(this.profiles).filter(e=>!!e),t.value=""}catch(e){this.openErrorDialog()}},n.readAsText(i)}initProfiles(){this.profileService.fetchExternalProfiles().then(e=>{this.profiles=this.profiles.concat(e).filter(e=>!!e)}).then(()=>this.setUrlEncodedProfile(this.profiles)).catch(e=>{e===Lj?this.openErrorDialog():this.errorHandlingService.handleError(e)})}openErrorDialog(){this.errorDialog.open(Aj)}selectProfile(e){e===this.blankProfile||Dj(e)?this.selectedProfileEmitter.emit(e):this.openErrorDialog()}setUrlEncodedProfile(e){if(!this.urlEncodedSessionName)return;const t=e.find(e=>e.profileName===this.urlEncodedSessionName);t?(this.selectedProfile.profileName=this.urlEncodedSessionName,this.selectProfile(t)):this.errorHandlingService.handleError(new Error("Invalid URL provided session"))}}return e.\u0275fac=function(t){return new(t||e)(Go(HL),Go(Oj),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-profiles"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{selectedProfileEmitter:"selectedProfileEmitter"},decls:12,vars:3,consts:[[1,"profile-field"],[3,"value"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["type","file","accept",".json",2,"display","none",3,"change"],["fileInput",""],["type","button","mat-icon-button","","disableRipple","true","matTooltip","Configure your custom settings",1,"profile-input",3,"click","mousedown","mouseleave"],[3,"value","click"]],template:function(e,t){if(1&e){const e=na();Ko(0,"mat-form-field",0),Ko(1,"mat-label"),Fa(2,"Select Session"),Jo(),Ko(3,"mat-select",1),Ko(4,"mat-option",2),la("click",function(){return t.selectProfile(t.blankProfile)}),Fa(5,"None"),Jo(),$o(6,Ij,2,2,"mat-option",3),Jo(),Jo(),Ko(7,"input",4,5),la("change",function(e){return t.fileSelected(e)}),Jo(),Ko(9,"button",6),la("click",function(){Yt(e);const i=Wo(8);return t.fileSelectorInitiation(i)})("mousedown",function(){return t.animationActivated=!0})("mouseleave",function(){return t.animationActivated=!1}),Ko(10,"mat-icon"),Fa(11,"folder_open"),Jo(),Jo()}2&e&&(fs(3),Zo("value",t.selectedProfile.profileName),fs(3),Zo("ngForOf",t.profiles),fs(4),Zo("@triggerFileInput",t.animationActivated?"pressed":"normal"))},directives:[NC,AC,PA,mM,md,oD,BA,cL],styles:[".profile-field[_ngcontent-%COMP%]{width:90%}.profile-input[_ngcontent-%COMP%]{width:10%;text-align:right}"],data:{animation:[rp("triggerFileInput",[lp("normal",ap({})),lp("pressed",ap({color:"orange"})),cp("normal => pressed",[sp("0.25s ease")]),cp("pressed => normal",[sp("0.25s ease")])])]}}),e})();function Pj(e,t){if(1&e&&(Ko(0,"button",9),Ko(1,"div"),Fa(2,"Submit"),Jo(),Jo()),2&e){const e=pa();Zo("disabled",e.profileForm.invalid||e.isSettingUpSession)}}function Yj(e,t){1&e&&(Ko(0,"div",10),Xo(1,"mat-spinner",11),Jo()),2&e&&(fs(1),Zo("diameter",47))}let Fj=(()=>{class e{constructor(e,t,i,n,r,s){this.formBuilder=e,this.logger=t,this.githubService=i,this.phaseService=n,this.authService=r,this.errorHandlingService=s,this.sessionEmitter=new vu}ngOnInit(){this.isSettingUpSession=!1,this.initProfileForm()}onProfileSelect(e){this.profileForm.get("session").setValue(e.repoName),this.sessionEmitter.emit(e.repoName)}setupSession(){if(this.profileForm.invalid)return;this.isSettingUpSession=!0;const e=this.profileForm.get("session").value,t=this.getOrgDetails(e),i=this.getDataRepoDetails(e);window.localStorage.setItem("org",t),window.localStorage.setItem("dataRepo",i),this.githubService.storeOrganizationDetails(t,i),this.logger.info(`SessionSelectionComponent: Selected Settings Repo: ${e}`),this.phaseService.storeSessionData().subscribe(()=>{try{this.authService.startOAuthProcess()}catch(e){this.errorHandlingService.handleError(e),this.authService.changeAuthState(xj.NotAuthenticated)}},e=>{this.errorHandlingService.handleError(e),this.isSettingUpSession=!1},()=>this.isSettingUpSession=!1)}getOrgDetails(e){return e.split("/")[0]}getDataRepoDetails(e){return e.split("/")[1]}initProfileForm(){this.profileForm=this.formBuilder.group({session:["",Cw.required]})}}return e.\u0275fac=function(t){return new(t||e)(Go(Wk),Go(iY),Go(dY),Go(Sj),Go(Mj),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-session-selection"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{sessionEmitter:"sessionEmitter"},decls:12,vars:4,consts:[[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[3,"formGroup","ngSubmit"],[1,"login-field",3,"urlEncodedSessionName","selectedProfileEmitter"],[1,"login-field"],["matInput","","placeholder","Settings Location (Org/Repo)","formControlName","session","required",""],["class","sign-in-button","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","spinner-centralize",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",1,"sign-in-button",3,"disabled"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(Ko(0,"mat-card",0),Ko(1,"mat-card-header",1),Ko(2,"mat-card-title",2),Fa(3," Select Your Session "),Jo(),Jo(),Ko(4,"form",3),la("ngSubmit",function(){return t.setupSession()}),Ko(5,"app-profiles",4),la("selectedProfileEmitter",function(e){return t.onProfileSelect(e)}),Jo(),Ko(6,"mat-card-content"),Ko(7,"mat-form-field",5),Xo(8,"input",6),Jo(),Ko(9,"mat-card-actions"),$o(10,Pj,3,1,"button",7),$o(11,Yj,2,1,"div",8),Jo(),Jo(),Jo(),Jo()),2&e&&(fs(4),Zo("formGroup",t.profileForm),fs(1),Zo("urlEncodedSessionName",t.urlEncodedSessionName),fs(5),Zo("ngIf",!t.isSettingUpSession),fs(1),Zo("ngIf",t.isSettingUpSession))},directives:[_D,yD,mD,Ok,Xw,Fk,Rj,pD,NC,SL,kw,Jw,qk,Hk,gD,gd,oD,gI],styles:[".login-field[_ngcontent-%COMP%]{width:100%}.sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}",".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e})(),jj=(()=>{class e{constructor(e,t,i,n,r,s,o){this.authService=e,this.phaseService=t,this.userService=i,this.errorHandlingService=n,this.githubEventService=r,this.logger=s,this.router=o}ngOnInit(){}onGithubWebsiteClicked(){window.open("https://github.com/","_blank"),window.location.reload()}logIntoAnotherAccount(){this.logger.info("ConfirmLoginComponent: Logging into another account"),this.authService.startOAuthProcess()}handleAuthSuccess(){this.authService.setTitleWithPhaseDetail(),this.authService.changeAuthState(xj.Authenticated),this.authService.navigateToLandingPage()}completeLoginProcess(){this.authService.changeAuthState(xj.AwaitingAuthentication),this.phaseService.setPhaseOwners(this.currentSessionOrg,this.username),this.userService.createUserModel(this.username).pipe(U(()=>this.phaseService.sessionSetup()),U(()=>this.githubEventService.setLatestChangeEvent())).subscribe(()=>{this.handleAuthSuccess()},e=>{this.authService.changeAuthState(xj.NotAuthenticated),this.errorHandlingService.handleError(e),this.logger.info(`ConfirmLoginComponent: Completion of login process failed with an error: ${e}`)})}}return e.\u0275fac=function(t){return new(t||e)(Go(Mj),Go(Sj),Go(fY),Go(rY),Go(Ej),Go(iY),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-auth-confirm-login"]],inputs:{username:"username",currentSessionOrg:"currentSessionOrg"},decls:10,vars:1,consts:[["mat-stroked-button","","color","primary",1,"sign-in-button",3,"click"],[1,"logo"],["src","./assets/images/github-logo.png","alt","github-logo",1,"github-logo"],[1,"mat-body-1",2,"margin-top","20px"],["href","https://github.com/",3,"click"]],template:function(e,t){1&e&&(Ko(0,"button",0),la("click",function(){return t.completeLoginProcess()}),Ko(1,"span",1),Xo(2,"img",2),Jo(),Ko(3,"span"),Fa(4),Jo(),Jo(),Ko(5,"div",3),Fa(6," To change account, please sign into the desired account from the "),Ko(7,"a",4),la("click",function(){return t.onGithubWebsiteClicked()}),Fa(8,"official Github website"),Jo(),Fa(9,".\n"),Jo()),2&e&&(fs(4),qa(" Continue as ",t.username," "))},directives:[oD],styles:[".sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}.logo[_ngcontent-%COMP%]{align-items:center;display:inline-flex;margin:0 3px 3px}.github-logo[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}"]}),e})();function qj(e,t){if(1&e&&(Ko(0,"div",1),Xo(1,"app-session-selection",2),Jo()),2&e){const e=pa();fs(1),Zo("urlEncodedSessionName",e.urlEncodedSessionName)}}function Nj(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"app-auth-confirm-login",10),Jo()),2&e){const e=pa(2);fs(1),Zo("username",e.currentUserName)("currentSessionOrg",e.currentSessionOrg)}}function Hj(e,t){1&e&&(Ko(0,"div",11),Xo(1,"mat-spinner",12),Jo()),2&e&&(fs(1),Zo("diameter",47))}function Uj(e,t){if(1&e){const e=na();Ko(0,"div",1),Ko(1,"mat-card",3),Ko(2,"mat-card-header",4),Ko(3,"mat-card-title",5),Fa(4," Confirm Login Account "),Jo(),Ko(5,"mat-card-subtitle"),Fa(6),Jo(),Jo(),Ko(7,"div",6),Ko(8,"button",7),la("click",function(){return Yt(e),pa().goToSessionSelect()}),Ko(9,"mat-icon"),Fa(10,"arrow_back_ios"),Jo(),Jo(),Jo(),$o(11,Nj,2,2,"div",8),$o(12,Hj,2,1,"div",9),Jo(),Jo()}if(2&e){const e=pa();fs(6),qa(" Session on ",e.currentSessionOrg," "),fs(2),Zo("disabled",e.isUserAuthenticating()),fs(3),Zo("ngIf",!e.isUserAuthenticating()),fs(1),Zo("ngIf",e.isUserAuthenticating())}}const zj=[{path:"",component:(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.appService=e,this.githubService=t,this.authService=i,this.userService=n,this.errorHandlingService=r,this.router=s,this.phaseService=o,this.ngZone=a,this.activatedRoute=l,this.logger=u}ngOnInit(){this.logger.startSession();const e=this.activatedRoute.snapshot.queryParamMap.get("code"),t=this.activatedRoute.snapshot.queryParamMap.get("state");this.authService.isAuthenticated()?this.router.navigate([this.phaseService.currentPhase]):(this.initAccessTokenSubscription(),this.initAuthStateSubscription(),this.createProfileFromUrlQueryParams(),e&&(this.authService.changeAuthState(xj.AwaitingAuthentication),this.restoreOrgDetailsFromLocalStorage(),this.logger.info("AuthComponent: Obtained authorisation code from Github"),this.fetchAccessToken(e,t)))}fetchAccessToken(e,t){this.authService.isReturnedStateSame(t)?(this.logger.info("AuthComponent: Retrieving access token from Github"),fetch(`${IP.accessTokenUrl}/${e}/client_id/${IP.clientId}`).then(e=>e.json()).then(e=>{if(e.error)throw new Error(e.error);this.authService.storeOAuthAccessToken(e.token),this.logger.info("AuthComponent: Sucessfully obtained access token")}).catch(e=>{this.logger.info(`AuthComponent: Error in data fetched from access token URL: ${e}`),this.errorHandlingService.handleError(e),this.authService.changeAuthState(xj.NotAuthenticated)})):this.logger.info(`AuthComponent: Received incorrect state ${t}, continue waiting for correct state`)}ngOnDestroy(){this.authStateSubscription&&this.authStateSubscription.unsubscribe(),this.accessTokenSubscription&&this.accessTokenSubscription.unsubscribe()}checkAppIsOutdated(){return this.appService.isApplicationOutdated().pipe(D(e=>{if(e)throw new Error("Please update to the latest version of CATcher.")}))}updateSession(e){this.sessionInformation=e}goToSessionSelect(){this.authService.changeAuthState(xj.NotAuthenticated)}isUserNotAuthenticated(){return this.authState===xj.NotAuthenticated}isUserAuthenticating(){return this.authState===xj.AwaitingAuthentication}isAwaitingOAuthUserConfirm(){return this.authState===xj.ConfirmOAuthUser}get currentSessionOrg(){return this.sessionInformation?this.getOrgDetails(this.sessionInformation):window.localStorage.getItem("org")}restoreOrgDetailsFromLocalStorage(){const e=window.localStorage.getItem("org"),t=window.localStorage.getItem("dataRepo");this.githubService.storeOrganizationDetails(e,t),this.phaseService.setSessionData()}getOrgDetails(e){return e.split("/")[0]}initAuthStateSubscription(){this.authStateSubscription=this.authService.currentAuthState.subscribe(e=>{this.ngZone.run(()=>{this.authState=e})})}initAccessTokenSubscription(){this.accessTokenSubscription=this.authService.accessToken.pipe(bh(e=>!!e),U(()=>this.userService.getAuthenticatedUser())).subscribe(e=>{this.ngZone.run(()=>{this.currentUserName=e.login,this.authService.changeAuthState(xj.ConfirmOAuthUser)})})}createProfileFromUrlQueryParams(){const e=this.activatedRoute.snapshot.queryParamMap;e.has("session")&&(this.urlEncodedSessionName=e.get("session"))}}return e.\u0275fac=function(t){return new(t||e)(Go(lj),Go(dY),Go(Mj),Go(fY),Go(rY),Go(fb),Go(Sj),Go(cc),Go(W_),Go(iY))},e.\u0275cmp=Ve({type:e,selectors:[["app-auth"]],decls:2,vars:2,consts:[["class","login-page",4,"ngIf"],[1,"login-page"],[3,"urlEncodedSessionName"],[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[2,"position","absolute","top","15px","left","15px"],["mat-icon-button","",1,"mat-primary",3,"disabled","click"],[4,"ngIf"],["class","spinner-centralize",4,"ngIf"],[3,"username","currentSessionOrg"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&($o(0,qj,2,1,"div",0),$o(1,Uj,13,4,"div",0)),2&e&&(Zo("ngIf",t.isUserNotAuthenticated()),fs(1),Zo("ngIf",t.isUserAuthenticating()||t.isAwaitingOAuthUserConfirm()))},directives:[gd,Fj,_D,yD,mD,fD,oD,cL,jj,gI],styles:[".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e})()}];let Bj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(zj)],Lb]}),e})(),Vj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Bj,DP,Dd]]}),e})(),$j=(()=>{class e{constructor(e,t){this.auth=e,this.router=t}canActivate(e,t){return this.auth.isAuthenticated()?(this.auth.clearNext(),!0):(this.auth.storeNext(t),this.router.navigate([""]),!1)}canLoad(e,t){return!!this.auth.isAuthenticated()||(this.router.navigate([""]),!1)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Mj),Tn(fb))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DP,iw.forChild()]]}),e})(),Gj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP,Lb]]}),e})();function Zj(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o}function Qj(e,t){return function(i,n){t(i,n,e)}}const Kj=["searchSelectInput"],Jj=["innerSelectSearch"];function Xj(e,t){if(1&e){const e=na();Ko(0,"mat-checkbox",9),la("change",function(t){return Yt(e),pa()._emitSelectAllBooleanToParent(t.checked)}),Jo()}if(2&e){const e=pa();Zo("color",null==e.matFormField?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toogleAllCheckboxTooltipPosition)}}function eq(e,t){1&e&&Xo(0,"mat-spinner",10)}function tq(e,t){1&e&&ga(0,1,["*ngIf","clearIcon; else defaultIcon"])}function iq(e,t){1&e&&(Ko(0,"mat-icon"),Fa(1,"close"),Jo())}function nq(e,t){if(1&e){const e=na();Ko(0,"button",11),la("click",function(){return Yt(e),pa()._reset(!0)}),$o(1,tq,1,0,"ng-content",12),$o(2,iq,2,0,"ng-template",null,13,qu),Jo()}if(2&e){const e=Wo(3),t=pa();fs(1),Zo("ngIf",t.clearIcon)("ngIfElse",e)}}function rq(e,t){if(1&e&&(Ko(0,"div",14),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.noEntriesFoundLabel,"\n")}}const sq=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],oq=function(e,t){return{"mat-select-search-inner-multiple":e,"mat-select-search-inner-toggle-all":t}};let aq=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","ngxMatSelectSearchClear",""]]}),e})();var lq;let uq=lq=class{constructor(e,t,i,n=null,r,s=null){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=s,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new vu,this.onTouched=e=>{},this._options$=new Gf(null),this.optionsList$=this._options$.pipe(ag(e=>e?e.changes.pipe(D(e=>e.toArray()),mg(e.toArray())):_h(null))),this.optionsLength$=this.optionsList$.pipe(D(e=>e?e.length:0)),this._formControl=new kk(""),this._showNoEntriesFound$=Xf([this._formControl.valueChanges,this.optionsLength$]).pipe(D(([e,t])=>this.noEntriesFoundLabel&&e&&t===this.getOptionsLengthOffset())),this._onDestroy=new x}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}ngOnInit(){const e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(UC(1),yS(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(dg(1)).pipe(yS(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe(yS(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe(yS(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const t=this._options.toArray(),i=t[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(e,i)||!n.activeItem||!t.find(e=>this.matSelect.compareWith(e,n.activeItem)))&&n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),e=i})})}),this._showNoEntriesFound$.pipe(yS(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(yS(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(yS(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&1===e.key.length||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||32===e.keyCode||this.preventHomeEndKeyPropagation&&(36===e.keyCode||35===e.keyCode))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&13===e.keyCode&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&27===e.keyCode&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(38===e.keyCode||40===e.keyCode){const e=this.matSelect._getAriaActiveDescendant(),t=this._options.toArray().findIndex(t=>t.id===e);if(-1!==t){const e=this._options.toArray()[t];this.liveAnnouncer.announce(e.viewValue+" "+this.getAriaIndex(t)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(e){return 0===this.getOptionsLengthOffset()?e+1:e}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(bh(e=>e!==this._lastExternalInputValue),Ig(()=>this._lastExternalInputValue=void 0),yS(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);const i=this.matSelect.options.map(e=>e.value);this.previousSelectedValues.forEach(n=>{!e.some(e=>this.matSelect.compareWith(e,n))&&!i.some(e=>this.matSelect.compareWith(e,n))&&(e.push(n),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const e=this.getMatOptionHeight(),t=this.matSelect._keyManager.activeItemIndex||0,i=fM(t,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+t,r=this.matSelect.panel.nativeElement.scrollTop,s=this.innerSelectSearch.nativeElement.offsetHeight,o=Math.floor((256-s)/e),a=Math.round((r+s)/e)-1;a>=n?this.matSelect.panel.nativeElement.scrollTop=n*e:a+o<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*e-(256-s))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e,t=this.innerSelectSearch.nativeElement;for(;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};uq.\u0275fac=function(e){return new(e||uq)(Go(PA),Go(ql),Go(QS),Go(mM,8),Go(FT),Go(NC,8))},uq.\u0275cmp=Ve({type:uq,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,aq,5),2&e){let e;Au(e=Pu())&&(t.clearIcon=e.first)}},viewQuery:function(e,t){if(1&e&&(Iu(Kj,7,pl),Iu(Jj,7,pl)),2&e){let e;Au(e=Pu())&&(t.searchSelectInput=e.first),Au(e=Pu())&&(t.innerSelectSearch=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-select-search-inside-mat-option",t.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[sl([{provide:bw,useExisting:ae(()=>lq),multi:!0}])],ngContentSelectors:[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(e,t){1&e&&(fa(sq),Xo(0,"input",0),Ko(1,"div",1,2),$o(3,Xj,1,5,"mat-checkbox",3),Ko(4,"input",4,5),la("keydown",function(e){return t._handleKeydown(e)})("keyup",function(e){return t._handleKeyup(e)})("blur",function(){return t.onBlur()}),Jo(),$o(6,eq,1,0,"mat-spinner",6),$o(7,nq,4,2,"button",7),ga(8),Jo(),$o(9,rq,2,1,"div",8),_u(10,"async")),2&e&&(fs(1),Zo("ngClass",mu(11,oq,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),fs(2),Zo("ngIf",t._isToggleAllCheckboxVisible()),fs(1),Zo("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),Bo("aria-label",t.ariaLabel),fs(2),Zo("ngIf",t.searching),fs(1),Zo("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),fs(2),Zo("ngIf",yu(10,9,t._showNoEntriesFound$)))},directives:[hd,gd,kw,Jw,Pk,LD,BA,gI,oD,cL],pipes:[Cd],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),uq.ctorParameters=()=>[{type:PA,decorators:[{type:Ln,args:[PA]}]},{type:ql},{type:QS},{type:mM,decorators:[{type:On},{type:Ln,args:[mM]}]},{type:FT},{type:NC,decorators:[{type:On},{type:Ln,args:[NC]}]}],Zj([Nu()],uq.prototype,"placeholderLabel",void 0),Zj([Nu()],uq.prototype,"type",void 0),Zj([Nu()],uq.prototype,"noEntriesFoundLabel",void 0),Zj([Nu()],uq.prototype,"indexAndLengthScreenReaderText",void 0),Zj([Nu()],uq.prototype,"clearSearchInput",void 0),Zj([Nu()],uq.prototype,"searching",void 0),Zj([Nu()],uq.prototype,"disableInitialFocus",void 0),Zj([Nu()],uq.prototype,"enableClearOnEscapePressed",void 0),Zj([Nu()],uq.prototype,"preventHomeEndKeyPropagation",void 0),Zj([Nu()],uq.prototype,"disableScrollToActiveOnOptionsChanged",void 0),Zj([Nu()],uq.prototype,"ariaLabel",void 0),Zj([Nu()],uq.prototype,"showToggleAllCheckbox",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxChecked",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxIndeterminate",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxTooltipMessage",void 0),Zj([Nu()],uq.prototype,"toogleAllCheckboxTooltipPosition",void 0),Zj([Nu()],uq.prototype,"hideClearSearchButton",void 0),Zj([Nu()],uq.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),Zj([Hu()],uq.prototype,"toggleAll",void 0),Zj([sn("searchSelectInput",{read:pl,static:!0})],uq.prototype,"searchSelectInput",void 0),Zj([sn("innerSelectSearch",{read:pl,static:!0})],uq.prototype,"innerSelectSearch",void 0),Zj([rn(aq,{static:!1})],uq.prototype,"clearIcon",void 0),Zj([Uu("class.mat-select-search-inside-mat-option")],uq.prototype,"isInsideMatOption",null),uq=lq=Zj([Qj(0,Ln(PA)),Qj(3,On()),Qj(3,Ln(mM)),Qj(5,On()),Qj(5,Ln(NC))],uq);let cq=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,$k,aD,AD,dL,_I,WA]]}),e})(),dq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DP,Wj,aI,cq,iw.forChild()]]}),e})(),hq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,DP]]}),e})(),pq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})(),mq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild(),cq]]}),e})(),fq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd]]}),e})(),gq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd]]}),e})(),_q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})(),yq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})();const bq={[kY.phaseBugReporting]:{[pY.Student]:{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}},[kY.phaseTeamResponse]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1}},[kY.phaseTesterResponse]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!0,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!0,isTutorResponseEditable:!1}},[kY.phaseModeration]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0}}};let vq=(()=>{class e{constructor(e,t){this.userService=e,this.phaseService=t}isIssueCreatable(){return this.askForPermission("User","isIssueCreatable")}isIssueDeletable(){return this.askForPermission("User","isIssueDeletable")}isIssueTitleEditable(){return this.askForPermission("User","isIssueTitleEditable")}isIssueDescriptionEditable(){return this.askForPermission("User","isIssueDescriptionEditable")}isIssueLabelsEditable(){return this.askForPermission("User","isIssueLabelsEditable")}isTesterResponseEditable(){return this.askForPermission("User","isTesterResponseEditable")}isTeamResponseEditable(){return this.askForPermission("User","isTeamResponseEditable")}isTutorResponseEditable(){return this.askForPermission("User","isTutorResponseEditable")}isIssueEditable(){return this.isIssueTitleEditable()||this.isIssueDescriptionEditable()||this.isIssueLabelsEditable()||this.isTeamResponseEditable()||this.isTesterResponseEditable()||this.isTutorResponseEditable()}askForPermission(e,t){switch(e){case"Phase":return bq[this.phaseService.currentPhase][t];case"User":return bq[this.phaseService.currentPhase][this.userService.currentUser.role][t];default:return!1}}}return e.\u0275fac=function(t){return new(t||e)(Tn(fY),Tn(Sj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function wq(e,t){1&e&&(Ko(0,"div",2),Xo(1,"mat-spinner",3),Jo()),2&e&&(fs(1),Zo("diameter",47))}function kq(e,t){if(1&e){const e=na();Ko(0,"app-issue-description",13),la("changeEditState",function(t){return Yt(e),pa(2).updateDescriptionEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("isEditing",e.isIssueDescriptionEditing)("issue",e.issue)}}function Sq(e,t){if(1&e){const e=na();Ko(0,"app-team-response",14),la("updateEditState",function(t){return Yt(e),pa(2).updateTeamResponseEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTeamResponseEditing)}}function Tq(e,t){if(1&e){const e=na();Ko(0,"app-new-team-response",4),la("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}2&e&&Zo("issue",pa(2).issue)}function Eq(e,t){1&e&&Xo(0,"app-parse-error",15),2&e&&Zo("phase","Team Response")}function xq(e,t){if(1&e){const e=na();Ko(0,"app-tester-response",14),la("updateEditState",function(t){return Yt(e),pa(2).updateTesterResponseEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTesterResponseEditing)}}function Mq(e,t){1&e&&Xo(0,"app-parse-error",15),2&e&&Zo("phase","Tester Response")}function Cq(e,t){1&e&&Xo(0,"app-team-accepted")}function Dq(e,t){if(1&e){const e=na();Ko(0,"app-issue-dispute",16),la("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)})("updateEditState",function(t){return Yt(e),pa(2).updateTutorResponseEditState(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTutorResponseEditing)}}function Lq(e,t){if(1&e){const e=na();Ko(0,"app-issue-label",19),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo()}2&e&&Zo("issue",pa(3).issue)}function Oq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-issue-label",20),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Aq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-issue-label",21),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Iq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-assignee-component",22),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)("team",e.issue.teamAssigned)}}function Rq(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Xo(2,"app-duplicated-issues-component",23),Xo(3,"br"),Jo()),2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Pq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-duplicate-of-component",4),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Yq(e,t){1&e&&(Ko(0,"div",24),Fa(1," * Need your resolution. An issue cannot have both duplicated issues and duplicated status. "),Jo())}function Fq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-unsure-checkbox",4),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function jq(e,t){if(1&e&&(Ko(0,"div"),$o(1,Lq,1,1,"app-issue-label",17),$o(2,Oq,3,1,"div",1),$o(3,Aq,3,1,"div",1),$o(4,Iq,3,2,"div",1),$o(5,Rq,4,1,"div",1),_u(6,"async"),$o(7,Pq,3,1,"div",1),_u(8,"async"),$o(9,Yq,2,0,"div",18),_u(10,"async"),_u(11,"async"),$o(12,Fq,3,1,"div",1),Jo()),2&e){const e=pa(2);fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.SEVERITY_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TYPE_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.RESPONSE_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.ASSIGNEE)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&0!==yu(6,8,e.issueService.getDuplicateIssuesFor(e.issue)).length),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&(e.issue.duplicateOf||0===yu(8,10,e.issueService.getDuplicateIssuesFor(e.issue)).length)),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&0!==yu(10,12,e.issueService.getDuplicateIssuesFor(e.issue)).length&&(e.issue.duplicateOf||0===yu(11,14,e.issueService.getDuplicateIssuesFor(e.issue)).length)),fs(3),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.UNSURE_CHECKBOX))}}function qq(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-issue-title",4),la("issueUpdated",function(t){return Yt(e),pa().updateIssue(t)}),Jo(),Xo(2,"mat-divider"),Ko(3,"div",5),Ko(4,"div",6),$o(5,kq,1,2,"app-issue-description",7),$o(6,Sq,1,2,"app-team-response",8),$o(7,Tq,1,1,"app-new-team-response",9),$o(8,Eq,1,1,"app-parse-error",10),$o(9,xq,1,2,"app-tester-response",8),$o(10,Mq,1,1,"app-parse-error",10),$o(11,Cq,1,0,"app-team-accepted",1),$o(12,Dq,1,2,"app-issue-dispute",11),Jo(),Ko(13,"div",12),$o(14,jq,13,16,"div",1),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("issue",e.issue),fs(4),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_POST)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TEAM_RESPONSE)&&e.issue.teamResponse),fs(1),Zo("ngIf",e.hasNoTeamResponse()),fs(1),Zo("ngIf",e.hasTeamResponseParseError()),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.testerResponses&&0!==e.issue.testerResponses.length),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.testerResponseError),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.teamAccepted),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.ISSUE_DISPUTE)),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.NEW_TEAM_RESPONSE)&&e.issue.teamResponse||e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.userService.currentUser.role===e.userRole.Student||e.isComponentVisible(e.issueComponentsEnum.ISSUE_DISPUTE)||!e.isComponentVisible(e.issueComponentsEnum.TEAM_RESPONSE))}}var Nq=(()=>(function(e){e[e.TESTER_POST=0]="TESTER_POST",e[e.TEAM_RESPONSE=1]="TEAM_RESPONSE",e[e.NEW_TEAM_RESPONSE=2]="NEW_TEAM_RESPONSE",e[e.TESTER_RESPONSE=3]="TESTER_RESPONSE",e[e.ISSUE_DISPUTE=4]="ISSUE_DISPUTE",e[e.SEVERITY_LABEL=5]="SEVERITY_LABEL",e[e.TYPE_LABEL=6]="TYPE_LABEL",e[e.RESPONSE_LABEL=7]="RESPONSE_LABEL",e[e.ASSIGNEE=8]="ASSIGNEE",e[e.DUPLICATE=9]="DUPLICATE",e[e.UNSURE_CHECKBOX=10]="UNSURE_CHECKBOX"}(Nq||(Nq={})),Nq))();let Hq=(()=>{class e{constructor(e,t,i,n,r,s){this.errorHandlingService=e,this.permissions=t,this.userService=i,this.issueService=n,this.phaseService=r,this.router=s,this.isIssueLoading=!0,this.isTutorResponseEditing=!1,this.isIssueDescriptionEditing=!1,this.isTeamResponseEditing=!1,this.isTesterResponseEditing=!1,this.issueComponentsEnum=Nq,this.userRole=pY}ngOnInit(){this.getAndPollIssue(this.issueId)}ngOnChanges(e){e.issueId.firstChange||(this.stopPolling(),this.isIssueLoading=!0,this.getAndPollIssue(e.issueId.currentValue))}ngOnDestroy(){this.stopPolling()}isComponentVisible(e){return this.issueComponents.includes(e)}isEditing(){return this.isIssueDescriptionEditing||this.isTutorResponseEditing||this.isTeamResponseEditing}updateIssue(e){this.issue=e,this.issueService.updateLocalStore(e)}updateDescriptionEditState(e){this.isIssueDescriptionEditing=e}updateTeamResponseEditState(e){this.isTeamResponseEditing=e}updateTesterResponseEditState(e){this.isTesterResponseEditing=e}updateTutorResponseEditState(e){this.isTutorResponseEditing=e}hasNoTeamResponse(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&!this.issue.teamResponse&&!this.issue.status}hasTeamResponseParseError(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&this.issue.teamResponseError&&!!this.issue.status}getAndPollIssue(e){this.issueService.getIssue(e).subscribe(t=>{this.isIssueLoading=!1,this.issue=t,this.pollIssue(e)},e=>{this.router.navigateByUrl(this.phaseService.currentPhase).then(()=>{this.errorHandlingService.handleError(new Error("Invalid URL provided!"))})})}pollIssue(e){this.issueSubscription=this.issueService.pollIssue(e).subscribe(e=>{const t=e.clone(this.phaseService.currentPhase);this.isIssueLoading||(this.isIssueDescriptionEditing||this.isTeamResponseEditing||!this.issue.teamResponse&&t.teamResponse||this.isTesterResponseEditing||this.isTutorResponseEditing)&&t.retainResponses(this.phaseService.currentPhase,this.issue),this.issue=t,this.isIssueLoading=!1},t=>{this.errorHandlingService.handleError(t,()=>this.pollIssue(e))})}stopPolling(){this.issueSubscription&&this.issueSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(rY),Go(vq),Go(fY),Go(Tj),Go(Sj),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-view-issue"]],inputs:{issueId:"issueId",issueComponents:"issueComponents"},features:[ct],decls:2,vars:2,consts:[["class","centralize",4,"ngIf"],[4,"ngIf"],[1,"centralize"],[3,"diameter"],[3,"issue","issueUpdated"],[1,"row"],[1,"column","left"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated",4,"ngIf"],[3,"issue","isEditing","updateEditState","issueUpdated",4,"ngIf"],[3,"issue","issueUpdated",4,"ngIf"],[3,"phase",4,"ngIf"],[3,"issue","isEditing","issueUpdated","updateEditState",4,"ngIf"],[1,"column","right"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated"],[3,"issue","isEditing","updateEditState","issueUpdated"],[3,"phase"],[3,"issue","isEditing","issueUpdated","updateEditState"],["attributeName","severity",3,"issue","issueUpdated",4,"ngIf"],["style","margin-top: 15px; color: red",4,"ngIf"],["attributeName","severity",3,"issue","issueUpdated"],["attributeName","type",3,"issue","issueUpdated"],["attributeName","response",3,"issue","issueUpdated"],[3,"issue","team","issueUpdated"],[3,"issue"],[2,"margin-top","15px","color","red"]],template:function(e,t){1&e&&($o(0,wq,2,1,"div",0),$o(1,qq,15,10,"div",1)),2&e&&(Zo("ngIf",t.isIssueLoading),fs(1),Zo("ngIf",!t.isIssueLoading))},styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})(),Uq=(()=>{class e{constructor(e,t,i){this.componentFactoryResolver=e,this.injector=t,this.document=i,this.isLoading=new Gf(!1),this.spinnerContainerRef=null,this.spinnerComponentRef=null,this.animationMode="indeterminate",this.spinnerTheme="primary",this.classList=[],this.spinnerFactory=this.componentFactoryResolver.resolveComponentFactory(gI),this.isLoading.pipe(wS()).subscribe(([e,t])=>this.onIsLoadingChange(e,t))}ngOnDestroy(){this.isLoading.complete(),this.detachSpinnerFromDom(),this.spinnerContainerRef=null}addAnimationMode(e){return this.animationMode=e,this}addSpinnerOptions(e){return this.options=e,this}addViewContainerRef(e){return void 0===e||(this.spinnerContainerRef=e),this}addTheme(e){return this.spinnerTheme=e,this}addCssClasses(e){return this.classList=[],this.classList.push(...e),this}showLoader(){this.isLoading.next(!0)}hideLoader(){this.isLoading.next(!1)}onIsLoadingChange(e,t){if(e!==t)return t?this.attachSpinnerToDom():this.detachSpinnerFromDom()}attachSpinnerToDom(){if(null!==this.spinnerComponentRef)return;const e=this.getInjector(),t=this.createSpinner(e);this.isAttachableToDocument()?t.location.nativeElement instanceof Node&&this.document.body.appendChild(t.location.nativeElement):this.spinnerContainerRef.insert(t.hostView),t.changeDetectorRef.detectChanges(),this.spinnerComponentRef=t}detachSpinnerFromDom(){null!==this.spinnerComponentRef&&(this.isAttachableToDocument()?this.spinnerComponentRef.location.nativeElement instanceof Node&&this.document.body.removeChild(this.spinnerComponentRef.location.nativeElement):this.spinnerContainerRef.remove(),this.spinnerComponentRef.destroy(),this.spinnerComponentRef=null)}getInjector(){return this.isAttachableToDocument()?this.injector:this.spinnerContainerRef.injector}isAttachableToDocument(){return null===this.spinnerContainerRef}createSpinner(e){const t=this.spinnerFactory.create(e);this.options&&(t.instance.diameter=this.options.diameter,t.instance.strokeWidth=this.options.strokeWidth),t.instance.mode=this.animationMode,t.instance.color=this.spinnerTheme;const i=t.injector.get(gl);for(const n of this.classList)i.addClass(t.location.nativeElement,n);return t}}return e.\u0275fac=function(t){return new(t||e)(Tn(ul),Tn(Do),Tn(zc))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zq=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this.data=t,this._sanitizer=i,this.labelName=t.header,this.labelDefinitionHtmlTemplate=i.bypassSecurityTrustHtml(t.body)}onNoClick(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh))},e.\u0275cmp=Ve({type:e,selectors:[["app-label-definition-popup"]],decls:8,vars:2,consts:[[1,"modalPopup"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),Ko(3,"div",2),Xo(4,"div",3),Jo(),Ko(5,"div",4),Ko(6,"button",5),la("click",function(){return t.onNoClick()}),Fa(7,"Close"),Jo(),Jo(),Jo()),2&e&&(fs(2),ja(t.labelName),fs(2),Zo("innerHTML",t.labelDefinitionHtmlTemplate,Gr))},directives:[BL,VL,$L,oD],styles:[".modalPopup[_ngcontent-%COMP%]{min-width:800px}"]}),e})();function Bq(e,t){if(1&e&&(Ko(0,"p"),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),qa(" ",e," ")}}let Vq=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}onNoClick(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL))},e.\u0275cmp=Ve({type:e,selectors:[["app-user-confirmation"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1,"Warning"),Jo(),Ko(2,"div",1),$o(3,Bq,2,1,"p",2),Jo(),Ko(4,"div",3),Ko(5,"button",4),la("click",function(){return t.onNoClick()}),Fa(6),Jo(),Ko(7,"button",5),Fa(8),Jo(),Jo()),2&e&&(fs(3),Zo("ngForOf",t.data.messages),fs(3),ja(t.data.noMessage),fs(1),Zo("mat-dialog-close",!0),fs(1),ja(t.data.yesMessage))},directives:[BL,VL,md,$L,oD,zL],styles:[""]}),e})(),$q=(()=>{class e{constructor(e){this.dialog=e}openUserConfirmationModal(e,t,i){return this.dialog.open(Vq,{data:{messages:e,yesMessage:t,noMessage:i}})}openLabelDefinitionDialog(e,t){return this.dialog.open(zq,{data:{header:e,body:t}})}checkIfFieldIsModified(e,t,i,n){const r=n[t]||"";return e.get(i).value!==r}performActionIfModified(e,t,i){e?t():i()}}return e.\u0275fac=function(t){return new(t||e)(Tn(HL))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Wq=["loadingSpinnerContainer"];function Gq(e,t){if(1&e){const e=na();Ko(0,"button",7),la("click",function(){return Yt(e),pa(2).changeToEditMode()}),Fa(1," Edit "),Jo()}}function Zq(e,t){1&e&&(Ko(0,"button",8),Fa(1," New Issue "),Jo()),2&e&&Zo("routerLink","/"+pa(2).phaseService.currentPhase+"/issues/new")}function Qq(e,t){if(1&e&&(Ko(0,"div",2),Ko(1,"h1",3),Fa(2),Ko(3,"span",4),Fa(4),Jo(),Jo(),Ko(5,"div",2),$o(6,Gq,2,0,"button",5),$o(7,Zq,2,1,"button",6),Jo(),Jo()),2&e){const e=pa();fs(2),qa(" ",e.issue.title," "),fs(2),qa("#",e.issue.id,""),fs(2),Zo("ngIf",e.permissions.isIssueTitleEditable()),fs(1),Zo("ngIf",e.permissions.isIssueCreatable())}}function Kq(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title is required. "),Jo())}function Jq(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot exceed 256 characters. "),Jo())}function Xq(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa(2);fs(1),qa(" ",256-(null==e.issueTitleForm.get("title").value?null:e.issueTitleForm.get("title").value.length)," characters remaining. ")}}function eN(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"form",9,10),la("ngSubmit",function(){Yt(e);const t=Wo(2);return pa().updateTitle(t)}),Ko(3,"mat-form-field",11),Xo(4,"input",12),$o(5,Kq,2,0,"mat-error",1),$o(6,Jq,2,0,"mat-error",1),$o(7,Xq,2,1,"mat-hint",1),Jo(),Ko(8,"button",13),Fa(9," Save "),ia(10,null,14),Jo(),Ko(12,"button",15),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(13," Cancel "),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("formGroup",e.issueTitleForm),fs(4),Zo("ngIf",e.issueTitleForm.get("title").hasError("required")),fs(1),Zo("ngIf",e.issueTitleForm.get("title").hasError("maxlength")),fs(1),Zo("ngIf",(null==e.issueTitleForm.get("title").value?null:e.issueTitleForm.get("title").value.length)>=206),fs(1),Zo("disabled",e.issueTitleForm.invalid||e.isSavePending),fs(4),Zo("disabled",e.isSavePending)}}let tN=(()=>{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.permissions=n,this.phaseService=r,this.dialogService=s,this.loadingService=o,this.isEditing=!1,this.isSavePending=!1,this.issueUpdated=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}ngOnInit(){this.issueTitleForm=this.formBuilder.group({title:new kk("",[Cw.required,Cw.maxLength(256)])}),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}changeToEditMode(){this.isEditing=!0,this.issueTitleForm.setValue({title:this.issue.title||""})}cancelEditMode(){this.isEditing=!1}updateTitle(e){if(this.issueTitleForm.invalid)return;this.showSpinner();const t=this.issue.clone(this.phaseService.currentPhase);t.title=this.issueTitleForm.get("title").value,this.issueService.updateIssue(t).pipe(Yg(()=>{this.isEditing=!1})).subscribe(t=>{this.issueUpdated.emit(t),e.resetForm(),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.issueTitleForm,"title","title",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(vq),Go(Sj),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-title"]],viewQuery:function(e,t){if(1&e&&Iu(Wq,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},features:[sl([Uq])],decls:2,vars:2,consts:[["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"mat-display-1","title"],[2,"color","#a3aab1"],["mat-stroked-button","","color","primary","class","title-button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","class","title-button",3,"routerLink",4,"ngIf"],["mat-stroked-button","","color","primary",1,"title-button",3,"click"],["mat-stroked-button","","color","primary",1,"title-button",3,"routerLink"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[2,"width","80%"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],["type","submit","mat-stroked-button","","color","primary",1,"title-button",3,"disabled"],["loadingSpinnerContainer",""],["type","button","mat-stroked-button","","color","warn",1,"title-button",3,"disabled","click"]],template:function(e,t){1&e&&($o(0,Qq,8,4,"div",0),$o(1,eN,14,6,"div",1)),2&e&&(Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[gd,oD,_b,Ok,Xw,Fk,NC,kw,SL,Jw,qk,Hk,zk,xC,OC],styles:[".row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.title[_ngcontent-%COMP%]{margin:0 0 16px;overflow-wrap:anywhere}.title-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin:5px;float:right}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e})();var iN=i(69114);function nN(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function rN(e){return e.replace(/\n/g,"
")}class sN{getHtmlString(){return`<${this.TAG} style="${this.STYLES.join(";")}">${nN(this.content)}`}}class oN extends sN{constructor(e){super(),this.TYPE="ADDITION",this.TAG="ins",this.STYLES=["background: #d4fcbc","text-decoration: none"],this.content=e}}class aN extends sN{constructor(e){super(),this.TYPE="NO_CHANGE",this.TAG="span",this.STYLES=[],this.content=e}}class lN extends sN{constructor(e){super(),this.TYPE="REMOVAL",this.TAG="del",this.STYLES=["background: #fbb"],this.content=e}}class uN{constructor(e,t){this.changes=[],this.outdatedContent=e,this.updatedContent=t;const i=new iN.diff_match_patch,n=i.diff_main(e,t);i.diff_cleanupSemantic(n);for(const r of n)this.changes.push(-1===r[0]?new lN(r[1]):1===r[0]?new oN(r[1]):new aN(r[1]))}getHtmlDiffString(){let e="";for(const t of this.changes)e+=t.getHtmlString();return rN(e)}getHtmlUpdatedString(){return rN(nN(this.updatedContent))}}function cN(e,t){if(1&e){const e=na();Ko(0,"mat-slide-toggle",11),la("change",function(){return Yt(e),pa().handleChangeShowDiff()}),Fa(1," Show Difference "),Jo()}2&e&&Zo("checked",pa().showDiff)}function dN(e,t){1&e&&Xo(0,"div",13),2&e&&Zo("innerHTML",pa(2).diffHtml,Gr)}function hN(e,t){1&e&&Xo(0,"div",13),2&e&&Zo("innerHTML",pa(2).updatedHtml,Gr)}function pN(e,t){if(1&e&&(Ko(0,"div",10),$o(1,dN,1,1,"div",12),$o(2,hN,1,1,"div",12),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.showDiff),fs(1),Zo("ngIf",!e.showDiff)}}let mN=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isOnPreview=!1,this.isReady=!1,this.showDiff=!0,this.diffHtml=this.sanitizer.bypassSecurityTrustHtml(t.getHtmlDiffString()),this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(t.getHtmlUpdatedString()),this.isReady=!0}close(){this.dialogRef.close()}handleChangeShowDiff(){this.showDiff=!this.showDiff}handleTabChange(e){this.isOnPreview=1===e.index}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh),Go(bj),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-conflict-dialog"]],decls:16,vars:4,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["style","display: inline-block; margin-left: 50px","color","primary",3,"checked","change",4,"ngIf"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"full-width"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview Updated Content"],[1,"tab-content"],["color","primary",2,"display","inline-block","margin-left","50px",3,"checked","change"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),$o(3,cN,2,1,"mat-slide-toggle",2),Ko(4,"button",3),la("click",function(){return t.close()}),Ko(5,"mat-icon"),Fa(6,"close"),Jo(),Jo(),Jo(),Ko(7,"div",4),Ko(8,"div",5),Ko(9,"mat-tab-group",6),la("selectedTabChange",function(e){return t.handleTabChange(e)}),Ko(10,"mat-tab",7),$o(11,pN,3,2,"div",8),Jo(),Ko(12,"mat-tab",9),Ko(13,"div",10),Ko(14,"markdown"),Fa(15),Jo(),Jo(),Jo(),Jo(),Jo(),Jo()),2&e&&(fs(2),ja("The content you are editing has changed"),fs(1),Zo("ngIf",!t.isOnPreview),fs(8),Zo("ngIf",t.isReady),fs(4),ja(t.data.updatedContent))},directives:[BL,gd,oD,cL,VL,dP,tP,tw,VI],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.full-width[_ngcontent-%COMP%]{min-width:80vh;width:100%}"]}),e})();class fN extends Error{constructor(){super("Invalid link!"),Object.setPrototypeOf(this,fN.prototype)}}let gN=(()=>{class e{constructor(e){this.errorHandlingService=e}onClick(e){const t=e.target;t instanceof HTMLAnchorElement&&t.href.startsWith(t.baseURI)&&(this.errorHandlingService.handleError(new fN),e.preventDefault(),e.stopPropagation())}}return e.\u0275fac=function(t){return new(t||e)(Go(rY))},e.\u0275dir=Ke({type:e,selectors:[["","disableInternalLink",""]],hostBindings:function(e,t){1&e&&la("click",function(e){return t.onClick(e)})}}),e})();class _N{constructor(e,t,i=0){this.historyArray=new Array(e),this.firstEntryIndex=0,this.lastEntryIndex=-1,this.currIndex=-1,this.getState=t,this.isSaved=!1,this.saveRunning=!1,this.intervalTime=i}static isUndo(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&"KeyZ"===e.code&&!e.shiftKey:e.ctrlKey&&"KeyZ"===e.code&&!e.shiftKey}static isRedo(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&e.shiftKey&&"KeyZ"===e.code:e.ctrlKey&&e.shiftKey&&"KeyZ"===e.code||e.ctrlKey&&"KeyY"===e.code}updateBeforeChange(e){if(-1===this.currIndex)return this.addEntry(null!=e?e:this.getState(),!1);this.createDelayedSave()}createDelayedSave(){this.saveRunning||(this.isSaved=!1,this.saveRunning=!0,this.timeout=setTimeout(()=>{this.addEntry(this.getState(),!!this.intervalTime)},this.intervalTime))}addEntry(e,t=!0){this.isSaved=t;const i=this.incrementIndex(this.currIndex);i===this.firstEntryIndex&&-1!==this.currIndex&&(this.firstEntryIndex=this.incrementIndex(this.firstEntryIndex)),this.lastEntryIndex=i,this.currIndex=i,this.historyArray[this.currIndex]=e,this.saveRunning=!1}incrementIndex(e){return(e+1)%this.historyArray.length}decrementIndex(e){return(e-1+this.historyArray.length)%this.historyArray.length}forceSave(e,t=!1,i=!0){clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(null!=e?e:this.getState(),i),this.isSaved=i}wrapSave(e,t=!0){clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(this.getState(),!1),e(),this.addEntry(this.getState(),!0)}undo(){return this.forceSave(void 0,!0),this.currIndex===this.firstEntryIndex||-1===this.currIndex?null:(this.currIndex=this.decrementIndex(this.currIndex),this.historyArray[this.currIndex])}redo(){return this.forceSave(void 0,!0),this.currIndex===this.lastEntryIndex?null:(this.currIndex=this.incrementIndex(this.currIndex),this.historyArray[this.currIndex])}}const yN=["mp4","mov"],bN=["gif","jpeg","jpg","png","docx","gz","log","pdf","pptx","txt","xlsx","zip",...yN],vN="We don't support that file type. Try again with "+bN.join(", ")+".",wN=(e,t)=>`Oops, ${e} is too big. Keep it under ${t}MiB.`;let kN=(()=>{class e{constructor(e){this.githubService=e}uploadFile(e,t){let i;i=e instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(e)):e;const n=this.getFileExtension(t);if(bN.includes(n.toLowerCase())){i=i.split(",")[1];const e=NP(),t=()=>this.githubService.uploadFile(`${e}.${n}`,i);return t().pipe(yg(e=>404!==e.status?Qb(e):_h(!1)),U(e=>e?_h(e):this.githubService.createBranch().pipe(U(t))))}return Qb(vN)}getFileExtension(e){return e.split(".").pop()}isVideoFile(e){const t=this.getFileExtension(e);return yN.includes(t.toLowerCase())}isSupportedFileType(e){const t=this.getFileExtension(e);return bN.includes(t.toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const SN=["gif","jpeg","jpg","png"];function TN(e,t,i,n){const r=n.nativeElement.selectionEnd,s=`[Uploading ${e}...]`,o=i.value.indexOf(s),a=o+s.length,l=o+t.length,u=r>o-1&&r<=a?l:r ",multiline:!0,surroundWithNewlines:!0},code:{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"},link:{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},image:{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},"unordered-list":{prefix:"- ",multiline:!0,unorderedList:!0},"ordered-list":{prefix:"1. ",multiline:!0,orderedList:!0},"task-list":{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0},mention:{prefix:"@",prefixSpace:!0},ref:{prefix:"#",prefixSpace:!0},strikethrough:{prefix:"~~",suffix:"~~",trimFirst:!0}};class IN extends HTMLElement{constructor(){super();const e=e=>{const t=ON.get(this);!t||(e.preventDefault(),oH(this,t))};this.addEventListener("keydown",LN(e)),this.addEventListener("click",e)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","button")}click(){const e=ON.get(this);!e||oH(this,e)}}class RN extends IN{constructor(){super(...arguments),EN.add(this)}connectedCallback(){const e=parseInt(this.getAttribute("level")||"3",10);MN(this,EN,"m",xN).call(this,e)}static get observedAttributes(){return["level"]}attributeChangedCallback(e,t,i){if("level"!==e)return;const n=parseInt(i||"3",10);MN(this,EN,"m",xN).call(this,n)}}EN=new WeakSet,xN=function(e){if(e<1||e>6)return;const t=`${"#".repeat(e)} `;ON.set(this,{prefix:t})},window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=RN,window.customElements.define("md-header",RN));class PN extends IN{connectedCallback(){ON.set(this,{prefix:"**",suffix:"**",trimFirst:!0})}}window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=PN,window.customElements.define("md-bold",PN));class YN extends IN{connectedCallback(){ON.set(this,{prefix:"_",suffix:"_",trimFirst:!0})}}window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=YN,window.customElements.define("md-italic",YN));class FN extends IN{connectedCallback(){ON.set(this,{prefix:"> ",multiline:!0,surroundWithNewlines:!0})}}window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=FN,window.customElements.define("md-quote",FN));class jN extends IN{connectedCallback(){ON.set(this,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"})}}window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=jN,window.customElements.define("md-code",jN));class qN extends IN{connectedCallback(){ON.set(this,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=qN,window.customElements.define("md-link",qN));class NN extends IN{connectedCallback(){ON.set(this,{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}window.customElements.get("md-image")||(window.MarkdownImageButtonElement=NN,window.customElements.define("md-image",NN));class HN extends IN{connectedCallback(){ON.set(this,{prefix:"- ",multiline:!0,unorderedList:!0})}}window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=HN,window.customElements.define("md-unordered-list",HN));class UN extends IN{connectedCallback(){ON.set(this,{prefix:"1. ",multiline:!0,orderedList:!0})}}window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=UN,window.customElements.define("md-ordered-list",UN));class zN extends IN{connectedCallback(){ON.set(this,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0})}}window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=zN,window.customElements.define("md-task-list",zN));class BN extends IN{connectedCallback(){ON.set(this,{prefix:"@",prefixSpace:!0})}}window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=BN,window.customElements.define("md-mention",BN));class VN extends IN{connectedCallback(){ON.set(this,{prefix:"#",prefixSpace:!0})}}window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=VN,window.customElements.define("md-ref",VN));class $N extends IN{connectedCallback(){ON.set(this,{prefix:"~~",suffix:"~~",trimFirst:!0})}}function WN(e){const{target:t,currentTarget:i}=e;if(!(t instanceof Element))return;const n=t.closest("[data-md-button]");if(!n||n.closest("markdown-toolbar")!==i)return;const r=n.getAttribute("data-md-button"),s=AN[r];!s||(e.preventDefault(),oH(t,s))}function GN(e){e.addEventListener("keydown",JN),e.setAttribute("tabindex","0"),e.addEventListener("focus",KN,{once:!0})}function ZN(e){e.removeEventListener("keydown",JN),e.removeAttribute("tabindex"),e.removeEventListener("focus",KN)}window.customElements.get("md-strikethrough")||(window.MarkdownStrikethroughButtonElement=$N,window.customElements.define("md-strikethrough",$N));let QN=(()=>{class e extends HTMLElement{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.hasAttribute("data-no-focus")||GN(this),this.addEventListener("keydown",LN(WN)),this.addEventListener("click",WN)}attributeChangedCallback(e,t,i){"data-no-focus"===e&&(null===i?GN(this):ZN(this))}disconnectedCallback(){ZN(this)}get field(){const e=this.getAttribute("for");if(!e)return null;const t="getRootNode"in this?this.getRootNode():document;let i;return(t instanceof Document||t instanceof ShadowRoot)&&(i=t.getElementById(e)),i instanceof HTMLTextAreaElement?i:null}}return e.observedAttributes=["data-no-focus"],e})();function KN({target:e}){if(!(e instanceof Element))return;e.removeAttribute("tabindex");let t="0";for(const i of DN(e))i.setAttribute("tabindex",t),"0"===t&&(i.focus(),t="-1")}function JN(e){const t=e.key;if("ArrowRight"!==t&&"ArrowLeft"!==t&&"Home"!==t&&"End"!==t)return;const i=e.currentTarget;if(!(i instanceof HTMLElement))return;const n=DN(i),r=n.indexOf(e.target),s=n.length;if(-1===r)return;let o=0;"ArrowLeft"===t&&(o=r-1),"ArrowRight"===t&&(o=r+1),"End"===t&&(o=s-1),o<0&&(o=s-1),o>s-1&&(o=0);for(let a=0;a1}function eH(e,t){return Array(t+1).join(e)}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=QN,window.customElements.define("markdown-toolbar",QN));let tH=null;function iH(e){const t=e.value.slice(0,e.selectionStart),i=e.value.slice(e.selectionEnd),n=t.match(/\n*$/),r=i.match(/^\n*/),s=n?n[0].length:0,o=r?r[0].length:0;let a,l;return t.match(/\S/)&&s<2&&(a=eH("\n",2-s)),i.match(/\S/)&&o<2&&(l=eH("\n",2-o)),null==a&&(a=""),null==l&&(l=""),{newlinesToAppend:a,newlinesToPrepend:l}}function nH(e){const t=e.split("\n"),i=/^\d+\.\s+/,n=t.every(e=>i.test(e));let r=t;return n&&(r=t.map(e=>e.replace(i,""))),{text:r.join("\n"),processed:n}}function rH(e){const t=e.split("\n"),i=t.every(e=>e.startsWith("- "));let n=t;return i&&(n=t.map(e=>e.slice("- ".length,e.length))),{text:n.join("\n"),processed:i}}function sH(e,t){return t?"- ":`${e+1}. `}function oH(e,t){const i=e.closest("markdown-toolbar");if(!(i instanceof QN))return;const n=Object.assign(Object.assign({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),t),r=i.field;r&&(r.focus(),function(e,t){const i=e.value.slice(e.selectionStart,e.selectionEnd);let n;n=t.orderedList||t.unorderedList?function(e,t){const i=e.selectionStart===e.selectionEnd;let n=e.selectionStart,r=e.selectionEnd;!function(e){const t=e.value.split("\n");let i=0;for(let n=0;n=i&&e.selectionStart=i&&e.selectionEnd`${sH(i,t.unorderedList)}${e}`),c=u.reduce((e,i,n)=>e+sH(n,t.unorderedList).length,0),d=u.reduce((e,i,n)=>e+sH(n,!t.unorderedList).length,0);if(o.processed)return i?(n=Math.max(n-sH(0,t.unorderedList).length,0),r=n):(n=e.selectionStart,r=e.selectionEnd-c),{text:l,selectionStart:n,selectionEnd:r};const{newlinesToAppend:h,newlinesToPrepend:p}=iH(e),m=h+u.join("\n")+p;return i?(n=Math.max(n+sH(0,t.unorderedList).length+h.length,0),r=n):a.processed?(n=Math.max(e.selectionStart+h.length,0),r=e.selectionEnd+h.length+c-d):(n=Math.max(e.selectionStart+h.length,0),r=e.selectionEnd+h.length+c),{text:m,selectionStart:n,selectionEnd:r}}(e,t):t.multiline&&XN(i)?function(e,t){const{prefix:i,suffix:n,surroundWithNewlines:r}=t;let s=e.value.slice(e.selectionStart,e.selectionEnd),o=e.selectionStart,a=e.selectionEnd;const l=s.split("\n");if(l.every(e=>e.startsWith(i)&&e.endsWith(n)))s=l.map(e=>e.slice(i.length,e.length-n.length)).join("\n"),a=o+s.length;else if(s=l.map(e=>i+e+n).join("\n"),r){const{newlinesToAppend:t,newlinesToPrepend:i}=iH(e);o+=t.length,a=o+s.length,s=t+s+i}return{text:s,selectionStart:o,selectionEnd:a}}(e,t):function(e,t){let i,n;const{prefix:r,suffix:s,blockPrefix:o,blockSuffix:a,replaceNext:l,prefixSpace:u,scanFor:c,surroundWithNewlines:d}=t,h=e.selectionStart,p=e.selectionEnd;let m=e.value.slice(e.selectionStart,e.selectionEnd),f=XN(m)&&o.length>0?`${o}\n`:r,g=XN(m)&&a.length>0?`\n${a}`:s;if(u){const t=e.value[e.selectionStart-1];0!==e.selectionStart&&null!=t&&!t.match(/\s/)&&(f=` ${f}`)}m=function(e,t,i,n=!1){if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){let i=t;for(;e[i]&&null!=e[i-1]&&!e[i-1].match(/\s/);)i--;return i}(e.value,e.selectionStart),e.selectionEnd=function(e,t,i){let n=t;const r=i?/\n/:/\s/;for(;e[n]&&!e[n].match(r);)n++;return n}(e.value,e.selectionEnd,n);else{const n=e.selectionStart-t.length,r=e.selectionEnd+i.length,s=e.value.slice(n,e.selectionStart)===t,o=e.value.slice(e.selectionEnd,r)===i;s&&o&&(e.selectionStart=n,e.selectionEnd=r)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,f,g,t.multiline);let _=e.selectionStart,y=e.selectionEnd;const b=l.length>0&&g.indexOf(l)>-1&&m.length>0;if(d){const t=iH(e);i=t.newlinesToAppend,n=t.newlinesToPrepend,f=i+r,g+=n}if(m.startsWith(f)&&m.endsWith(g)){const e=m.slice(f.length,m.length-g.length);if(h===p){let t=h-f.length;t=Math.max(t,_),t=Math.min(t,_+e.length),_=y=t}else y=_+e.length;return{text:e,selectionStart:_,selectionEnd:y}}if(b){if(c.length>0&&m.match(c))return g=g.replace(l,m),_=y=_+f.length,{text:f+g,selectionStart:_,selectionEnd:y};{const e=f+m+g;return _=_+f.length+m.length+g.indexOf(l),y=_+l.length,{text:e,selectionStart:_,selectionEnd:y}}}{let e=f+m+g;_=h+f.length,y=p+f.length;const i=m.match(/^\s*|\s*$/g);if(t.trimFirst&&i){const t=i[0]||"",n=i[1]||"";e=t+f+m.trim()+g+n,_+=t.length,y-=n.length}return{text:e,selectionStart:_,selectionEnd:y}}}(e,t),function(e,{text:t,selectionStart:i,selectionEnd:n}){const r=e.selectionStart,s=e.value.slice(0,r),o=e.value.slice(e.selectionEnd);if(null===tH||!0===tH){e.contentEditable="true";try{tH=document.execCommand("insertText",!1,t)}catch(a){tH=!1}e.contentEditable="false"}if(tH&&!e.value.slice(0,e.selectionStart).endsWith(t)&&(tH=!1),!tH){try{document.execCommand("ms-beginUndoUnit")}catch(a){}e.value=s+t+o;try{document.execCommand("ms-endUndoUnit")}catch(a){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=i&&null!=n?e.setSelectionRange(i,n):e.setSelectionRange(r,e.selectionEnd)}(e,n)}(r,n))}let aH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-markdown-toolbar"]],inputs:{forTextAreaId:"forTextAreaId"},decls:42,vars:1,consts:[["matTooltip","Add bold text","mat-icon-button","","color","accent"],["matTooltip","Add italic text","mat-icon-button","","color","accent"],["matTooltip","Add heading text","mat-icon-button","","color","accent"],["matTooltip","Add a quote","mat-icon-button","","color","accent"],["matTooltip","Add code","mat-icon-button","","color","accent"],["matTooltip","Add a link","mat-icon-button","","color","accent"],["matTooltip","Add a image via link","mat-icon-button","","color","accent"],["matTooltip","Add a bulleted list","mat-icon-button","","color","accent"],["matTooltip","Add a numbered list","mat-icon-button","","color","accent"],["matTooltip","Add a task list","mat-icon-button","","color","accent"]],template:function(e,t){1&e&&(Ko(0,"markdown-toolbar"),Ko(1,"md-bold"),Ko(2,"button",0),Ko(3,"mat-icon"),Fa(4,"format_bold"),Jo(),Jo(),Jo(),Ko(5,"md-italic"),Ko(6,"button",1),Ko(7,"mat-icon"),Fa(8,"format_italic"),Jo(),Jo(),Jo(),Ko(9,"md-header"),Ko(10,"button",2),Ko(11,"mat-icon"),Fa(12,"title"),Jo(),Jo(),Jo(),Ko(13,"md-quote"),Ko(14,"button",3),Ko(15,"mat-icon"),Fa(16,"format_quote"),Jo(),Jo(),Jo(),Ko(17,"md-code"),Ko(18,"button",4),Ko(19,"mat-icon"),Fa(20,"code"),Jo(),Jo(),Jo(),Ko(21,"md-link"),Ko(22,"button",5),Ko(23,"mat-icon"),Fa(24,"link"),Jo(),Jo(),Jo(),Ko(25,"md-image"),Ko(26,"button",6),Ko(27,"mat-icon"),Fa(28,"image"),Jo(),Jo(),Jo(),Ko(29,"md-unordered-list"),Ko(30,"button",7),Ko(31,"mat-icon"),Fa(32,"format_list_bulleted"),Jo(),Jo(),Jo(),Ko(33,"md-ordered-list"),Ko(34,"button",8),Ko(35,"mat-icon"),Fa(36,"format_list_numbered"),Jo(),Jo(),Jo(),Ko(37,"md-task-list"),Ko(38,"md-header"),Ko(39,"button",9),Ko(40,"mat-icon"),Fa(41,"task"),Jo(),Jo(),Jo(),Jo(),Jo()),2&e&&Bo("for",t.forTextAreaId)},directives:[oD,BA,cL],styles:[""]}),e})();const lH=["dropArea"],uH=["commentTextArea"],cH=["markdownArea"];function dH(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Description required. "),Jo())}function hH(e,t){if(1&e&&(Ko(0,"mat-error"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" Description cannot exceed ",e.maxLength," characters. ")}}function pH(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.maxLength-(null==e.commentField.value?null:e.commentField.value.length)," character(s) remaining. ")}}function mH(e,t){1&e&&(Ko(0,"span"),Fa(1," Attach files by dragging & dropping or select them by clicking here. "),Jo())}function fH(e,t){if(1&e&&(Ko(0,"span",17),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.uploadErrorMessage," ")}}function gH(e,t){1&e&&Xo(0,"markdown",18,19),2&e&&Zo("data",pa().commentField.value)}function _H(e,t){1&e&&(Ko(0,"div"),Fa(1,"Nothing to preview."),Jo())}let yH=(()=>{class e{constructor(e,t,i){this.uploadService=e,this.errorHandlingService=t,this.logger=i,this.SUPPORTED_FILE_TYPES=bN,this.placeholderText="No details provided.",this.isFormPendingChange=new vu,this.submitButtonTextChange=new vu,this.dragActiveCounter=0,this.maxLength=4e4}formatFileUploadingButtonText(e){return e+" (Waiting for File Upload to finish...)"}ngOnInit(){if(void 0!==this.initialDescription&&this.commentField.setValue(this.initialDescription),void 0===this.commentField||void 0===this.commentForm||void 0===this.id)throw new Error("Comment Editor's compulsory properties are not defined.");this.initialSubmitButtonText=this.submitButtonText,this.commentField.setValidators([Cw.maxLength(this.maxLength)]),this.history=new _N(75,()=>({text:this.commentTextArea.nativeElement.value,selectStart:this.commentTextArea.nativeElement.selectionStart,selectEnd:this.commentTextArea.nativeElement.selectionEnd}),500)}onKeyPress(e){if(_N.isUndo(e))return e.preventDefault(),void this.undo();if(_N.isRedo(e))return this.redo(),void e.preventDefault();if(this.isControlKeyPressed(e)&&!e.shiftKey)switch(e.code){case"KeyB":e.preventDefault(),this.history.wrapSave(()=>this.insertOrRemoveCharsFromHighlightedText("**"));break;case"KeyI":e.preventDefault(),this.history.wrapSave(()=>this.insertOrRemoveCharsFromHighlightedText("_"));break;default:return}}onDragEnter(e){e.preventDefault(),e.stopPropagation(),this.dragActiveCounter++,this.dropArea.nativeElement.classList.add(this.commentField.disabled?"highlight-drag-box-disabled":"highlight-drag-box")}disableCaretMovement(e){e.preventDefault()}enableFileDrop(e){e.preventDefault()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle(),this.commentField.disabled)return;const t=e.dataTransfer.files;if(!(void 0===t||t.length<=0)){this.commentTextArea.nativeElement.focus();for(let e=0;e{this.logger.info(`CommentEditorComponent: File ${e+1} of ${t.length}. Begin uploading ${t[e].name}.`),this.readAndUploadFile(t[e])},250*e)}}onDragExit(e){e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle()}onFileInputUpload(e,t){e.preventDefault(),e.stopPropagation();const i=t.files;i.length>0&&(this.readAndUploadFile(i[0]),t.value="")}updateParentFormsSubmittability(e,t){this.isFormPendingChange.emit(e),this.submitButtonTextChange.emit(t)}readAndUploadFile(e){this.uploadErrorMessage=null;const t=new FileReader,i=e.name,n=function(e,t,i){const n=t.value,r=e.split(".").pop();let s;s=SN.includes(r.toLowerCase())?`![Uploading ${e}...]\n`:`[Uploading ${e}...]\n`;const o=i.nativeElement.selectionEnd,a=n.indexOf("\n",o),l=o+s.length;if(-1===a)t.setValue(""===t.value?s:`${t.value}\n${s}`);else{const e=n.slice(0,a+1),i=n.slice(a);t.setValue(`${e+s+i}`)}return i.nativeElement.setSelectionRange(l,l),s}(i,this.commentField,this.commentTextArea);if(e.size>=11534336)return void this.handleUploadError(wN("file",10),n);if(this.uploadService.isVideoFile(i)&&e.size>=6291456)return void this.handleUploadError(wN("video",5),n);if(!this.uploadService.isSupportedFileType(i))return void this.handleUploadError(vN,n);this.lastUploadingTime=(new Date).getTime().toString();const r=this.lastUploadingTime;this.updateParentFormsSubmittability(!0,this.formatFileUploadingButtonText(this.initialSubmitButtonText)),t.onload=()=>{this.uploadService.uploadFile(t.result,i).subscribe(e=>{this.uploadService.isVideoFile(i)?function(e,t,i,n){TN(e,`
video:${t}
`,i,n)}(i,e.data.content.download_url,this.commentField,this.commentTextArea):function(e,t,i,n){TN(e,`[${e}](${t})`,i,n)}(i,e.data.content.download_url,this.commentField,this.commentTextArea),this.history.forceSave()},e=>{this.handleUploadError(e,n),r===this.lastUploadingTime&&this.updateParentFormsSubmittability(!1,this.initialSubmitButtonText)},()=>{r===this.lastUploadingTime&&this.updateParentFormsSubmittability(!1,this.initialSubmitButtonText)})},t.readAsDataURL(e)}onPaste(e){this.history.forceSave(null,!0,!1);const t=e.clipboardData.items;let i=null;for(const n of t)if(0===n.type.indexOf("image")){i=n.getAsFile(),e.stopPropagation();break}i&&this.readAndUploadFile(i)}handleBeforeInputChange(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.updateBeforeChange()}}handleInputChange(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.createDelayedSave()}}undo(){const e=this.history.undo();null!==e&&(this.commentField.setValue(e.text),this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}redo(){const e=this.history.redo();null!==e&&(this.commentTextArea.nativeElement.value=e.text,this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}get isInErrorState(){return!!this.uploadErrorMessage}handleUploadError(e,t){e instanceof Nh?(this.errorHandlingService.handleError(e),this.uploadErrorMessage="Something went wrong while uploading your file. Please try again."):this.uploadErrorMessage=e,this.commentField.setValue(this.commentField.value.replace(t,"")),this.history.forceSave()}removeHighlightBorderStyle(){this.dragActiveCounter--,0===this.dragActiveCounter&&(this.dropArea.nativeElement.classList.remove("highlight-drag-box"),this.dropArea.nativeElement.classList.remove("highlight-drag-box-disabled"))}isControlKeyPressed(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey:e.ctrlKey}insertOrRemoveCharsFromHighlightedText(e){const t=this.commentTextArea.nativeElement.selectionStart,i=this.commentTextArea.nativeElement.selectionEnd,n=this.commentTextArea.nativeElement.value,r=n.slice(t,i),s=r.trim(),o=r.trimRight().length-s.length,a=r.trimLeft().length-s.length;this.hasCharsBeforeAndAfterHighlight(t,i,n,e)?this.removeCharsBeforeAndAfterHighlightedText(t,i,n,r,e):this.hasCharsInTrimmedHighlight(r,e)?this.removeCharsFromHighlightedText(t,i,n,s,e,o,a):this.insertCharsToHighlightedText(t,i,n,s,e,o,a)}hasCharsBeforeAndAfterHighlight(e,t,i,n){const r=i.slice(e-n.length,e)===n,s=i.slice(t,t+n.length)===n;return r&&s}hasCharsInTrimmedHighlight(e,t){const i=e.trim(),n=i.slice(0,t.length)===t,r=i.slice(-t.length)===t;return n&&r}removeCharsBeforeAndAfterHighlightedText(e,t,i,n,r){this.commentField.setValue(i.slice(0,e-r.length)+n+i.slice(t+r.length)),this.commentTextArea.nativeElement.setSelectionRange(e-r.length,t-r.length)}removeCharsFromHighlightedText(e,t,i,n,r,s,o){this.commentField.setValue(i.slice(0,e)+" ".repeat(s)+n.slice(r.length,-r.length)+" ".repeat(o)+i.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+s,t-2*r.length-o)}insertCharsToHighlightedText(e,t,i,n,r,s,o){this.commentField.setValue(i.slice(0,e)+" ".repeat(s)+r+n+r+" ".repeat(o)+i.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+r.length+s,t+r.length-o)}}return e.\u0275fac=function(t){return new(t||e)(Go(kN),Go(rY),Go(iY))},e.\u0275cmp=Ve({type:e,selectors:[["app-comment-editor"]],viewQuery:function(e,t){if(1&e&&(Iu(lH,7),Iu(uH,7),Iu(cH,5)),2&e){let e;Au(e=Pu())&&(t.dropArea=e.first),Au(e=Pu())&&(t.commentTextArea=e.first),Au(e=Pu())&&(t.markdownArea=e.first)}},inputs:{commentField:"commentField",commentForm:"commentForm",id:"id",initialDescription:"initialDescription",isFormPending:"isFormPending",submitButtonText:"submitButtonText"},outputs:{isFormPendingChange:"isFormPendingChange",submitButtonTextChange:"submitButtonTextChange"},decls:23,vars:15,consts:[[2,"min-height","350px",3,"formGroup"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Write"],[1,"tab-content",3,"dragleave","dragenter","drop","dragover"],["dropArea",""],[3,"forTextAreaId"],["appearance","outline",2,"width","100%"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","10","cdkAutosizeMaxRows","20",1,"text-input-area",3,"id","formControlName","placeholder","maxlength","paste","keydown","beforeinput","input","dragover"],["commentTextArea","","autosize","cdkTextareaAutosize"],[4,"ngIf"],[1,"drag-and-drop"],["class","error",4,"ngIf"],["type","file",1,"file",3,"disabled","accept","change"],["fileInput",""],["label","Preview"],[1,"tab-content",2,"min-height","228px"],["disableInternalLink","",3,"data",4,"ngIf"],[1,"error"],["disableInternalLink","",3,"data"],["markdownArea",""]],template:function(e,t){if(1&e){const e=na();Ko(0,"form",0),Ko(1,"mat-tab-group",1),la("selectedTabChange",function(){Yt(e);const i=Wo(9);return t.commentField.setValue(i.value)}),Ko(2,"mat-tab",2),Ko(3,"div",3,4),la("dragleave",function(e){return t.onDragExit(e)})("dragenter",function(e){return t.onDragEnter(e)})("drop",function(e){return t.onDrop(e)})("dragover",function(e){return t.enableFileDrop(e)}),Xo(5,"app-markdown-toolbar",5),Ko(6,"mat-form-field",6),Xo(7,"mat-label"),Ko(8,"textarea",7,8),la("paste",function(e){return t.onPaste(e)})("keydown",function(e){return t.onKeyPress(e)})("beforeinput",function(e){return t.handleBeforeInputChange(e)})("input",function(e){return t.handleInputChange(e)})("dragover",function(e){return t.disableCaretMovement(e)}),Jo(),$o(11,dH,2,0,"mat-error",9),$o(12,hH,2,1,"mat-error",9),$o(13,pH,2,1,"mat-hint",9),Ko(14,"div",10),$o(15,mH,2,0,"span",9),$o(16,fH,2,1,"span",11),Ko(17,"input",12,13),la("change",function(i){Yt(e);const n=Wo(18);return t.onFileInputUpload(i,n)}),Jo(),Jo(),Jo(),Jo(),Jo(),Ko(19,"mat-tab",14),Ko(20,"div",15),$o(21,gH,2,1,"markdown",16),$o(22,_H,2,0,"div",9),Jo(),Jo(),Jo(),Jo()}2&e&&(Zo("formGroup",t.commentForm),fs(5),Zo("forTextAreaId",t.id),fs(3),_a("id",t.id),_a("formControlName",t.id),_a("placeholder",t.placeholderText),_a("maxlength",t.maxLength),fs(3),Zo("ngIf",t.commentField.errors&&t.commentField.errors.required&&t.commentField.touched),fs(1),Zo("ngIf",t.commentField.errors&&t.commentField.errors.maxLength),fs(1),Zo("ngIf",(null==t.commentField.value?null:t.commentField.value.length)>=t.maxLength-50),fs(2),Zo("ngIf",!t.isInErrorState),fs(1),Zo("ngIf",t.isInErrorState),fs(1),Zo("disabled",t.commentField.disabled)("accept",t.SUPPORTED_FILE_TYPES),fs(4),Zo("ngIf",""!==t.commentField.value),fs(1),Zo("ngIf",""===t.commentField.value))},directives:[Ok,Xw,Fk,dP,tP,aH,NC,AC,SL,_L,kw,Jw,qk,zk,gd,xC,OC,tw,gN],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px}.highlight-drag-box[_ngcontent-%COMP%]{border-style:dashed;border-color:#98fb98;border-width:2px}.highlight-drag-box-disabled[_ngcontent-%COMP%]{border-style:dashed;border-color:#fb2a5c;border-width:2px}.drag-and-drop[_ngcontent-%COMP%]{color:#586069;font-size:13px;line-height:16px;position:relative;border-top-style:dashed;border-top-color:#3f51b5;border-top-width:2px;margin-top:5px;padding-top:5px}.error[_ngcontent-%COMP%]{color:#b22222}.file[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}"]}),e})();const bH=["loadingSpinnerContainer"];function vH(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1," Edit "),Jo()}}function wH(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"markdown",10),Jo()),2&e){const e=pa();fs(1),Zo("data",e.issue.description)}}function kH(e,t){if(1&e){const e=na();Ko(0,"button",17),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Description "),Jo()}2&e&&Zo("disabled",pa(2).isSavePending)}function SH(e,t){if(1&e&&(Ko(0,"button",18),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.issueDescriptionForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function TH(e,t){if(1&e&&(Ko(0,"button",19),Ko(1,"mat-button-content"),Fa(2),ia(3,null,20),Jo(),Jo()),2&e){const e=pa(2);Zo("disabled",e.issueDescriptionForm.invalid||e.isSavePending),fs(2),qa(" ",e.submitButtonText," ")}}function EH(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",11),la("isFormPendingChange",function(t){return Yt(e),pa().isSavePending=t})("submitButtonTextChange",function(t){return Yt(e),pa().submitButtonText=t}),Jo(),Ko(2,"div",12),$o(3,kH,2,1,"button",13),Ko(4,"button",14),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(5," Cancel "),Jo(),$o(6,SH,2,2,"button",15),$o(7,TH,5,2,"button",16),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("id","description")("commentField",e.issueDescriptionForm.get("description"))("commentForm",e.issueDescriptionForm)("isFormPending",e.isSavePending)("submitButtonText",e.submitButtonText),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("disabled",e.isSavePending),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict)}}let xH=(()=>{class e{constructor(e,t,i,n,r,s,o,a){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.dialog=n,this.phaseService=r,this.permissions=s,this.dialogService=o,this.loadingService=a,this.isSavePending=!1,this.issueUpdated=new vu,this.changeEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}ngOnInit(){this.issueDescriptionForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save",this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addTheme("warn").addCssClasses(["mat-progress-spinner"])}changeToEditMode(){this.changeEditState.emit(!0),this.issueDescriptionForm.setValue({description:this.issue.description||""})}updateDescription(e){this.issueDescriptionForm.invalid||(this.showSpinner(),this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>e.description===this.issue.description),U(e=>e||"Overwrite"===this.submitButtonText?this.issueService.updateIssue(this.getUpdatedIssue()):(this.conflict=new uN(this.issue.description,this.issueService.issues[this.issue.id].description),this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again.")))).subscribe(t=>{this.issueUpdated.emit(t),this.resetToDefault(),e.resetForm(),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()}))}viewChanges(){this.dialog.open(mN,{data:this.conflict,autoFocus:!1})}resetToDefault(){this.submitButtonText="Save",this.conflict=void 0,this.changeEditState.emit(!1)}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.issueDescriptionForm,"description","description",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);return e.description=tj.updateDescription(this.issueDescriptionForm.get("description").value),e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(HL),Go(Sj),Go(vq),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-description"]],viewQuery:function(e,t){if(1&e&&Iu(bH,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue",descriptionTitle:"descriptionTitle",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",changeEditState:"changeEditState"},features:[sl([Uq])],decls:13,vars:6,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action additional-editor-style","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action","additional-editor-style",3,"disabled"],["loadingSpinnerContainer",""]],template:function(e,t){if(1&e){const e=na();Ko(0,"h3",0),Fa(1),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.updateDescription(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"span"),Ko(7,"strong"),Fa(8," Tester "),Jo(),Fa(9),Jo(),$o(10,vH,2,0,"button",5),Jo(),$o(11,wH,2,1,"div",6),$o(12,EH,8,9,"div",7),Jo(),Jo()}2&e&&(fs(1),ja(t.descriptionTitle),fs(1),Zo("formGroup",t.issueDescriptionForm),fs(7),qa(" posted on ",t.issue.created_at,". "),fs(1),Zo("ngIf",t.permissions.isIssueDescriptionEditable()&&!t.isEditing),fs(1),Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,oD,tw,gN,yH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e})();function MH(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function CH(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"markdown",10),Jo()),2&e){const e=pa();fs(1),Zo("data",e.issue.teamResponse)}}function DH(e,t){if(1&e){const e=na();Ko(0,"button",17),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa(2).isSavePending)}function LH(e,t){if(1&e&&(Ko(0,"button",18),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.responseForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function OH(e,t){if(1&e&&(Ko(0,"button",19),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.responseForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function AH(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",11),la("isFormPendingChange",function(t){return Yt(e),pa().isSavePending=t})("submitButtonTextChange",function(t){return Yt(e),pa().submitButtonText=t}),Jo(),Ko(2,"div",12),$o(3,DH,2,1,"button",13),$o(4,LH,2,2,"button",14),$o(5,OH,2,2,"button",15),Ko(6,"button",16),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(7," Cancel "),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("id","description")("commentField",e.responseForm.get("description"))("commentForm",e.responseForm)("isFormPending",e.isSavePending)("submitButtonText",e.submitButtonText),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("disabled",e.isSavePending)}}let IH=(()=>{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.permissions=n,this.dialog=r,this.phaseService=s,this.dialogService=o,this.isSavePending=!1,this.issueUpdated=new vu,this.updateEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}ngOnInit(){this.responseForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save"}changeToEditMode(){this.updateEditState.emit(!0),this.responseForm.setValue({description:this.issue.teamResponse||""})}updateResponse(e){if(this.responseForm.invalid)return;this.isSavePending=!0;const t=this.getUpdatedIssue(),i=Object.assign(Object.assign({},t.issueComment),{description:t.createGithubTeamResponse()});this.isSafeToUpdate().pipe(U(e=>e||"Overwrite"===this.submitButtonText?this.issueService.updateIssueWithComment(t,i):this.isUpdatingDeletedResponse()?this.issueService.createTeamResponse(t):(this.conflict=new uN(this.issue.teamResponse,this.issueService.issues[this.issue.id].teamResponse),this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isSavePending=!1)).subscribe(t=>{this.issueUpdated.emit(t),this.resetToDefault(),e.resetForm()},e=>{this.errorHandlingService.handleError(e)})}isSafeToUpdate(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>e.teamResponse===this.issue.teamResponse))}isUpdatingDeletedResponse(){return this.issue.teamResponse&&!this.issueService.issues[this.issue.id].teamResponse}canEditIssue(){return this.permissions.isTeamResponseEditable()}resetToDefault(){this.submitButtonText="Save",this.conflict=void 0,this.updateEditState.emit(!1)}viewChanges(){this.dialog.open(mN,{data:this.conflict,autoFocus:!1})}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.responseForm,"teamResponse","description",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);return e.teamResponse=tj.updateTeamResponse(this.responseForm.get("description").value),e.status||(e.status=""===e.teamResponse?rj.Incomplete:rj.Done),e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(vq),Go(HL),Go(Sj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-team-response"]],inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},decls:13,vars:4,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"]],template:function(e,t){if(1&e){const e=na();Ko(0,"h3",0),Fa(1,"Team's Response"),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.updateResponse(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"span"),Ko(7,"strong"),Fa(8," Team "),Jo(),Fa(9," responded. "),Jo(),$o(10,MH,2,0,"button",5),Jo(),$o(11,CH,2,1,"div",6),$o(12,AH,8,9,"div",7),Jo(),Jo()}2&e&&(fs(2),Zo("formGroup",t.responseForm),fs(8),Zo("ngIf",t.canEditIssue()&&!t.isEditing),fs(1),Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,oD,tw,gN,yH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}"]}),e})();var RH=(()=>(function(e){e.ID="id",e.TITLE="title",e.TEAM_ASSIGNED="teamAssigned",e.TYPE="type",e.SEVERITY="severity",e.RESPONSE="response",e.TESTER_DISAGREE="testerDisagree",e.ASSIGNEE="assignees",e.DUPLICATED_ISSUES="duplicatedIssues",e.TODO="Todo Remaining",e.ACTIONS="actions"}(RH||(RH={})),RH))();function PH(e,t,i,n){const r=e.toLowerCase();return n.slice().filter(e=>{for(const n of t)switch(n){case RH.ASSIGNEE:if(FH(e.assignees,r))return!0;break;case RH.DUPLICATED_ISSUES:if(jH(i,e.id,r))return!0;break;default:if(qH(e,n,r))return!0}return!1})}function YH(e,t){return-1!==e.indexOf(t)}function FH(e,t){return e.some(e=>YH(e.toLowerCase(),t))}function jH(e,t,i){return function(e,t){return 0!==e.filter(e=>`#${String(e.id)}`.includes(t)).length}(e.issues$.getValue().filter(e=>e.duplicateOf===t),i)}function qH(e,t,i){return YH(String(e[t]).toLowerCase(),i)}function NH(e,t){if(1&e){const e=na();Ko(0,"button",6),la("click",function(){return Yt(e),pa().openSelector()}),Ko(1,"mat-icon",7),Fa(2," edit "),Jo(),Jo()}}function HH(e,t){if(1&e&&(Ko(0,"mat-option",8),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),ja(e)}}function UH(e,t){1&e&&(Ko(0,"p",9),Fa(1,"-"),Jo())}function zH(e,t){if(1&e&&(Ko(0,"mat-list-item",12),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),ja(e)}}function BH(e,t){if(1&e&&(Ko(0,"mat-list",10),$o(1,zH,2,1,"mat-list-item",11),Jo()),2&e){const e=pa();fs(1),Zo("ngForOf",e.issue.assignees)}}let VH=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.permissions=n,this.isInEditMode=!1,this.isEditable=!0,this.issueUpdated=new vu}ngOnInit(){this.teamMembers=this.team.teamMembers.map(e=>e.loginId),this.assignees=this.issue.assignees.map(e=>e)}openSelector(){this.isInEditMode=!0,this.assigneeSelection.open()}handleEditMode(e){e||(this.isInEditMode=!1)}updateAssignee(){const e=this.issue.clone(this.phaseService.currentPhase),t=e.assignees;e.assignees=this.assignees,this.issueService.updateIssue(e).subscribe(e=>{this.issueUpdated.emit(e),this.issueService.getDuplicateIssuesFor(this.issue).pipe(Og()).subscribe(e=>{e.forEach(e=>{const t=e.clone(this.phaseService.currentPhase);t.assignees=this.assignees,this.issueService.updateIssue(t)})})},e=>{this.errorHandlingService.handleError(e),this.assignees=t})}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-assignee-component"]],viewQuery:function(e,t){if(1&e&&Iu(PA,7),2&e){let e;Au(e=Pu())&&(t.assigneeSelection=e.first)}},inputs:{issue:"issue",team:"team",isEditable:"isEditable"},outputs:{issueUpdated:"issueUpdated"},decls:9,vars:7,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"click",4,"ngIf"],["placeholder","-","multiple","",1,"no-arrow",3,"ngModel","openedChange","closed","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["style","padding-top: 0","dense","",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"value"],[2,"margin-top","5px"],["dense","",2,"padding-top","0"],["style","font-size: 1em",4,"ngFor","ngForOf"],[2,"font-size","1em"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"span",0),Fa(2," Assignees "),Jo(),$o(3,NH,3,0,"button",1),Ko(4,"mat-select",2),la("openedChange",function(e){return t.handleEditMode(e)})("closed",function(){return t.updateAssignee()})("ngModelChange",function(e){return t.assignees=e}),Xo(5,"mat-select-trigger"),$o(6,HH,2,2,"mat-option",3),Jo(),$o(7,UH,2,0,"p",4),$o(8,BH,2,1,"mat-list",5),Jo()),2&e&&(fs(3),Zo("ngIf",t.permissions.isIssueLabelsEditable()&&t.isEditable&&!t.issue.duplicateOf),fs(1),Ea("display",t.isInEditMode?"block":"none"),Zo("ngModel",t.assignees),fs(2),Zo("ngForOf",t.teamMembers),fs(1),Zo("ngIf",0===t.issue.assignees.length),fs(1),Zo("ngIf",t.issue.assignees.length>0))},directives:[gd,PA,Jw,Lk,IA,md,oD,cL,mM,$O,ZO],styles:[".no-arrow .mat-select-arrow{visibility:hidden}mat-list-item div.mat-list-item-content{padding-left:0}\n"],encapsulation:2}),e})();function $H(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"div",12),Jo()),2&e){const e=pa();fs(1),Zo("innerHTML",e.updatedHtml,Gr)}}function WH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Type "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.type))),fs(1),qa(" ",e.data.type||"-"," ")}}function GH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Severity "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.severity))),fs(1),qa(" ",e.data.severity||"-"," ")}}function ZH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Response "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.response))),fs(1),qa(" ",e.data.response||"-"," ")}}function QH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Xo(2,"app-assignee-component",15),Jo()),2&e){const e=pa();fs(2),Zo("issue",e.data)("team",e.data.teamAssigned)("isEditable",!1)}}function KH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"div"),Ko(3,"span",13),Fa(4,"A Duplicate Of:"),Jo(),Ko(5,"p",16),Fa(6),_u(7,"async"),Jo(),Jo(),Jo()),2&e){const e=pa();fs(6),qa(" ","#"+e.data.duplicateOf+": "+yu(7,1,e.issueService.getIssue(e.data.duplicateOf)).title," ")}}let JH=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isOnPreview=!1,this.isReady=!1,this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(rN(nN(t.teamResponse))),this.isReady=!0}close(){this.dialogRef.close()}handleTabChange(e){this.isOnPreview=1===e.index}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh),Go(bj),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-conflict-dialog"]],decls:21,vars:8,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"column","left"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Updated Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview"],[1,"tab-content"],[1,"column","right"],[4,"ngIf"],[3,"innerHTML"],[1,"mat-title"],[3,"ngStyle"],[3,"issue","team","isEditable"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),Ko(3,"button",2),la("click",function(){return t.close()}),Ko(4,"mat-icon"),Fa(5,"close"),Jo(),Jo(),Jo(),Ko(6,"div",3),Ko(7,"div",4),Ko(8,"mat-tab-group",5),la("selectedTabChange",function(e){return t.handleTabChange(e)}),Ko(9,"mat-tab",6),$o(10,$H,2,1,"div",7),Jo(),Ko(11,"mat-tab",8),Ko(12,"div",9),Ko(13,"markdown"),Fa(14),Jo(),Jo(),Jo(),Jo(),Jo(),Ko(15,"div",10),$o(16,WH,6,2,"div",11),$o(17,GH,6,2,"div",11),$o(18,ZH,6,2,"div",11),$o(19,QH,3,3,"div",11),$o(20,KH,8,3,"div",11),Jo(),Jo()),2&e&&(fs(2),ja("A new response was submitted by another user"),fs(8),Zo("ngIf",t.isReady),fs(4),ja(t.data.teamResponse),fs(2),Zo("ngIf",t.data.type),fs(1),Zo("ngIf",t.data.severity),fs(1),Zo("ngIf",t.data.response),fs(1),Zo("ngIf",t.data.assignees),fs(1),Zo("ngIf",t.data.duplicateOf))},directives:[BL,oD,cL,VL,dP,tP,gd,tw,ZL,Sd,VH],pipes:[Cd],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.column.left[_ngcontent-%COMP%]{min-width:60vh;width:100%}.column.right[_ngcontent-%COMP%]{max-width:15%;min-width:20vh;width:100%}.column[_ngcontent-%COMP%]{padding:10px}"]}),e})();function XH(e,t){if(1&e){const e=na();Ko(0,"button",9),la("click",function(){Yt(e);const t=pa().$implicit;return pa().openModalPopup(t)}),Ko(1,"mat-icon",10),Fa(2,"info"),Jo(),Jo()}}const eU=function(){return{background:"transparent"}},tU=function(e){return{color:e}};function iU(e,t){if(1&e&&(Ko(0,"div",5),Ko(1,"mat-option",6),Ko(2,"mat-icon",7),Fa(3,"stop"),Jo(),Ko(4,"span"),Fa(5),Jo(),Jo(),$o(6,XH,3,0,"button",8),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("value",e.labelValue)("ngStyle",hu(5,eU)),fs(1),Zo("ngStyle",pu(6,tU,"#"+e.labelColor)),fs(3),qa(" ",e.labelValue,""),fs(1),Zo("ngIf",i.hasLabelDefinition(e))}}function nU(e,t){if(1&e&&(Ko(0,"mat-error"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.labelService.getLabelTitle(e.attributeName)," required. ")}}let rU=(()=>{class e{constructor(e,t){this.labelService=e,this.dialogService=t}ngOnInit(){this.selectedColor=this.labelService.getColorOfLabel(this.attributeName,this.initialValue),this.labelList=this.labelService.getLabelList(this.attributeName),this.dropdownControl=this.dropdownForm.get(this.attributeName)}setSelectedLabelColor(e,t){this.selectedColor=this.labelService.getColorOfLabel(e,t)}openModalPopup(e){this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelService.getLabelDefinition(e.labelValue,e.labelCategory))}hasLabelDefinition(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}get dropdownTextColor(){return this.labelService.isDarkColor(this.selectedColor)?"white-text":"black-text"}}return e.\u0275fac=function(t){return new(t||e)(Go(bj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-label-dropdown"]],inputs:{attributeName:"attributeName",initialValue:"initialValue",dropdownForm:"dropdownForm"},decls:7,vars:8,consts:[[3,"formGroup"],[2,"width","100%"],["required","","disableOptionCentering","",3,"ngClass","formControlName","placeholder","ngStyle","selectionChange"],["mat-menu-item","","class","labelLine",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",1,"labelLine"],[3,"value","ngStyle"],[3,"ngStyle"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(Ko(0,"form",0),Ko(1,"mat-form-field",1),Ko(2,"mat-select",2),la("selectionChange",function(e){return t.setSelectedLabelColor(t.attributeName,e.value)}),Ko(3,"mat-select-trigger"),Fa(4),Jo(),$o(5,iU,7,8,"div",3),Jo(),$o(6,nU,2,1,"mat-error",4),Jo(),Jo()),2&e&&(Zo("formGroup",t.dropdownForm),fs(2),_a("formControlName",t.attributeName),_a("placeholder",t.labelService.getLabelTitle(t.attributeName)),Zo("ngClass",t.dropdownTextColor)("ngStyle",t.labelService.setLabelStyle(t.selectedColor,"inline-block")),fs(2),qa(" ",t.dropdownControl.value," "),fs(1),Zo("ngForOf",t.labelList),fs(1),Zo("ngIf",t.dropdownControl.errors&&t.dropdownControl.errors.required&&t.dropdownControl.touched))},directives:[Ok,Xw,Fk,NC,PA,Hk,hd,Jw,qk,Sd,IA,md,gd,sA,mM,cL,xC],styles:[".white-text .mat-select-value-text{color:#fff!important} .black-text .mat-select-value-text{color:#000!important}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 20%}"]}),e})();function sU(e,t){1&e&&(Ko(0,"mat-icon",5),Fa(1,"cancel"),Jo())}const oU=function(e){return[e]};function aU(e,t){if(1&e){const e=na();Ko(0,"mat-chip",2),la("removed",function(){const t=Yt(e).$implicit;return pa().removeDuplicateStatus(t)}),Ko(1,"a",3),Fa(2),Jo(),$o(3,sU,2,0,"mat-icon",4),Jo()}if(2&e){const e=t.$implicit,i=pa();Zo("matTooltip",e.title),fs(1),Zo("routerLink",pu(4,oU,"../"+e.id)),fs(1),qa(" #",e.id," "),fs(1),Zo("ngIf",i.permissions.isTeamResponseEditable()||i.permissions.isTutorResponseEditable())}}let lU=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.permissions=n}ngOnInit(){this.duplicatedIssues=this.issueService.getDuplicateIssuesFor(this.issue)}removeDuplicateStatus(e){const t=this.getUpdatedIssueWithRemovedDuplicate(e);this.issueService.updateIssueWithComment(t,t.issueComment).subscribe(e=>this.issueService.updateLocalStore(e),e=>this.errorHandlingService.handleError(e))}getUpdatedIssueWithRemovedDuplicate(e){const t=e.clone(this.phaseService.currentPhase);return t.duplicated=!1,t.duplicateOf=null,t.issueComment.description=t.createGithubTeamResponse(),t}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-duplicated-issues-component"]],inputs:{issue:"issue"},decls:6,vars:3,consts:[[1,"mat-title"],["style","cursor: pointer","matTooltipPosition","above",3,"matTooltip","removed",4,"ngFor","ngForOf"],["matTooltipPosition","above",2,"cursor","pointer",3,"matTooltip","removed"],[1,"no-underline","link-grey-dark",3,"routerLink"],["matChipRemove","",4,"ngIf"],["matChipRemove",""]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"span",0),Fa(2," Duplicated Issues "),Jo(),Ko(3,"mat-chip-list"),$o(4,aU,4,6,"mat-chip",1),_u(5,"async"),Jo(),Jo()),2&e&&(fs(4),Zo("ngForOf",yu(5,1,t.duplicatedIssues)))},directives:[VD,md,qD,BA,yb,gd,cL,ND],pipes:[Cd],styles:[""],encapsulation:2}),e})();function uU(e,t){if(1&e&&(Ko(0,"span",30),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa(2);fs(1),qa(" (",t.getDisabledDupOptionErrorText(e),") ")}}function cU(e,t){if(1&e&&(Ko(0,"mat-option",26),Ko(1,"span",27),Fa(2),Jo(),Ko(3,"span",28),Fa(4),Jo(),$o(5,uU,2,1,"span",29),Jo()),2&e){const e=t.$implicit,i=pa(2);Zo("disabled",i.dupIssueOptionIsDisabled(e))("value",e.id),fs(2),qa(" #",e.id,": "),fs(2),ja(e.title),fs(1),Zo("ngIf",i.dupIssueOptionIsDisabled(e))}}function dU(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Need to specify the duplicated issue. "),Jo())}function hU(e,t){if(1&e){const e=na();Ko(0,"div",6),Ko(1,"div"),Ko(2,"mat-checkbox",21),la("change",function(t){return Yt(e),pa().handleChangeOfDuplicateCheckbox(t)}),Fa(3," A Duplicate Of: "),Jo(),Ko(4,"mat-form-field",22),Ko(5,"mat-select",23),Ko(6,"mat-option"),Xo(7,"ngx-mat-select-search",24),Jo(),$o(8,cU,6,5,"mat-option",25),_u(9,"async"),Jo(),$o(10,dU,2,0,"mat-error",13),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(4),Ea("visibility",e.duplicated.value?"visible":"hidden"),fs(3),Zo("formControl",e.searchFilterCtrl),fs(1),Zo("ngForOf",yu(9,5,e.filteredDuplicateIssueList)),fs(2),Zo("ngIf",e.duplicateOf.errors&&e.duplicateOf.errors.required&&e.duplicateOf.touched)}}function pU(e,t){if(1&e&&(Ko(0,"div",6),Xo(1,"app-duplicated-issues-component",31),Jo()),2&e){const e=pa();fs(1),Zo("issue",e.issue)}}function mU(e,t){if(1&e&&(Ko(0,"mat-option",32),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),ja(e)}}function fU(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Assignee(s) required. "),Jo())}function gU(e,t){if(1&e){const e=na();Ko(0,"button",33),la("click",function(){return Yt(e),pa().viewUpdatedResponse()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa().isFormPending)}function _U(e,t){if(1&e&&(Ko(0,"button",34),Fa(1),Jo()),2&e){const e=pa();Zo("disabled",e.newTeamResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function yU(e,t){if(1&e&&(Ko(0,"button",35),Fa(1),Jo()),2&e){const e=pa();Zo("disabled",e.newTeamResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function bU(e,t){if(1&e){const e=na();Ko(0,"button",36),la("click",function(){return Yt(e),pa().refresh()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa().isFormPending)}let vU=(()=>{class e{constructor(e,t,i,n,r,s){this.issueService=e,this.formBuilder=t,this.labelService=i,this.errorHandlingService=n,this.dialog=r,this.phaseService=s,this.searchFilterCtrl=new kk,this.filteredDuplicateIssueList=new TS(1),this.isFormPending=!1,this.issueUpdated=new vu,this._onDestroy=new x}ngOnInit(){this.teamMembers=this.issue.teamAssigned.teamMembers.map(e=>e.loginId),this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Og()).subscribe(e=>this.filteredDuplicateIssueList.next(e)),this.searchFilterCtrl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>this.filterIssues()),this.newTeamResponseForm=this.formBuilder.group({description:[""],severity:[this.issue.severity,Cw.required],type:[this.issue.type,Cw.required],response:[this.issue.response,Cw.required],assignees:[this.issue.assignees.map(e=>e.toLowerCase())],duplicated:[!1],duplicateOf:[""]}),this.duplicated.valueChanges.subscribe(e=>{e?(this.duplicateOf.setValidators(Cw.required),this.responseTag.setValidators(null)):(this.duplicateOf.setValidators(null),this.responseTag.setValidators(Cw.required)),this.duplicateOf.updateValueAndValidity(),this.responseTag.updateValueAndValidity()}),this.submitButtonText="Submit"}filterIssues(){this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(e=>this.filteredDuplicateIssueList.next(e))}changeFilter(e,t){return e.pipe(Og(),D(e=>PH(t,[RH.ID,RH.TITLE],this.issueService,e)))}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}submitNewTeamResponse(e){if(this.newTeamResponseForm.invalid)return;this.isFormPending=!0;const t=this.getUpdatedIssue();this.isSafeToSubmit().pipe(U(e=>{const i=t.createGithubTeamResponse();return e?this.issueService.createTeamResponse(t):"Overwrite"===this.submitButtonText?this.issueService.updateIssueWithComment(t,{id:this.issueService.issues[this.issue.id].issueComment.id,description:i}):(this.conflict=new uN(" ",this.issueService.issues[this.issue.id].teamResponse),this.submitButtonText="Overwrite",this.viewUpdatedResponse(),Qb("A response has been submitted. Please verify the changes and try again."))}),Yg(()=>this.isFormPending=!1)).subscribe(t=>{this.issueUpdated.emit(t),e.resetForm()},e=>{this.errorHandlingService.handleError(e)})}isSafeToSubmit(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>!e.teamResponse))}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);if(e.duplicated=this.duplicated.value,e.duplicateOf=this.duplicateOf.value,e.duplicated){const t=this.issueService.issues[e.duplicateOf];e.severity=t.severity,e.type=t.type,e.assignees=t.assignees,e.response=t.response}else e.severity=this.severity.value,e.type=this.type.value,e.assignees=this.assignees.value,e.response=this.responseTag.value;return e.status=rj.Done,e.teamResponse=tj.updateTeamResponse(this.description.value),e}dupIssueOptionIsDisabled(e){return e.duplicated||!!e.duplicateOf}getDisabledDupOptionErrorText(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}handleChangeOfDuplicateCheckbox(e){e.checked?(this.responseTag.setValue(""),this.assignees.setValue([]),this.responseTag.markAsUntouched()):(this.duplicateOf.setValue(""),this.duplicateOf.markAsUntouched())}viewUpdatedResponse(){this.dialog.open(JH,{data:this.issueService.issues[this.issue.id],autoFocus:!1})}refresh(){this.issueUpdated.emit(this.issueService.issues[this.issue.id])}getDupIssueList(){return this.issueService.issues$.pipe(D(e=>e.filter(e=>this.issue.id!==e.id)))}get description(){return this.newTeamResponseForm.get("description")}get severity(){return this.newTeamResponseForm.get("severity")}get type(){return this.newTeamResponseForm.get("type")}get assignees(){return this.newTeamResponseForm.get("assignees")}get responseTag(){return this.newTeamResponseForm.get("response")}get duplicated(){return this.newTeamResponseForm.get("duplicated")}get duplicateOf(){return this.newTeamResponseForm.get("duplicateOf")}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(bj),Go(rY),Go(HL),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-new-team-response"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:29,vars:26,consts:[[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["class","container",4,"ngIf","ngIfElse"],["displayDuplicates",""],[1,"container"],[1,"left-half"],["attributeName","severity",3,"initialValue","dropdownForm"],[1,"right-half"],["attributeName","type",3,"initialValue","dropdownForm"],["placeholder","Assignees","formControlName","assignees","multiple",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["attributeName","response",3,"initialValue","dropdownForm"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["type","submit","class","editor-action","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",3,"disabled","click",4,"ngIf"],["formControlName","duplicated",2,"display","inline-block","width","20%",3,"change"],[2,"display","inline-block","width","50%"],["formControlName","duplicateOf","placeholder","Duplicate of"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"disabled","value",4,"ngFor","ngForOf"],[3,"disabled","value"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","color: #f44336",4,"ngIf"],[1,"mat-caption",2,"color","#f44336"],[3,"issue"],[3,"value"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",1,"editor-action",3,"disabled","click"]],template:function(e,t){if(1&e){const e=na();Ko(0,"form",0,1),la("ngSubmit",function(){Yt(e);const i=Wo(1);return t.submitNewTeamResponse(i)}),Ko(2,"div",2),Ko(3,"div",3),Ko(4,"span"),Fa(5," Post your team's response here. "),Jo(),Jo(),Ko(6,"div"),$o(7,hU,11,7,"div",4),_u(8,"async"),$o(9,pU,2,1,"ng-template",null,5,qu),Ko(11,"div",6),Ko(12,"div",7),Xo(13,"app-label-dropdown",8),Jo(),Ko(14,"div",9),Xo(15,"app-label-dropdown",10),Jo(),Jo(),Ko(16,"div",6),Ko(17,"mat-form-field",7),Ko(18,"mat-select",11),$o(19,mU,2,2,"mat-option",12),Jo(),$o(20,fU,2,0,"mat-error",13),Jo(),Ko(21,"div",9),Xo(22,"app-label-dropdown",14),Jo(),Jo(),Ko(23,"app-comment-editor",15),la("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),Jo(),Ko(24,"div",16),$o(25,gU,2,1,"button",17),$o(26,_U,2,2,"button",18),$o(27,yU,2,2,"button",19),$o(28,bU,2,1,"button",20),Jo(),Jo(),Jo(),Jo()}if(2&e){const e=Wo(10);Zo("formGroup",t.newTeamResponseForm),fs(7),Zo("ngIf",0===yu(8,24,t.issueService.getDuplicateIssuesFor(t.issue)).length)("ngIfElse",e),fs(4),Ea("display",t.duplicated.value?"none":"grid"),fs(2),Zo("initialValue",t.issue.severity)("dropdownForm",t.newTeamResponseForm),fs(2),Zo("initialValue",t.issue.type)("dropdownForm",t.newTeamResponseForm),fs(1),Ea("display",t.duplicated.value?"none":"grid"),fs(3),Zo("ngForOf",t.teamMembers),fs(1),Zo("ngIf",t.assignees.errors&&t.assignees.errors.required&&t.assignees.touched),fs(2),Zo("initialValue",t.issue.response)("dropdownForm",t.newTeamResponseForm),fs(1),Zo("id","description")("commentField",t.newTeamResponseForm.get("description"))("commentForm",t.newTeamResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),fs(2),Zo("ngIf",t.conflict),fs(1),Zo("ngIf",t.conflict),fs(1),Zo("ngIf",!t.conflict),fs(1),Zo("ngIf",t.conflict)}},directives:[Ok,Xw,Fk,gd,rU,NC,PA,Jw,qk,md,yH,LD,mM,uq,Pk,xC,lU,oD,BA],pipes:[Cd],styles:[".left-half[_ngcontent-%COMP%]{grid-column:1;padding-right:5px}.right-half[_ngcontent-%COMP%]{grid-column:2;padding-left:5px}.container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}"]}),e})(),wU=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-parse-error"]],inputs:{phase:"phase"},decls:7,vars:2,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),Ko(2,"span"),Ko(3,"strong"),Fa(4),Jo(),Jo(),Jo(),Ko(5,"div",2),Fa(6),Jo(),Jo()),2&e&&(fs(4),qa("Error in parsing ",t.phase,""),fs(2),qa("No valid ",t.phase," was found. Please contact the teaching team for assistance."))},styles:[".timeline-header[_ngcontent-%COMP%]{background-color:#f7d2d2;border-bottom:1px solid #ebc0c0;border-top-left-radius:3px;border-top-right-radius:3px;color:#586069;height:35px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between}.timeline-comment[_ngcontent-%COMP%]{overflow:auto;border:1px solid #ebc0c0;background-color:#fff;border-radius:3px;margin-bottom:30px;white-space:pre-line}.comment[_ngcontent-%COMP%]{padding:15px}"]}),e})();function kU(e,t){1&e&&(Ko(0,"mat-chip",19),Fa(1," No Changes "),Jo())}function SU(e,t){if(1&e&&(Ko(0,"div",20),Ko(1,"mat-checkbox",21),Fa(2," I disagree "),Jo(),Jo()),2&e){const e=pa().index,t=pa();fs(1),Zo("disabled",!0)("checked",t.data.updatedResponses[e].isDisagree())}}function TU(e,t){1&e&&(Ko(0,"div",22),Ko(1,"i",23),Fa(2,"add_box"),Jo(),Ko(3,"ins",24),Fa(4," I disagree "),Jo(),Jo())}function EU(e,t){1&e&&(Ko(0,"div",22),Ko(1,"i",25),Fa(2,"indeterminate_check_box"),Jo(),Ko(3,"del",26),Fa(4,"I disagree"),Jo(),Jo())}function xU(e,t){if(1&e&&Xo(0,"div",28),2&e){const e=pa(2).index;Zo("innerHTML",pa().diffHtmls[e],Gr)}}function MU(e,t){if(1&e&&Xo(0,"div",28),2&e){const e=pa(2).index;Zo("innerHTML",pa().updatedHtmls[e],Gr)}}function CU(e,t){if(1&e&&(Ko(0,"div",18),$o(1,xU,1,1,"div",27),$o(2,MU,1,1,"div",27),Jo()),2&e){const e=pa(2);fs(1),Zo("ngIf",e.showDiff),fs(1),Zo("ngIf",!e.showDiff)}}function DU(e,t){if(1&e&&(Ko(0,"mat-expansion-panel",7),Ko(1,"mat-expansion-panel-header"),Ko(2,"mat-panel-title",8),Ko(3,"div",9),Fa(4,"?"),Jo(),Xo(5,"markdown",10),Jo(),Ko(6,"mat-panel-description"),Ko(7,"mat-chip-list"),$o(8,kU,2,0,"mat-chip",11),Jo(),Jo(),Jo(),Xo(9,"br"),Xo(10,"markdown",10),Xo(11,"br"),$o(12,SU,3,2,"div",12),$o(13,TU,5,0,"div",13),$o(14,EU,5,0,"div",13),Ko(15,"mat-tab-group",14),Ko(16,"mat-tab",15),$o(17,CU,3,2,"div",16),Jo(),Ko(18,"mat-tab",17),Ko(19,"div",18),Ko(20,"markdown"),Fa(21),Jo(),Jo(),Jo(),Jo(),Jo()),2&e){const e=t.$implicit,i=t.index,n=pa();Zo("expanded",n.panelOpenStates[i]),fs(5),Zo("data",n.data.updatedResponses[i].getTitleInMarkDown()),fs(3),Zo("ngIf",0===n.data.outdatedResponses[i].compareTo(n.data.updatedResponses[i])),fs(2),Zo("data",n.data.updatedResponses[i].description),fs(2),Zo("ngIf",n.data.updatedResponses[i].isDisagree()===n.data.outdatedResponses[i].isDisagree()||!n.showDiff),fs(1),Zo("ngIf",!n.data.outdatedResponses[i].isDisagree()&&n.data.updatedResponses[i].isDisagree()&&n.showDiff),fs(1),Zo("ngIf",n.data.outdatedResponses[i].isDisagree()&&!n.data.updatedResponses[i].isDisagree()&&n.showDiff),fs(3),Zo("ngIf",n.isReady),fs(4),ja(e.updatedContent)}}let LU=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isReady=!1,this.showDiff=!0,this.conflicts=[],this.diffHtmls=[],this.updatedHtmls=[],this.panelOpenStates=[];for(let s=0;s{class e{constructor(e){this.ngControl=e}set disableControl(e){var t,i;e?null===(t=this.ngControl.control)||void 0===t||t.disable():null===(i=this.ngControl.control)||void 0===i||i.enable()}}return e.\u0275fac=function(t){return new(t||e)(Go(Qw))},e.\u0275dir=Ke({type:e,selectors:[["","disableControl",""]],inputs:{disableControl:"disableControl"}}),e})();function AU(e,t){1&e&&(Ko(0,"span"),Fa(1," Please verify the following item(s). "),Jo())}function IU(e,t){1&e&&(Ko(0,"span"),Ko(1,"strong"),Fa(2,"Tester"),Jo(),Fa(3," responded. "),Jo())}function RU(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function PU(e,t){1&e&&Xo(0,"markdown",12),2&e&&Zo("data",pa(2).$implicit.reasonForDisagreement)}function YU(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",18),la("isFormPendingChange",function(t){return Yt(e),pa(3).isFormPending=t})("submitButtonTextChange",function(t){return Yt(e),pa(3).submitButtonText=t}),Jo(),Jo()}if(2&e){const e=pa(2).index,t=pa();fs(1),Zo("commentField",t.testerResponseForm.get(t.getTesterResponseFormId(e)))("id",t.getTesterResponseFormId(e))("commentForm",t.testerResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText)}}function FU(e,t){if(1&e&&(Ko(0,"div"),Ko(1,"div"),Ko(2,"p",16),Fa(3,"Reason for Disagreement:"),Jo(),$o(4,PU,1,1,"markdown",17),Jo(),$o(5,YU,2,5,"div",4),Jo()),2&e){const e=pa(2);fs(4),Zo("ngIf",!e.isEditing),fs(1),Zo("ngIf",e.isEditing)}}function jU(e,t){if(1&e){const e=na();Ko(0,"div",9),Ko(1,"div",10),Ko(2,"div",11),Fa(3,"?"),Jo(),Xo(4,"markdown",12),Jo(),Xo(5,"br"),Xo(6,"markdown",12),Xo(7,"br"),Ko(8,"div"),Ko(9,"mat-radio-group",13),la("change",function(t){const i=Yt(e).index;return pa().handleChangeOfDisagreeRadioButton(t,i)}),Ko(10,"mat-radio-button",14),Fa(11," I Agree "),Jo(),Ko(12,"mat-radio-button",14),Fa(13," I Disagree "),Jo(),Jo(),Jo(),$o(14,FU,6,2,"div",4),Xo(15,"br"),Xo(16,"markdown",15),Xo(17,"br"),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();fs(4),Zo("data",e.getTitleInMarkDown()),fs(2),Zo("data",e.description),fs(3),Zo("disableControl",!n.isEditing)("id",n.getDisagreeRadioFormId(i))("formControlName",n.getDisagreeRadioFormId(i)),fs(1),Zo("value",!1),fs(2),Zo("value",!0),fs(2),Zo("ngIf",n.testerResponseForm.get(n.getDisagreeRadioFormId(i)).value)}}function qU(e,t){if(1&e){const e=na();Ko(0,"button",24),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function NU(e,t){if(1&e&&(Ko(0,"button",25),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.testerResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function HU(e,t){if(1&e&&(Ko(0,"button",26),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.testerResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function UU(e,t){if(1&e){const e=na();Ko(0,"button",27),la("click",function(){return Yt(e),pa(2).openCancelDialogIfModified()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function zU(e,t){if(1&e&&(Ko(0,"div",19),$o(1,qU,2,1,"button",20),$o(2,NU,2,2,"button",21),$o(3,HU,2,2,"button",22),$o(4,UU,2,1,"button",23),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.isNewResponse())}}let BU=(()=>{class e{constructor(e,t,i,n,r,s,o){this.formBuilder=e,this.issueService=t,this.userService=i,this.errorHandlingService=n,this.dialog=r,this.phaseService=s,this.dialogService=o,this.isFormPending=!1,this.issueUpdated=new vu,this.updateEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing",this.responseRadioIdentifier="response-radio",this.responseTextIdentifier="tester-response"}ngOnInit(){this.resetForm(),this.submitButtonText=this.isNewResponse()?"Submit":"Save",setTimeout(()=>{this.updateEditState.emit(this.isNewResponse())})}ngOnChanges(e){!this.isEditing&&e.issue&&e.issue.previousValue!==e.issue.currentValue&&this.resetForm()}submitTesterResponseForm(){this.testerResponseForm.invalid||(this.isFormPending=!0,this.isSafeToSubmit().pipe(U(e=>e||this.isUpdatingDeletedResponse()||"Overwrite"===this.submitButtonText?this.issueService.updateTesterResponse(this.issue,Object.assign(Object.assign({},this.issue.issueComment),{description:this.getTesterResponseFromForm()})):(this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isFormPending=!1)).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()},e=>{this.errorHandlingService.handleError(e)}))}isSafeToSubmit(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>!!e.testerResponses&&e.testerResponses.reduce((e,t,i)=>e&&0===t.compareTo(this.issue.testerResponses[i]),!0)))}isUpdatingDeletedResponse(){return this.issue.testerResponses&&!this.issueService.issues[this.issue.id].testerResponses}viewChanges(){this.dialog.open(LU,{data:{outdatedResponses:this.issue.testerResponses,updatedResponses:this.issueService.issues[this.issue.id].testerResponses},autoFocus:!1})}changeToEditMode(){this.updateEditState.emit(!0)}openCancelDialogIfModified(){const e=this.issue.testerResponses.filter((e,t)=>this.isResponseDisagreed(t)).map((e,t)=>this.getTesterResponseText(t)!==(e.reasonForDisagreement||"")).reduce((e,t)=>e||t,!1),t=this.issue.testerResponses.map((e,t)=>this.isResponseDisagreed(t)!==e.isDisagree()).reduce((e,t)=>e||t,!1);this.dialogService.performActionIfModified(e||t,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}resetToDefault(){this.submitButtonText="Save",this.updateEditState.emit(!1),this.resetForm()}handleChangeOfDisagreeRadioButton(e,t){const i=this.testerResponseForm.get(this.getTesterResponseFormId(t));this.isResponseDisagreed(t)?i.enable():i.disable()}trackDisagreeList(e,t){return t[e]}isNewResponse(){return!this.issue.status&&this.userService.currentUser.role===pY.Student}createFormGroup(){const e={};for(let t=0;t{const i=this.isResponseDisagreed(t),n=i?this.getTesterResponseText(t)||e.reasonForDisagreement:e.INITIAL_RESPONSE;return e.setDisagree(i),e.setReasonForDisagreement(n),e}),e.createGithubTesterResponse()}getTesterResponseFormId(e){return`${this.responseTextIdentifier}-${e}`}getTesterResponseText(e){return this.testerResponseForm.get(this.getTesterResponseFormId(e)).value}getDisagreeRadioFormId(e){return`${this.responseRadioIdentifier}-${e}`}isResponseDisagreed(e){return this.testerResponseForm.get(this.getDisagreeRadioFormId(e)).value}get conflict(){return"Overwrite"===this.submitButtonText}}return e.\u0275fac=function(t){return new(t||e)(Go(Wk),Go(Tj),Go(fY),Go(rY),Go(HL),Go(Sj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-tester-response"]],viewQuery:function(e,t){if(1&e&&Iu(yH,5),2&e){let e;Au(e=Pu())&&(t.commentEditor=e.first)}},inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},features:[ct],decls:12,vars:7,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],[1,"timeline-comment"],[1,"timeline-header"],[4,"ngIf"],["mat-button","","style","float: right",3,"click",4,"ngIf"],["class","container",4,"ngFor","ngForOf","ngForTrackBy"],["class","editor-actions",4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"container"],[2,"display","flex","align-items","center"],[1,"question-mark"],["disableInternalLink","",3,"data"],["aria-label","Select Agree or Disagree to Team's Response",2,"display","inline-block","width","20%",3,"disableControl","id","formControlName","change"],[3,"value"],["data","-------------------"],[2,"font-weight","500"],["disableInternalLink","",3,"data",4,"ngIf"],[3,"commentField","id","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn",3,"disabled","click",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-stroked-button","","color","primary",3,"disabled"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"h3",0),Fa(1,"Tester's Response"),Jo(),Ko(2,"form",1),la("ngSubmit",function(){return t.submitTesterResponseForm()}),Ko(3,"div",2),Ko(4,"div",3),$o(5,AU,2,0,"span",4),$o(6,IU,4,0,"span",4),$o(7,RU,2,0,"button",5),Jo(),Ko(8,"div"),$o(9,jU,18,8,"div",6),Xo(10,"mat-divider"),$o(11,zU,5,4,"div",7),Jo(),Jo(),Jo()),2&e&&(fs(2),Zo("formGroup",t.testerResponseForm),fs(3),Zo("ngIf",t.isNewResponse()),fs(1),Zo("ngIf",!t.isNewResponse()),fs(1),Zo("ngIf",!t.isEditing),fs(2),Zo("ngForOf",t.issue.testerResponses)("ngForTrackBy",t.trackDisagreeList),fs(2),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,md,ZL,oD,tw,gN,MI,OU,Jw,qk,OI,yH],styles:[".container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}"]}),e})(),VU=(()=>{class e{constructor(){}ngOnInit(){this.message=CY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-team-accepted"]],decls:8,vars:1,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),Ko(2,"span"),Ko(3,"strong"),Fa(4,"Team"),Jo(),Fa(5," responded"),Jo(),Jo(),Ko(6,"div",2),Fa(7),Jo(),Jo()),2&e&&(fs(7),ja(t.message))},styles:[""]}),e})();function $U(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function WU(e,t){1&e&&Xo(0,"markdown",12),2&e&&Zo("data",pa().$implicit.tutorResponse)}function GU(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",18),la("isFormPendingChange",function(t){return Yt(e),pa(2).isFormPending=t})("submitButtonTextChange",function(t){return Yt(e),pa(2).submitButtonText=t}),Jo(),Jo()}if(2&e){const e=pa().index,t=pa();fs(1),Zo("commentField",t.tutorResponseForm.get(t.getTutorResponseFormId(e)))("commentForm",t.tutorResponseForm)("id",t.getTutorResponseFormId(e))("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText)}}function ZU(e,t){if(1&e&&(Ko(0,"div",9),Ko(1,"div",10),Ko(2,"div",11),Fa(3,"?"),Jo(),Xo(4,"markdown",12),Jo(),Xo(5,"br"),Xo(6,"markdown",12),Xo(7,"br"),Ko(8,"div"),Ko(9,"mat-checkbox",13),Fa(10," Done "),Jo(),Jo(),Xo(11,"br"),Ko(12,"div"),Xo(13,"markdown",14),$o(14,WU,1,1,"markdown",15),Jo(),$o(15,GU,2,5,"div",16),Xo(16,"br"),Xo(17,"markdown",17),Xo(18,"br"),Jo()),2&e){const e=t.$implicit,i=t.index,n=pa();fs(4),Zo("data",n.getItemTitleText(e.title)),fs(2),Zo("data",e.description),fs(3),Zo("id",n.getTodoFormId(i))("formControlName",n.getTodoFormId(i))("disableControl",!n.isEditing),fs(5),Zo("ngIf",!n.isEditing),fs(1),Zo("ngIf",n.isEditing)}}function QU(e,t){if(1&e){const e=na();Ko(0,"button",24),la("click",function(){return Yt(e),pa(2).viewInGithub()}),Fa(1," View Updated Response On Github "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function KU(e,t){if(1&e&&(Ko(0,"button",25),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.tutorResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function JU(e,t){if(1&e&&(Ko(0,"button",26),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.tutorResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function XU(e,t){if(1&e){const e=na();Ko(0,"button",27),la("click",function(){return Yt(e),pa(2).cancelEditMode()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function ez(e,t){if(1&e&&(Ko(0,"div",19),$o(1,QU,2,1,"button",20),$o(2,KU,2,2,"button",21),$o(3,JU,2,2,"button",22),$o(4,XU,2,1,"button",23),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.isNewResponse())}}let tz=(()=>{class e{constructor(e,t,i,n,r,s){this.formBuilder=e,this.issueService=t,this.userService=i,this.errorHandlingService=n,this.githubService=r,this.phaseService=s,this.isFormPending=!1,this.issueUpdated=new vu,this.updateEditState=new vu}ngOnInit(){this.resetForm(),this.submitButtonText=this.isNewResponse()?"Submit":"Save",setTimeout(()=>{this.updateEditState.emit(this.isNewResponse())})}ngOnChanges(e){!this.isEditing&&e.issue&&e.issue.previousValue!==e.issue.currentValue&&this.resetForm()}submitTutorResponseForm(e){this.tutorResponseForm.invalid||(this.isFormPending=!0,this.issue.pending=""+this.getNumOfPending(),this.isSafeToSubmitTutorResponse().pipe(U(e=>e||this.isUpdatingDeletedResponse()?this.issue.issueComment&&!this.isUpdatingDeletedResponse()?this.updateTutorResponse():this.createTutorResponse():(this.submitButtonText="Overwrite",Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isFormPending=!1)).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()},e=>{this.errorHandlingService.handleError(e)}))}updateTutorResponse(){return this.issueService.updateTutorResponse(this.issue,Object.assign(Object.assign({},this.issue.issueComment),{description:this.getTutorResponseFromForm()}))}createTutorResponse(){const e=this.getTutorResponseFromForm();return this.issueService.createTutorResponse(this.issue,e)}isSafeToSubmitTutorResponse(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>{if(e.issueComment&&!!e.issueComment==!!this.issue.issueComment){for(let t=0;t{this.issueUpdated.emit(e),this.resetToDefault()})}trackDisputeList(e,t){return t[e]}isNewResponse(){return!this.issue.issueComment}resetForm(){this.tutorResponseForm=this.formBuilder.group(this.createFormGroup())}getItemTitleText(e){return"## "+e}getNumOfPending(){let e=this.issue.issueDisputes.length;for(const t of this.issue.issueDisputes)t.isDone()&&e--;return e}createFormGroup(){const e={};for(let t=0;t{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.labelService=n,this.permissions=r,this.dialogService=s,this.loadingService=o,this.issueUpdated=new vu}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}ngOnInit(){this.labelValues=this.labelService.getLabelList(this.attributeName),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}ngOnChanges(){this.labelColor=this.labelService.getColorOfLabel(this.attributeName,this.issue[this.attributeName])}updateLabel(e){this.showSpinner();const t=this.issue.clone(this.phaseService.currentPhase);t[this.attributeName]=e,this.issueService.updateIssue(t).subscribe(e=>{this.issueUpdated.emit(e),this.labelColor=this.labelService.getColorOfLabel(this.attributeName,e[this.attributeName]),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()}),this.issueService.getDuplicateIssuesFor(this.issue).pipe(Og()).subscribe(t=>{t.forEach(t=>{const i=t.clone(this.phaseService.currentPhase);i[this.attributeName]=e,this.issueService.updateIssue(i)})})}openDefinitionPage(e){this.labelDefinition=this.labelService.getLabelDefinition(e.labelValue,e.labelCategory),this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelDefinition)}hasLabelDefinition(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(bj),Go(vq),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-label"]],viewQuery:function(e,t){if(1&e&&Iu(iz,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue",attributeName:"attributeName"},outputs:{issueUpdated:"issueUpdated"},features:[sl([Uq]),ct],decls:8,vars:5,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["labelList",""],["mat-menu-item","","class","labelLine",3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],["mat-icon-button","",2,"float","right",3,"matMenuTriggerFor"],["style","font-size: 20px; margin-bottom: 7px; color: #586069",4,"ngIf"],["loadingSpinnerContainer",""],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",1,"labelLine",3,"ngStyle"],[1,"labelInfo","option",3,"disabled","click"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(Ko(0,"span",0),Fa(1),Jo(),$o(2,rz,4,2,"button",1),Ko(3,"mat-menu",null,2),$o(5,lz,7,8,"div",3),Jo(),Ko(6,"p",4),Fa(7),Jo()),2&e&&(fs(1),qa(" ",t.labelService.getLabelTitle(t.attributeName)," "),fs(1),Zo("ngIf",t.permissions.isIssueLabelsEditable()&&!t.issue.duplicateOf),fs(3),Zo("ngForOf",t.labelValues),fs(1),Zo("ngStyle",t.labelService.setLabelStyle(t.labelColor)),fs(1),ja(t.issue[t.attributeName]||"-"))},directives:[gd,uA,md,Sd,oD,mA,cL,sA],styles:[".no-arrow[_ngcontent-%COMP%] .mat-select-arrow[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle}.option[_ngcontent-%COMP%]{background-color:Transparent;border:none;outline:none;margin-right:30px}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr}.labelInfo[_ngcontent-%COMP%]{font-size:1em;text-align:left}"]}),e})();function cz(e,t){if(1&e){const e=na();Ko(0,"button",7),la("click",function(){return Yt(e),pa().openSelection()}),Ko(1,"mat-icon",8),Fa(2," edit "),Jo(),Jo()}2&e&&Ea("visibility",pa().issue.duplicated?"inherit":"hidden")}function dz(e,t){if(1&e&&(Ko(0,"span",14),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();fs(1),qa(" (",t.getDisabledDupOptionErrorText(e),") ")}}const hz=function(e){return{width:e}};function pz(e,t){if(1&e&&(Ko(0,"mat-option",9),Ko(1,"div",10),Ko(2,"span",11),Fa(3),Jo(),Ko(4,"span",12),Fa(5),Jo(),Jo(),$o(6,dz,2,1,"span",13),Jo()),2&e){const e=t.$implicit,i=pa();Zo("matTooltip",e.title)("matTooltipDisabled",!i.isTooltipNecessary(e))("matTooltipPosition","left")("disabled",i.dupIssueOptionIsDisabled(e))("value",e.id),fs(1),Zo("ngStyle",pu(9,hz,i.dupIssueOptionIsDisabled(e)?"150px":"auto")),fs(2),qa(" #",e.id,": "),fs(2),ja(e.title),fs(1),Zo("ngIf",i.dupIssueOptionIsDisabled(e))}}function mz(e,t){if(1&e&&(Ko(0,"span",15),Fa(1),_u(2,"async"),Jo()),2&e){const e=pa();fs(1),qa(" ",e.issue.duplicateOf?"#"+e.issue.duplicateOf+": "+yu(2,1,e.issueService.getIssue(e.issue.duplicateOf)).title:"Not specified"," ")}}function fz(e,t){1&e&&(Ko(0,"span",15),Fa(1," - "),Jo())}let gz=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.permissions=t,this.errorHandlingService=i,this.phaseService=n,this.isEditing=!1,this.searchFilterCtrl=new kk,this.filteredDuplicateIssueList=new TS(1),this.issueUpdated=new vu,this._onDestroy=new x,this.MAX_TITLE_LENGTH_FOR_DUPLICATE_ISSUE=17,this.MAX_TITLE_LENGTH_FOR_NON_DUPLICATE_ISSUE=37}isTooltipNecessary(e){let t;return t=e.duplicated?this.MAX_TITLE_LENGTH_FOR_DUPLICATE_ISSUE:this.MAX_TITLE_LENGTH_FOR_NON_DUPLICATE_ISSUE,e.title.length>t}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}ngOnInit(){this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Og()).subscribe(e=>this.filteredDuplicateIssueList.next(e)),this.searchFilterCtrl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>this.filterIssues())}filterIssues(){this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(e=>this.filteredDuplicateIssueList.next(e))}updateDuplicateStatus(e){const t=this.getUpdatedIssue(e);this.issueService.updateIssueWithComment(t,t.issueComment).subscribe(e=>this.issueUpdated.emit(e),e=>this.errorHandlingService.handleError(e))}dupIssueOptionIsDisabled(e){return e.duplicated||!!e.duplicateOf}getDisabledDupOptionErrorText(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}handleCheckboxChange(e){e.checked?this.openSelection():(this.isEditing=!1,this.duplicateOfSelection.close(),this.duplicateOfSelection.value=null,this.updateDuplicateStatus(null))}openSelection(){this.isEditing=!0,this.duplicateOfSelection.open()}handleSelectionOpenChange(e){e||(this.isEditing=!1,this.duplicatedCheckbox.checked=this.duplicateOfSelection.value)}getUpdatedIssue(e){const t=this.issue.clone(this.phaseService.currentPhase);if(t.duplicated=!!e,t.duplicateOf=e?e.value:null,e){const e=this.issueService.issues[t.duplicateOf];t.severity=e.severity,t.type=e.type,t.assignees=e.assignees,t.response=e.response}return t.issueComment.description=t.createGithubTeamResponse(),t}changeFilter(e,t){return e.pipe(Og(),D(e=>PH(t,[RH.ID,RH.TITLE],this.issueService,e)))}getDupIssueList(){return this.issueService.issues$.pipe(D(e=>e.filter(e=>this.issue.id!==e.id&&this.issue.teamAssigned.id===e.teamAssigned.id)))}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(vq),Go(rY),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-duplicate-of-component"]],viewQuery:function(e,t){if(1&e&&(Iu(PA,7),Iu(LD,7)),2&e){let e;Au(e=Pu())&&(t.duplicateOfSelection=e.first),Au(e=Pu())&&(t.duplicatedCheckbox=e.first)}},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:14,vars:12,consts:[["labelPosition","after",3,"disabled","checked","change"],[1,"mat-title"],["style","float: right","mat-icon-button","",3,"visibility","click",4,"ngIf"],["placeholder","-",1,"no-arrow",2,"width","100%",3,"value","selectionChange","openedChange"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value"],[1,"duplicate-dropdown-issuedetails",3,"ngStyle"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","display: inline-block; color: #f44336",4,"ngIf"],[1,"mat-caption",2,"display","inline-block","color","#f44336"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-checkbox",0),la("change",function(e){return t.handleCheckboxChange(e)}),Ko(2,"span",1),Fa(3,"A Duplicate Of:"),Jo(),Jo(),$o(4,cz,3,2,"button",2),Ko(5,"mat-select",3),la("selectionChange",function(e){return t.updateDuplicateStatus(e)})("openedChange",function(e){return t.handleSelectionOpenChange(e)}),Ko(6,"mat-option"),Xo(7,"ngx-mat-select-search",4),Jo(),Xo(8,"mat-select-trigger"),$o(9,pz,7,11,"mat-option",5),_u(10,"async"),Jo(),Ko(11,"div"),$o(12,mz,3,3,"span",6),$o(13,fz,2,0,"span",6),Jo(),Jo()),2&e&&(fs(1),Zo("disabled",!t.permissions.isTeamResponseEditable()&&!t.permissions.isTutorResponseEditable())("checked",t.issue.duplicated),fs(3),Zo("ngIf",t.permissions.isIssueLabelsEditable()),fs(1),Ea("display",t.isEditing?"block":"none"),Zo("value",t.issue.duplicateOf),fs(2),Zo("formControl",t.searchFilterCtrl),fs(2),Zo("ngForOf",yu(10,10,t.filteredDuplicateIssueList)),fs(3),Zo("ngIf",t.issue.duplicated),fs(1),Zo("ngIf",!t.issue.duplicated))},directives:[LD,gd,PA,mM,uq,Jw,Pk,IA,md,oD,cL,BA,Sd],pipes:[Cd],styles:[".mat-checkbox-disabled .mat-checkbox-label{color:#000}.duplicate-dropdown-issuedetails{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom!important}\n"],encapsulation:2}),e})(),_z=(()=>{class e{constructor(e,t,i){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.issueUpdated=new vu}ngOnInit(){}handleChangeOfUnsureCheckbox(e){let t=!1;e.checked&&(t=!0);const i=this.issue.clone(this.phaseService.currentPhase);i.unsure=t,this.issueService.updateIssue(i).subscribe(e=>{this.issueUpdated.emit(e)},e=>{this.errorHandlingService.handleError(e)})}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-unsure-checkbox"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:3,vars:1,consts:[["labelPosition","before",3,"checked","change"],[1,"mat-title"]],template:function(e,t){1&e&&(Ko(0,"mat-checkbox",0),la("change",function(e){return t.handleChangeOfUnsureCheckbox(e)}),Ko(1,"span",1),Fa(2," Unsure "),Jo(),Jo()),2&e&&Zo("checked",t.issue.unsure)},directives:[LD],styles:[".mat-checkbox-disabled[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{color:#000}"]}),e})(),yz=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,mq,_q,fq,pq,yq,DP,dq,hq,iw.forChild(),gq]]}),e})();!function(e,t,i){const n=e.\u0275cmp;n.directiveDefs=()=>t.map($e),n.pipeDefs=()=>i.map(We)}(Hq,[gd,gI,tN,ZL,xH,IH,vU,wU,BU,VU,tz,uz,VH,lU,gz,_z],[Cd]);let bz=(()=>{class e{constructor(e,t,i){this.location=e,this.router=t,this.dialogService=i,this.modalDialogMessages=["Do you wish to leave the page?","You have unsaved changes that will be discarded."],this.yesButtonDialogMessage="Yes, I wish to leave",this.noButtonDialogMessage="No, I don't wish to leave"}openDialog(){return this.dialogService.openUserConfirmationModal(this.modalDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed()}canDeactivate(e,t,i,n){if(e.canDeactivate&&!e.canDeactivate()&&"/"!==n.url){const e=this.router.createUrlTree([],t).toString();return this.location.go(e),this.openDialog()}return _h(!0)}}return e.\u0275fac=function(t){return new(t||e)(Tn(rd),Tn(fb),Tn($q))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vz=(()=>{class e{constructor(e){this.route=e,this.issueComponents=[Nq.TESTER_POST,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})();function wz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title required. "),Jo())}function kz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot contain only whitespaces. "),Jo())}function Sz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot exceed 256 characters. "),Jo())}function Tz(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",256-(null==e.title.value?null:e.title.value.length)," characters remaining. ")}}let Ez=(()=>{class e{constructor(e,t,i,n,r){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.labelService=n,this.router=r,this.isFormPending=!1}ngOnInit(){this.newIssueForm=this.formBuilder.group({title:["",[Cw.required,Cw.maxLength(256),e=>e.value&&""===e.value.trim()?{whitespace:!0}:null]],description:[""],severity:["",Cw.required],type:["",Cw.required]}),this.submitButtonText="Submit"}submitNewIssue(e){this.newIssueForm.invalid||(this.isFormPending=!0,this.issueService.createIssue(this.title.value,tj.updateDescription(this.description.value),this.severity.value,this.type.value).pipe(Yg(()=>this.isFormPending=!1)).subscribe(t=>{this.issueService.updateLocalStore(t),this.router.navigateByUrl(`phaseBugReporting/issues/${t.id}`),e.resetForm()},e=>{this.errorHandlingService.handleError(e)}))}canDeactivate(){return!(this.isAttributeEditing(this.title)||this.isAttributeEditing(this.description)||this.isAttributeEditing(this.severity)||this.isAttributeEditing(this.type))}isAttributeEditing(e){return null!==e.value&&""!==e.value}get title(){return this.newIssueForm.get("title")}get description(){return this.newIssueForm.get("description")}get severity(){return this.newIssueForm.get("severity")}get type(){return this.newIssueForm.get("type")}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(bj),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-new-issue"]],decls:22,vars:14,consts:[[1,"mat-display-1","title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"form"],[1,"row"],[1,"column","left"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],[4,"ngIf"],[2,"margin","10px 0 10px 0"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],["type","submit","mat-stroked-button","","color","primary",1,"submit-new-bug-report",2,"float","right",3,"disabled"],[1,"column","right"],[1,"severity-dropdown"],["initialValue","","attributeName","severity",3,"dropdownForm"],[1,"bug-dropdown"],["initialValue","","attributeName","type",3,"dropdownForm"]],template:function(e,t){if(1&e){const e=na();Ko(0,"h1",0),Fa(1,"New Issue"),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.submitNewIssue(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"div",5),Ko(7,"mat-form-field"),Xo(8,"input",6),$o(9,wz,2,0,"mat-error",7),$o(10,kz,2,0,"mat-error",7),$o(11,Sz,2,0,"mat-error",7),$o(12,Tz,2,1,"mat-hint",7),Jo(),Ko(13,"div",8),Ko(14,"app-comment-editor",9),la("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),Jo(),Jo(),Ko(15,"button",10),Fa(16),Jo(),Jo(),Ko(17,"div",11),Ko(18,"div",12),Xo(19,"app-label-dropdown",13),Jo(),Ko(20,"div",14),Xo(21,"app-label-dropdown",15),Jo(),Jo(),Jo(),Jo(),Jo()}2&e&&(fs(2),Zo("formGroup",t.newIssueForm),fs(7),Zo("ngIf",t.title.errors&&t.title.errors.required&&(t.title.touched||t.title.dirty)),fs(1),Zo("ngIf",t.title.errors&&t.title.errors.whitespace),fs(1),Zo("ngIf",t.title.errors&&t.title.errors.maxlength),fs(1),Zo("ngIf",(null==t.title.value?null:t.title.value.length)>=206),fs(2),Zo("id","description")("commentField",t.description)("commentForm",t.newIssueForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),fs(1),Zo("disabled",!t.newIssueForm.valid||t.isFormPending),fs(1),qa(" ",t.submitButtonText," "),fs(3),Zo("dropdownForm",t.newIssueForm),fs(2),Zo("dropdownForm",t.newIssueForm))},directives:[Ok,Xw,Fk,NC,kw,SL,Jw,qk,Hk,zk,gd,yH,oD,rU,xC,OC],styles:[".form[_ngcontent-%COMP%]{width:80%;margin:0 auto}mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:75%}.right[_ngcontent-%COMP%]{width:25%}"]}),e})(),xz=(()=>{class e{constructor(e,t){this.snackBarRef=e,this.data=t}}return e.\u0275fac=function(t){return new(t||e)(Go(XI),Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-undo-action"]],decls:4,vars:1,consts:[[2,"display","inline-block","max-width","300px"],["mat-button","","color","accent",2,"float","right","margin-top","8px",3,"click"]],template:function(e,t){1&e&&(Ko(0,"p",0),Fa(1),Jo(),Ko(2,"button",1),la("click",function(){return t.snackBarRef.dismissWithAction()}),Fa(3," Undo "),Jo()),2&e&&(fs(1),qa(" ",t.data.message," "))},directives:[oD],encapsulation:2}),e})();function Mz(e,t,i){return i.splice(e*t,t)}function Cz(e,t){return String(e||"").toUpperCase(){let e=Object.values(this.issueService.issues$.getValue()).reverse();return this.defaultFilter&&(e=e.filter(this.defaultFilter)),e=function(e,t){if(!e.active)return t;const i="asc"===e.direction?1:-1;return t.sort((t,n)=>{switch(e.active){case"type":return i*function(e,t){return Dz(nj[e],nj[t])}(t.type,n.type);case"severity":return i*function(e,t){return Dz(ij[e],ij[t])}(t.severity,n.severity);case"assignees":return i*Cz(t.assignees.join(", "),n.assignees.join(", "));case"teamAssigned":return i*Cz(t.teamAssigned.id,n.teamAssigned.id);case"Todo Remaining":return-i*Dz(t.numOfUnresolvedDisputes(),n.numOfUnresolvedDisputes());case"id":return i*Dz(t.id,n.id);default:return i*Cz(t[e.active],n[e.active])}})}(this.sort,e),e=this.getFilteredTeamData(e),e=PH(this.filter,this.displayedColumn,this.issueService,e),e=function(e,t){e.length=t.length;let i=Mz(e.pageIndex,e.pageSize,t);return 0===i.length&&(e.pageIndex-=1,i=Mz(e.pageIndex,e.pageSize,t)),i}(this.paginator,e),e})).subscribe(e=>{this.issuesSubject.next(e)})}get filter(){return this.filterChange.value}set filter(e){this.filterChange.next(e)}get teamFilter(){return this.teamFilterChange.value}set teamFilter(e){this.teamFilterChange.next(e),this.issueService.setIssueTeamFilter(this.teamFilterChange.value)}getFilteredTeamData(e){return e.filter(e=>!this.teamFilter||"All Teams"===this.teamFilter||e.teamAssigned.id===this.teamFilter)}}class Oz{constructor(){this.sortActiveId="",this.sortDirection="",this.pageSize=20,this.pageIndex=0}}let Az=(()=>{class e{constructor(){this._tableSettingsMap={}}getTableSettings(e){return this._tableSettingsMap[e]||new Oz}setTableSettings(e,t){this._tableSettingsMap[e]=t}clearTableSettings(){this._tableSettingsMap={}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Iz=(()=>{class e{constructor(e){this.el=e,this.element=e}get pageSize(){const e=sessionStorage.getItem(this.key)||this.element.pageSize;return Number(e)}set pageSize(e){const t=String(e);sessionStorage.setItem(this.key,t)}ngOnInit(){this.key=this.paginatorLocalStorage+"-PageSize",this.element.pageSize=this.pageSize,this.element.page.subscribe(e=>{this.pageSize=e.pageSize})}}return e.\u0275fac=function(t){return new(t||e)(Go(sI))},e.\u0275dir=Ke({type:e,selectors:[["","paginatorLocalStorage",""]],inputs:{paginatorLocalStorage:"paginatorLocalStorage"}}),e})();function Rz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," ID "),Jo())}function Pz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",21),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(2),ja(e.id)}}function Yz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Title "),Jo())}function Fz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"a",22),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(1),Zo("routerLink","issues/"+e.id),fs(1),qa(" ",e.title," ")}}function jz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Team "),Jo())}function qz(e,t){if(1&e&&(Ko(0,"mat-cell"),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),qa(" ",e.teamAssigned&&e.teamAssigned.id||"-"," ")}}function Nz(e,t){1&e&&(ea(0,23),$o(1,jz,2,0,"mat-header-cell",2),$o(2,qz,2,1,"mat-cell",3),ta())}function Hz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Type "),Jo())}function Uz(e,t){1&e&&(Ko(0,"span",27),la("click",function(e){return e.stopPropagation()}),Ko(1,"mat-icon",28),Fa(2,"arrow_right_alt"),Jo(),Jo())}function zz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("type",e.teamChosenType))),fs(1),qa(" ",e.teamChosenType," ")}}function Bz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),$o(3,Uz,3,0,"span",25),$o(4,zz,2,2,"span",26),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngStyle",i.labelService.setLabelStyle(i.labelService.getColorOfLabel("type",e.type))),fs(1),qa(" ",e.type||"-"," "),fs(1),Zo("ngIf",e.teamChosenType&&e.teamChosenType!=e.type),fs(1),Zo("ngIf",e.teamChosenType&&e.teamChosenType!=e.type)}}function Vz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Severity "),Jo())}function $z(e,t){1&e&&(Ko(0,"span",30),la("click",function(e){return e.stopPropagation()}),Ko(1,"mat-icon",28),Fa(2,"arrow_right_alt"),Jo(),Jo())}function Wz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("severity",e.teamChosenSeverity))),fs(1),qa(" ",e.teamChosenSeverity," ")}}function Gz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),$o(3,$z,3,0,"span",29),$o(4,Wz,2,2,"span",26),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngStyle",i.labelService.setLabelStyle(i.labelService.getColorOfLabel("severity",e.severity))),fs(1),qa(" ",e.severity||"-"," "),fs(1),Zo("ngIf",e.teamChosenSeverity&&e.teamChosenSeverity!=e.severity),fs(1),Zo("ngIf",e.teamChosenSeverity&&e.teamChosenSeverity!=e.severity)}}function Zz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Response "),Jo())}function Qz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("response",e.response))),fs(1),qa(" ",e.response," ")}}function Kz(e,t){1&e&&(Ko(0,"span",32),Ko(1,"mat-icon",33),Fa(2,"warning"),Jo(),Jo())}function Jz(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,Qz,2,2,"span",26),$o(2,Kz,3,0,"span",31),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",e.response),fs(1),Zo("ngIf",!e.response)}}function Xz(e,t){1&e&&(Ko(0,"mat-header-cell",34),Fa(1," Assignees "),Jo())}function eB(e,t){if(1&e&&(Ko(0,"span",21),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit;fs(1),qa(" ",e.assignees.join(", ")," ")}}function tB(e,t){1&e&&(Ko(0,"span",37),Ko(1,"mat-icon",38),Fa(2," warning "),Jo(),Jo())}function iB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,eB,2,1,"span",35),$o(2,tB,3,0,"span",36),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",0!==e.assignees.length),fs(1),Zo("ngIf",0===e.assignees.length)}}function nB(e,t){1&e&&(Ko(0,"mat-header-cell"),Fa(1," Duplicates "),Jo())}function rB(e,t){1&e&&(Ko(0,"div"),Fa(1,"-"),Jo())}const sB=function(e){return[e]};function oB(e,t){if(1&e&&(Ko(0,"mat-chip-list",41),Ko(1,"mat-chip",42),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(1),Zo("routerLink",pu(3,sB,"issues/"+e.id))("matTooltip",e.title),fs(1),qa(" #",e.id," ")}}function aB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,rB,2,0,"div",39),_u(2,"async"),$o(3,oB,3,5,"mat-chip-list",40),_u(4,"async"),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngIf",0===yu(2,2,i.issueService.getDuplicateIssuesFor(e)).length),fs(2),Zo("ngForOf",yu(4,4,i.issueService.getDuplicateIssuesFor(e)))}}function lB(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Todo Remaining "),Jo())}function uB(e,t){1&e&&(Ko(0,"span"),Ko(1,"font",44),Fa(2,"All tasks are completed"),Jo(),Jo())}function cB(e,t){if(1&e&&(Ko(0,"span"),Ko(1,"font",45),Fa(2),Jo(),Jo()),2&e){const e=pa().$implicit,t=pa();fs(2),Na("",e.issueDisputes.length-t.todoFinished(e),"/",e.issueDisputes.length," tasks pending.")}}function dB(e,t){if(1&e&&Xo(0,"progress",46),2&e){const e=pa().$implicit;_a("value",pa().todoFinished(e)),_a("max",e.issueDisputes.length)}}function hB(e,t){1&e&&(Ko(0,"span"),Fa(1," No Todo List for this issue "),Jo())}function pB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,uB,3,0,"span",39),$o(2,cB,3,2,"span",39),$o(3,dB,1,2,"progress",43),$o(4,hB,2,0,"span",39),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngIf",i.isTodoListChecked(e)&&e.issueDisputes.length>0),fs(1),Zo("ngIf",!i.isTodoListChecked(e)),fs(1),Zo("ngIf",e.issueDisputes.length>0),fs(1),Zo("ngIf",0===e.issueDisputes.length)}}function mB(e,t){1&e&&(Ko(0,"mat-header-cell",34),Fa(1,"Response"),Jo())}function fB(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1," Disagree "),Jo()),2&e){const e=pa(2);Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel("response","Rejected")))}}function gB(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1," Agree "),Jo()),2&e){const e=pa(2);Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel("response","Accepted")))}}function _B(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,fB,2,1,"span",26),$o(2,gB,2,1,"span",26),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",e.testerDisagree),fs(1),Zo("ngIf",!e.testerDisagree)}}function yB(e,t){1&e&&(Ko(0,"mat-header-cell"),Fa(1," Actions "),Jo())}function bB(e,t){if(1&e){const e=na();Ko(0,"button",54),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().viewIssueInBrowser(i.id,t)}),Ko(1,"mat-icon"),Fa(2,"open_in_new"),Jo(),Jo()}}function vB(e,t){if(1&e){const e=na();Ko(0,"button",55),la("click",function(){Yt(e);const t=pa().$implicit;return pa().logIssueRespondRouting(t.id)}),Ko(1,"mat-icon"),Fa(2,"feedback"),Jo(),Jo()}2&e&&Zo("routerLink","issues/"+pa().$implicit.id)}function wB(e,t){1&e&&(Ko(0,"button",57),Ko(1,"mat-icon"),Fa(2,"edit"),Jo(),Jo())}function kB(e,t){if(1&e&&$o(0,wB,3,0,"button",56),2&e){const e=pa(2);Zo("ngIf",e.permissions.isIssueEditable()&&e.isActionVisible(e.action_buttons.FIX_ISSUE))}}function SB(e,t){if(1&e){const e=na();Ko(0,"button",58),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().markAsResponded(i,t)}),Ko(1,"mat-icon"),Fa(2,"check_circle"),Jo(),Jo()}}function TB(e,t){if(1&e){const e=na();Ko(0,"button",59),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().markAsPending(i,t)}),Ko(1,"mat-icon"),Fa(2,"cancel"),Jo(),Jo()}}function EB(e,t){if(1&e){const e=na();Ko(0,"button",60),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().openDeleteDialog(i.id,t),t.stopPropagation()}),Ko(1,"mat-icon"),Fa(2,"delete_outline"),Jo(),Jo()}}function xB(e,t){1&e&&Xo(0,"mat-spinner",61),2&e&&Zo("diameter",25)}function MB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,bB,3,0,"button",47),$o(2,vB,3,1,"button",48),$o(3,kB,1,1,"ng-template",null,49,qu),$o(5,SB,3,0,"button",50),$o(6,TB,3,0,"button",51),$o(7,EB,3,0,"button",52),$o(8,xB,1,1,"mat-spinner",53),Jo()),2&e){const e=t.$implicit,i=Wo(4),n=pa();fs(1),Zo("ngIf",n.isActionVisible(n.action_buttons.VIEW_IN_WEB)),fs(1),Zo("ngIf",n.isResponseEditable()&&!e.status&&n.isActionVisible(n.action_buttons.RESPOND_TO_ISSUE))("ngIfElse",i),fs(3),Zo("ngIf",n.isResponseEditable()&&e.status&&n.isActionVisible(n.action_buttons.MARK_AS_RESPONDED)),fs(1),Zo("ngIf",("Student"===n.userService.currentUser.role||"Admin"===n.userService.currentUser.role)&&n.isActionVisible(n.action_buttons.MARK_AS_PENDING)),fs(1),Zo("ngIf",n.permissions.isIssueDeletable()&&!n.issuesPendingDeletion[e.id]&&n.isActionVisible(n.action_buttons.DELETE_ISSUE)),fs(1),Zo("ngIf",n.issuesPendingDeletion[e.id]&&n.isActionVisible(n.action_buttons.DELETE_ISSUE))}}function CB(e,t){1&e&&Xo(0,"mat-header-row")}function DB(e,t){if(1&e){const e=na();Ko(0,"mat-row",62),la("click",function(){const t=Yt(e).$implicit;return pa().logIssueEditRouting(t.id)}),Jo()}2&e&&Zo("routerLink","issues/"+t.$implicit.id)}function LB(e,t){1&e&&(Ko(0,"mat-card",63),Xo(1,"mat-progress-spinner",64),Jo())}const OB=function(){return[10,20,50]};var IB=(()=>(function(e){e[e.VIEW_IN_WEB=0]="VIEW_IN_WEB",e[e.MARK_AS_RESPONDED=1]="MARK_AS_RESPONDED",e[e.MARK_AS_PENDING=2]="MARK_AS_PENDING",e[e.RESPOND_TO_ISSUE=3]="RESPOND_TO_ISSUE",e[e.FIX_ISSUE=4]="FIX_ISSUE",e[e.DELETE_ISSUE=5]="DELETE_ISSUE"}(IB||(IB={})),IB))();let RB=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c=null){this.userService=e,this.permissions=t,this.labelService=i,this.githubService=n,this.issueService=r,this.issueTableSettingsService=s,this.phaseService=o,this.errorHandlingService=a,this.logger=l,this.dialogService=u,this.snackBar=c,this.snackBarAutoCloseTime=3e3,this.filters=void 0,this.action_buttons=IB,this.deleteIssueModalMessages=["Do you wish to delete this issue?","This action is irreversible!"],this.yesButtonModalMessage="Yes, I wish to delete this issue",this.noButtonModalMessage="No, I don't wish to delete this issue"}ngOnInit(){this.issues=new Lz(this.issueService,this.sort,this.paginator,this.headers,this.filters),this.issuesPendingDeletion={},this.tableSettings=this.issueTableSettingsService.getTableSettings(this.table_name)}ngAfterViewInit(){setTimeout(()=>{this.issues.loadIssues()})}sortChange(e){this.tableSettings.sortActiveId=e.active,this.tableSettings.sortDirection=e.direction,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}pageChange(e){this.tableSettings.pageSize=e.pageSize,this.tableSettings.pageIndex=e.pageIndex,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}isActionVisible(e){return this.actions.includes(e)}markAsResponded(e,t){this.logger.info(`IssueTablesComponent: Marking Issue ${e.id} as Responded`);const i=e.clone(this.phaseService.currentPhase);i.status=rj.Done,this.issueService.updateIssue(i).subscribe(e=>{this.issueService.updateLocalStore(e)},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation()}isResponseEditable(){return this.permissions.isTeamResponseEditable()||this.permissions.isTesterResponseEditable()}markAsPending(e,t){this.logger.info(`IssueTablesComponent: Marking Issue ${e.id} as Pending`);const i=e.clone(this.phaseService.currentPhase);i.status=rj.Incomplete,this.issueService.updateIssue(i).subscribe(e=>{this.issueService.updateLocalStore(e)},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation()}logIssueRespondRouting(e){this.logger.info(`IssueTablesComponent: Proceeding to Respond to Issue ${e}`)}logIssueEditRouting(e){this.logger.info(`IssueTablesComponent: Proceeding to Edit Issue ${e}`)}todoFinished(e){return e.issueDisputes.length-e.numOfUnresolvedDisputes()}isTodoListChecked(e){return e.issueDisputes&&0===e.numOfUnresolvedDisputes()}viewIssueInBrowser(e,t){this.logger.info(`IssueTablesComponent: Opening Issue ${e} on Github`),this.githubService.viewIssueInBrowser(e,t)}deleteIssue(e,t){this.logger.info(`IssueTablesComponent: Deleting Issue ${e}`),this.issuesPendingDeletion=Object.assign(Object.assign({},this.issuesPendingDeletion),{[e]:!0}),this.issueService.deleteIssue(e).pipe(Yg(()=>{const t=(0,HP._T)(this.issuesPendingDeletion,["symbol"==typeof e?e:e+""]);this.issuesPendingDeletion=t})).subscribe(e=>{},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation();let i=null;i=this.snackBar.openFromComponent(xz,{data:{message:`Deleted issue ${e}`},duration:this.snackBarAutoCloseTime}),i.onAction().subscribe(()=>{this.undeleteIssue(e,t)})}undeleteIssue(e,t){this.logger.info(`IssueTablesComponent: Undeleting Issue ${e}`),this.issueService.undeleteIssue(e).subscribe(e=>{},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation(),this.snackBar.open(`Restored issue ${e}`,"",{duration:this.snackBarAutoCloseTime})}openDeleteDialog(e,t){this.dialogService.openUserConfirmationModal(this.deleteIssueModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(i=>{i&&(this.logger.info(`IssueTablesComponent: Deleting issue ${e}`),this.deleteIssue(e,t))})}}return e.\u0275fac=function(t){return new(t||e)(Go(fY),Go(vq),Go(bj),Go(dY),Go(Tj),Go(Az),Go(Sj),Go(rY),Go(iY),Go($q),Go(sR))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-tables"]],viewQuery:function(e,t){if(1&e&&(Iu(dR,7),Iu(sI,7)),2&e){let e;Au(e=Pu())&&(t.sort=e.first),Au(e=Pu())&&(t.paginator=e.first)}},inputs:{headers:"headers",actions:"actions",filters:"filters",table_name:"table_name"},decls:38,vars:14,consts:[["matSort","",1,"mat-elevation-z8",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","title"],["matColumnDef","teamAssigned",4,"ngIf"],["matColumnDef","type"],["matColumnDef","severity"],["matColumnDef","response"],["matColumnDef","assignees"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","duplicatedIssues"],[4,"matHeaderCellDef"],["matColumnDef","Todo Remaining"],["matColumnDef","testerDisagree"],["matColumnDef","actions"],[4,"matHeaderRowDef"],["style","cursor: pointer",3,"routerLink","click",4,"matRowDef","matRowDefColumns"],["style","display: flex; justify-content: center; align-items: center",4,"ngIf"],[3,"paginatorLocalStorage","pageSize","pageSizeOptions","pageIndex","page"],["mat-sort-header",""],[2,"cursor","default",3,"click"],[1,"no-underline","link-grey-dark","title-wrap",3,"routerLink"],["matColumnDef","teamAssigned"],[3,"ngStyle","click"],["style","display: inline; padding: 1px 2px",3,"click",4,"ngIf"],[3,"ngStyle","click",4,"ngIf"],[2,"display","inline","padding","1px 2px",3,"click"],[1,"arrow-right"],["style","display: inline; margin: 3px",3,"click",4,"ngIf"],[2,"display","inline","margin","3px",3,"click"],["style","margin-left: 10%",4,"ngIf"],[2,"margin-left","10%"],["matTooltip","Should not be empty","matTooltipPosition","above","color","warn"],["mat-header-cell","","mat-sort-header",""],["style","cursor: default",3,"click",4,"ngIf"],["style","margin-left: 5%",4,"ngIf"],[2,"margin-left","5%"],["matTooltip","We strongly recommend assigning all issues to someone","matTooltipPosition","above",2,"color","#ffab40"],[4,"ngIf"],["style","display: inline-block; margin-left: 5px",4,"ngFor","ngForOf"],[2,"display","inline-block","margin-left","5px"],["matTooltipPosition","above",2,"font-size","12px","cursor","pointer",3,"routerLink","matTooltip"],["role","progressbar","style","width: 100%","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",3,"value","max",4,"ngIf"],["color","green"],["color","red"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",2,"width","100%",3,"value","max"],["mat-button","","matTooltip","View this issue on GitHub","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Respond to this issue",3,"routerLink","click",4,"ngIf","ngIfElse"],["tryEditIssue",""],["mat-button","","color","primary","style","transform: scale(0.8)","matTooltip","Mark this issue as Responded",3,"click",4,"ngIf"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","warn","matTooltip","Delete this issue","style","transform: scale(0.8)",3,"click",4,"ngIf"],["color","warn","style","display: inline; padding-right: 30px; margin-left: 5px",3,"diameter",4,"ngIf"],["mat-button","","matTooltip","View this issue on GitHub",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","accent","matTooltip","Respond to this issue",2,"transform","scale(0.8)",3,"routerLink","click"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Edit this issue",4,"ngIf"],["mat-button","","color","accent","matTooltip","Edit this issue",2,"transform","scale(0.8)"],["mat-button","","color","primary","matTooltip","Mark this issue as Responded",2,"transform","scale(0.8)",3,"click"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","warn","matTooltip","Delete this issue",2,"transform","scale(0.8)",3,"click"],["color","warn",2,"display","inline","padding-right","30px","margin-left","5px",3,"diameter"],[2,"cursor","pointer",3,"routerLink","click"],[2,"display","flex","justify-content","center","align-items","center"],["color","primary","mode","indeterminate","diameter","50","strokeWidth","5"]],template:function(e,t){1&e&&(Ko(0,"mat-table",0),la("matSortChange",function(e){return t.sortChange(e)}),ea(1,1),$o(2,Rz,2,0,"mat-header-cell",2),$o(3,Pz,3,1,"mat-cell",3),ta(),ea(4,4),$o(5,Yz,2,0,"mat-header-cell",2),$o(6,Fz,3,2,"mat-cell",3),ta(),$o(7,Nz,3,0,"ng-container",5),ea(8,6),$o(9,Hz,2,0,"mat-header-cell",2),$o(10,Bz,5,4,"mat-cell",3),ta(),ea(11,7),$o(12,Vz,2,0,"mat-header-cell",2),$o(13,Gz,5,4,"mat-cell",3),ta(),ea(14,8),$o(15,Zz,2,0,"mat-header-cell",2),$o(16,Jz,3,2,"mat-cell",3),ta(),ea(17,9),$o(18,Xz,2,0,"mat-header-cell",10),$o(19,iB,3,2,"mat-cell",3),ta(),ea(20,11),$o(21,nB,2,0,"mat-header-cell",12),$o(22,aB,5,6,"mat-cell",3),ta(),ea(23,13),$o(24,lB,2,0,"mat-header-cell",2),$o(25,pB,5,4,"mat-cell",3),ta(),ea(26,14),$o(27,mB,2,0,"mat-header-cell",10),$o(28,_B,3,2,"mat-cell",3),ta(),ea(29,15),$o(30,yB,2,0,"mat-header-cell",12),$o(31,MB,9,7,"mat-cell",3),ta(),$o(32,CB,1,0,"mat-header-row",16),Fa(33,"> "),$o(34,DB,1,1,"mat-row",17),Jo(),$o(35,LB,2,0,"mat-card",18),_u(36,"async"),Ko(37,"mat-paginator",19),la("page",function(e){return t.pageChange(e)}),Jo()),2&e&&(Zo("dataSource",t.issues)("matSortActive",t.tableSettings.sortActiveId)("matSortDirection",t.tableSettings.sortDirection),fs(7),Zo("ngIf","Student"!==t.userService.currentUser.role),fs(25),Zo("matHeaderRowDef",t.headers),fs(2),Zo("matRowDefColumns",t.headers),fs(1),Zo("ngIf",yu(36,11,t.issues.isLoading$)),fs(2),Zo("paginatorLocalStorage",t.table_name)("pageSize",t.tableSettings.pageSize)("pageSizeOptions",hu(13,OB))("pageIndex",t.tableSettings.pageIndex))},directives:[wR,dR,TR,SR,kR,gd,MR,CR,sI,Iz,ER,_R,xR,yb,Sd,cL,BA,md,VD,qD,_b,oD,gI,DR,LR,_D,fI],pipes:[Cd],styles:[".mat-table[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-width:1000px}.mat-paginator[_ngcontent-%COMP%]{min-width:1000px}.mat-column-id[_ngcontent-%COMP%]{flex:0 1 5%}.mat-column-type[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-responseTag[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-assignees[_ngcontent-%COMP%]{word-wrap:normal}.mat-column-actions[_ngcontent-%COMP%]{overflow-x:auto;text-align:center!important}.mat-header-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-icon.arrow-right[_ngcontent-%COMP%]{cursor:default;vertical-align:middle}.mat-cell.mat-column-type[_ngcontent-%COMP%]{flex-wrap:wrap}.mat-cell.mat-column-actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{min-width:32px}.mat-column-type[_ngcontent-%COMP%]{flex-basis:12px}.title-wrap[_ngcontent-%COMP%]{overflow-wrap:anywhere}"]}),e})();function PB(e,t){1&e&&(Ko(0,"button",8),Fa(1," New Issue "),Jo())}const YB=[{path:"phaseBugReporting",component:(()=>{class e{constructor(e,t){this.permissions=e,this.userService=t,this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.DELETE_ISSUE,IB.FIX_ISSUE]}ngOnInit(){}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(vq),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-bug-reporting"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:13,vars:4,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],[1,"grid-flush-right"],["mat-stroked-button","","class","create-new-bug-report-button","color","primary","routerLink","issues/new",4,"ngIf"],["table_name","tableBugReporting",3,"headers","actions"],["mat-stroked-button","","color","primary","routerLink","issues/new",1,"create-new-bug-report-button"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Ko(9,"mat-grid-tile"),Ko(10,"div",5),$o(11,PB,2,0,"button",6),Jo(),Jo(),Jo(),Xo(12,"app-issue-tables",7),Jo()),2&e&&(fs(5),qa(" ","Student"===t.userService.currentUser.role?"Issues you posted":"All Issues"," "),fs(6),Zo("ngIf",t.permissions.isIssueCreatable()),fs(1),Zo("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[FO,DO,NC,SL,gd,RB,oD,_b],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:20%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:35%}.mat-column-type[_ngcontent-%COMP%]{width:25%}.mat-column-severity[_ngcontent-%COMP%]{width:23%}"]}),e})(),canActivate:[$j]},{path:"phaseBugReporting/issues/new",component:Ez,canActivate:[$j],canDeactivate:[bz]},{path:"phaseBugReporting/issues/:issue_id",component:vz,canActivate:[$j],canDeactivate:[bz]}];let FB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(YB)],Lb]}),e})(),jB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[FB,DP,dq,Wj,yz,iw.forChild(),Gj,hq]]}),e})(),qB=(()=>{class e{constructor(e,t,i,n){this.route=e,this.userService=t,this.permissions=i,this.issueService=n,this.issueComponents=[Nq.TESTER_POST,Nq.TEAM_RESPONSE,Nq.ISSUE_DISPUTE,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.RESPONSE_LABEL,Nq.DUPLICATE,Nq.UNSURE_CHECKBOX]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_),Go(fY),Go(vq),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})();function NB(e,t){1&e&&(Ko(0,"button",11),Ko(1,"mat-icon",12),Fa(2," settings "),Jo(),Jo()),2&e&&(pa(),Zo("matMenuTriggerFor",Wo(6)))}function HB(e,t){if(1&e){const e=na();Ko(0,"button",13),la("click",function(){const t=Yt(e).$implicit;return pa().updateDisplayedTeam(t)}),Ko(1,"span"),Fa(2),Jo(),Jo()}if(2&e){const e=t.$implicit;Zo("disabled",e===pa().teamFilter),fs(2),qa(" ",e," ")}}const UB=[{path:"phaseModeration",component:(()=>{class e{constructor(e,t,i){this.issueService=e,this.userService=t,this.dataService=i,this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.TODO,RH.ACTIONS],this.teamFilter="All Teams",this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE]}ngOnInit(){this.issueService.setIssueTeamFilter(this.teamFilter)}applyFilter(e){this.table.issues.filter=e}get teamList(){const e=this.dataService.getTeams();switch(oj[kY.phaseModeration][this.userService.currentUser.role]){case sj.FilterByTeamAssigned:return["All Teams",...this.userService.currentUser.allocatedTeams.map(e=>e.id)];case sj.NoFilter:return["All Teams",...e]}}updateDisplayedTeam(e){this.teamFilter=e,this.table.issues.teamFilter=this.teamFilter}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY),Go(mY))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-moderation"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:18,vars:5,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableModeration",3,"headers","actions"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"div",0),Ko(2,"span",1),Fa(3),Jo(),$o(4,NB,3,1,"button",2),Ko(5,"mat-menu",null,3),$o(7,HB,3,2,"button",4),Jo(),Jo(),Ko(8,"mat-grid-list",5),Ko(9,"mat-grid-tile"),Ko(10,"div",6),Ko(11,"h1",7),Fa(12,"Issues Submitted by Students"),Jo(),Jo(),Jo(),Xo(13,"br"),Ko(14,"mat-grid-tile"),Ko(15,"mat-form-field",8),Ko(16,"input",9),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(17,"app-issue-tables",10),Jo()),2&e&&(fs(3),qa(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),fs(1),Zo("ngIf",t.teamList),fs(3),Zo("ngForOf",t.teamList),fs(10),Zo("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[gd,uA,md,FO,DO,NC,SL,RB,oD,mA,cL,sA],styles:[".mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-Todo-Remaining[_ngcontent-%COMP%]{width:20%}.mat-column-actions[_ngcontent-%COMP%]{width:10%;text-align:center}"]}),e})(),canActivate:[$j]},{path:"phaseModeration/issues/:issue_id",component:qB,canActivate:[$j],canDeactivate:[bz]}];let zB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(UB)],Lb]}),e})(),BB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zB,DP,dq,Wj,yz,iw.forChild(),Gj]]}),e})(),VB=(()=>{class e{constructor(e,t,i){this.issueService=e,this.route=t,this.permissions=i,this.issueComponents=[Nq.TESTER_POST,Nq.TEAM_RESPONSE,Nq.NEW_TEAM_RESPONSE,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.RESPONSE_LABEL,Nq.ASSIGNEE,Nq.DUPLICATE]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(W_),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})(),$B=(()=>{class e{constructor(e,t,i){this.issueService=e,this.permissions=t,this.userService=i,this.actionButtons=[IB.VIEW_IN_WEB,IB.RESPOND_TO_ISSUE,IB.MARK_AS_RESPONDED,IB.FIX_ISSUE],this.displayedColumns=i.currentUser.role!==pY.Student?[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){const e=e=>!this.issueService.hasTeamResponse(e.id)||!e.status||e.status===rj.Incomplete;this.filter=t=>e(t)&&(e=>!e.duplicateOf)(t)&&(e=>!e.status||!e.teamResponseError)(t)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(vq),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-pending"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Pending Response"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:26%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:10%}.mat-column-type[_ngcontent-%COMP%]{width:12%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-duplicateOf[_ngcontent-%COMP%]{width:12%}"]}),e})(),WB=(()=>{class e{constructor(e,t){this.issueService=e,this.userService=t,this.actionButtons=[IB.VIEW_IN_WEB,IB.MARK_AS_PENDING,IB.FIX_ISSUE],this.displayedColumns=t.currentUser.role===pY.Student?[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){this.filter=e=>(e=>this.issueService.hasTeamResponse(e.id))(e)&&!e.duplicateOf&&e.status===rj.Done}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-responded"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Responded"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:11%}.mat-column-severity[_ngcontent-%COMP%]{width:6%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:6%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.grid-flush-right[_ngcontent-%COMP%]{position:absolute;right:5px}"]}),e})(),GB=(()=>{class e{constructor(e,t,i){this.issueService=e,this.userService=t,this.permissions=i,this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE],this.displayedColumns=t.currentUser.role===pY.Student?[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){this.filter=e=>{const t=(e=>this.issueService.hasTeamResponse(e.id))(e)&&!!e.duplicateOf&&(e=>!!this.issueService.issues$.getValue().filter(t=>t.duplicateOf===e.id).length)(e),i=!!e.status&&(e=>!!e.teamResponseError)(e);return t||i}}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-faulty"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Faulty Issues"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:7%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:15%;text-align:center}"]}),e})();function ZB(e,t){1&e&&(Ko(0,"button",6),Ko(1,"mat-icon",7),Fa(2," settings "),Jo(),Jo()),2&e&&(pa(),Zo("matMenuTriggerFor",Wo(6)))}function QB(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){const t=Yt(e).$implicit;return pa().updateDisplayedTeam(t)}),Ko(1,"span"),Fa(2),Jo(),Jo()}if(2&e){const e=t.$implicit;Zo("disabled",e===pa().teamFilter),fs(2),qa(" ",e," ")}}const KB=[{path:"phaseTeamResponse",component:(()=>{class e{constructor(e,t,i){this.userService=e,this.dataService=t,this.issueService=i,this.teamFilter="All Teams"}ngOnInit(){this.issueService.setIssueTeamFilter(this.teamFilter)}get teamList(){const e=this.dataService.getTeams();switch(oj[kY.phaseTeamResponse][this.userService.currentUser.role]){case sj.FilterByTeamAssigned:return["All Teams",...this.userService.currentUser.allocatedTeams.map(e=>e.id)];case sj.NoFilter:return["All Teams",...e]}}updateDisplayedTeam(e){this.teamFilter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(fY),Go(mY),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-team-response"]],decls:11,vars:6,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],[3,"teamFilter"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"div",0),Ko(2,"span",1),Fa(3),Jo(),$o(4,ZB,3,1,"button",2),Ko(5,"mat-menu",null,3),$o(7,QB,3,2,"button",4),Jo(),Jo(),Xo(8,"app-issues-pending",5),Xo(9,"app-issues-responded",5),Xo(10,"app-issues-faulty",5),Jo()),2&e&&(fs(3),qa(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),fs(1),Zo("ngIf",t.teamList),fs(3),Zo("ngForOf",t.teamList),fs(1),Zo("teamFilter",t.teamFilter),fs(1),Zo("teamFilter",t.teamFilter),fs(1),Zo("teamFilter",t.teamFilter))},directives:[gd,uA,md,$B,WB,GB,oD,mA,cL,sA],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:80px;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:40%}.mat-column-type[_ngcontent-%COMP%]{width:30%}.mat-column-severity[_ngcontent-%COMP%]{width:12%}"]}),e})(),canActivate:[$j]},{path:"phaseTeamResponse/issues/:issue_id",component:VB,canActivate:[$j],canDeactivate:[bz]}];let JB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(KB)],Lb]}),e})(),XB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[JB,DP,dq,Wj,yz,iw.forChild(),Gj]]}),e})(),eV=(()=>{class e{constructor(e){this.route=e,this.issueComponents=[Nq.TESTER_POST,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.TEAM_RESPONSE,Nq.TESTER_RESPONSE]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[""]}),e})(),tV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.RESPOND_TO_ISSUE,IB.MARK_AS_RESPONDED,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>(e=>!e.status||e.status===rj.Incomplete)(e)&&(e=>!!e.issueComment)(e)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-pending"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Pending Response"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),iV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.TESTER_DISAGREE,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.MARK_AS_PENDING,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>(e=>e.status===rj.Done)(e)&&(e=>!!e.issueComment)(e)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-responded"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Responded"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),nV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>e.testerResponseError}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-faulty"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Faulty Issues"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),rV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB]}ngOnInit(){this.filter=e=>e.teamAccepted}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-accepted"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseAccepted",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Accepted by Dev Team (No Action Required)"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})();const sV=[{path:"phaseTesterResponse",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-tester-response"]],decls:5,vars:0,template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-issue-pending"),Xo(2,"app-issue-responded"),Xo(3,"app-issue-faulty"),Xo(4,"app-issue-accepted"),Jo())},directives:[tV,iV,nV,rV],styles:[""]}),e})(),canActivate:[$j]},{path:"phaseTesterResponse/issues/:issue_id",component:eV,canActivate:[$j],canDeactivate:[bz]}];let oV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(sV)],Lb]}),e})(),aV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,oV,DP,yz,Gj,iw.forChild()]]}),e})();const lV=[{path:"",loadChildren:()=>Vj},{path:"phaseBugReporting",loadChildren:()=>jB,canLoad:[$j]},{path:"phaseTeamResponse",loadChildren:()=>XB,canLoad:[$j]},{path:"phaseTesterResponse",loadChildren:()=>aV,canLoad:[$j]},{path:"phaseModeration",loadChildren:()=>BB,canLoad:[$j]},{path:"**",redirectTo:""}];let uV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forRoot(lV)],Lb]}),e})();function cV(e,t){if(1&e){const e=na();Ko(0,"button",12),la("click",function(){return Yt(e),pa().goBack()}),Ko(1,"mat-icon"),Fa(2,"arrow_back_ios"),Jo(),Jo()}}function dV(e,t){if(1&e&&(Ko(0,"span",13),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" (",e.getPhaseDescription(e.phaseService.currentPhase),") ")}}const hV=function(e){return{color:"green",visibility:e}};function pV(e,t){if(1&e){const e=na();Ko(0,"button",18),la("click",function(){const t=Yt(e).$implicit;return pa(2).routeToSelectedPhase(t)}),Ko(1,"span"),Ko(2,"mat-icon",19),Fa(3,"done"),Jo(),Fa(4),Jo(),Jo()}if(2&e){const e=t.$implicit,i=pa(2);fs(2),Zo("ngStyle",pu(2,hV,i.phaseService.currentPhase===e?"visible":"hidden")),fs(2),qa(" ",i.getPhaseDescription(e)," ")}}function mV(e,t){if(1&e&&(Ko(0,"div"),Ko(1,"button",14),Ko(2,"mat-icon",15),Fa(3,"expand_more"),Jo(),Jo(),Ko(4,"mat-menu",null,16),$o(6,pV,5,4,"button",17),Jo(),Jo()),2&e){const e=Wo(5),t=pa();fs(1),Zo("matMenuTriggerFor",e),fs(5),Zo("ngForOf",t.phaseService.sessionData.openPhases)}}function fV(e,t){if(1&e){const e=na();Ko(0,"button",20),la("click",function(){return Yt(e),pa().viewBrowser()}),Ko(1,"mat-icon"),Fa(2,"open_in_new"),Jo(),Jo()}}function gV(e,t){if(1&e){const e=na();Ko(0,"button",21),la("click",function(){return Yt(e),pa().reload()}),Fa(1," Sync "),Ko(2,"mat-icon"),Fa(3,"refresh"),Jo(),Jo()}}function _V(e,t){1&e&&(Ko(0,"div",22),Ko(1,"span",23),Fa(2,"Sync"),Jo(),Xo(3,"mat-spinner",24),Jo()),2&e&&(fs(3),Zo("diameter",20))}function yV(e,t){if(1&e){const e=na();Ko(0,"button",25),la("click",function(t){return Yt(e),pa().openLogOutDialog(),t.stopPropagation()}),Fa(1),Ko(2,"mat-icon",26),Fa(3,"exit_to_app"),Jo(),Jo()}if(2&e){const e=pa();fs(1),qa(" (",e.userService.currentUser.loginId,") ")}}let bV=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c,d){this.router=e,this.auth=t,this.phaseService=i,this.userService=n,this.logger=r,this.location=s,this.githubEventService=o,this.issueService=a,this.errorHandlingService=l,this.githubService=u,this.dialogService=c,this.issueTableSettingsService=d,this.isReloadButtonDisabled=!1,this.ISSUE_FILTER="/issues?q=is:issue+is:open",this.TUTORIAL_LABEL="+label:tutorial.",this.TEAM_LABEL="+label:team.",this.EXCLUDE_DUPLICATE="+-label:duplicate",this.logOutDialogMessages=["Do you wish to log out?"],this.yesButtonDialogMessage="Yes, I wish to log out",this.noButtonDialogMessage="No, I don't wish to log out",e.events.pipe(bh(e=>e instanceof Bg),wS()).subscribe(e=>{this.prevUrl=e[0].urlAfterRedirects})}ngOnInit(){}routeToSelectedPhase(e){this.phaseService.currentPhase!==kY[e]&&(this.phaseService.currentPhase=kY[e],this.githubService.storePhaseDetails(this.phaseService.getPhaseOwner(this.phaseService.currentPhase),this.phaseService.sessionData[e]),this.githubService.reset(),this.issueService.reset(!1),this.reload(),this.issueTableSettingsService.clearTableSettings(),this.router.navigateByUrl(this.phaseService.currentPhase))}isBackButtonShown(){return`/${this.phaseService.currentPhase}`!==this.router.url&&"/"!==this.router.url&&!this.router.url.startsWith("/?code")}isReloadButtonShown(){return"/phaseBugReporting/issues/new"!==this.router.url}isOpenUrlButtonShown(){return this.phaseService.currentPhase===kY.phaseBugReporting||this.userService.currentUser.role===pY.Student||"All Teams"!==this.issueService.getIssueTeamFilter()||this.router.url.includes("/issues")}getVersion(){return IP.version}getPhaseDescription(e){return kj[e]}goBack(){this.prevUrl===`/${this.phaseService.currentPhase}/issues/new`?this.router.navigate(["/phaseBugReporting"]):this.location.back()}viewBrowser(){const e=this.router.url.substring(1),t=e.indexOf("/");let i;i=t<0?this.ISSUE_FILTER.concat(this.getTeamFilterString()):e.substring(t),window.open("https://github.com/".concat(this.githubService.getRepoURL()).concat(i))}openIssueTracker(){window.open("https://github.com/CATcher-org/CATcher/issues")}getTeamFilterString(){if(this.phaseService.currentPhase===kY.phaseBugReporting||this.phaseService.currentPhase===kY.phaseTesterResponse)return"";this.userService.currentUser.team&&this.issueService.setIssueTeamFilter(this.userService.currentUser.team.id);const e=this.issueService.getIssueTeamFilter().split("-"),t=this.TUTORIAL_LABEL.concat(`${e[0]}-${e[1]}`).concat(this.TEAM_LABEL).concat(e[2]);return this.phaseService.currentPhase===kY.phaseModeration?t:this.EXCLUDE_DUPLICATE.concat(t)}reload(){this.isReloadButtonDisabled=!0,this.githubEventService.reloadPage().subscribe(e=>e,e=>{this.errorHandlingService.handleError(e,()=>this.githubEventService.reloadPage())}),setTimeout(()=>{this.isReloadButtonDisabled=!1},3e3)}logOut(){this.auth.logOut()}openLogOutDialog(){this.dialogService.openUserConfirmationModal(this.logOutDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed().subscribe(e=>{e&&(this.logger.info(`HeaderComponent: Logging out from ${this.userService.currentUser.loginId}`),this.logOut())})}exportLogFile(){this.logger.exportLogFile()}}return e.\u0275fac=function(t){return new(t||e)(Go(fb),Go(Mj),Go(Sj),Go(fY),Go(iY),Go(rd),Go(Ej),Go(Tj),Go(rY),Go(dY),Go($q),Go(Az))},e.\u0275cmp=Ve({type:e,selectors:[["app-layout-header"]],decls:17,vars:9,consts:[["color","primary",2,"position","sticky","position","-webkit-sticky","top","0","z-index","1000"],["mat-icon-button","","class","mat-toolbar mat-primary back-button","style","transform: scale(0.9)",3,"click",4,"ngIf"],[1,"mat-toolbar","mat-primary",2,"text-decoration","none",3,"routerLink"],["id","phase-descriptor","style","margin-left: 10px",4,"ngIf"],[4,"ngIf"],[2,"flex","1 1 auto"],["mat-button","","matTooltip","Download CATcher Log",3,"click"],["mat-button","","matTooltip","Give feedback about CATcher",3,"click"],["mat-button","","matTooltip","View current page on GitHub",3,"click",4,"ngIf"],["mat-button","","matTooltip","Synchronize with Github data",3,"click",4,"ngIf"],["class","sync-spinner",4,"ngIf"],["mat-button","","matTooltip","Log out",3,"click",4,"ngIf"],["mat-icon-button","",1,"mat-toolbar","mat-primary","back-button",2,"transform","scale(0.9)",3,"click"],["id","phase-descriptor",2,"margin-left","10px"],["mat-button","",3,"matMenuTriggerFor"],[2,"color","white"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"ngStyle"],["mat-button","","matTooltip","View current page on GitHub",3,"click"],["mat-button","","matTooltip","Synchronize with Github data",3,"click"],[1,"sync-spinner"],[2,"font-size","14px","margin-right","7px"],[1,"white-spinner",3,"diameter"],["mat-button","","matTooltip","Log out",3,"click"],[2,"margin-left","2px"]],template:function(e,t){1&e&&(Ko(0,"mat-toolbar",0),$o(1,cV,3,0,"button",1),Ko(2,"a",2),Fa(3),Jo(),$o(4,dV,2,1,"span",3),$o(5,mV,7,2,"div",4),Xo(6,"span",5),Ko(7,"button",6),la("click",function(){return t.exportLogFile()}),Ko(8,"mat-icon"),Fa(9,"receipt"),Jo(),Jo(),Ko(10,"button",7),la("click",function(){return t.openIssueTracker()}),Ko(11,"mat-icon"),Fa(12,"mail"),Jo(),Jo(),$o(13,fV,3,0,"button",8),$o(14,gV,4,0,"button",9),$o(15,_V,4,1,"div",10),$o(16,yV,4,1,"button",11),Jo()),2&e&&(fs(1),Zo("ngIf",t.isBackButtonShown()),fs(1),Zo("routerLink",t.phaseService.currentPhase),fs(1),qa("CATcher v",t.getVersion(),""),fs(1),Zo("ngIf",t.auth.isAuthenticated()),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.phaseService.sessionData.openPhases.length>1),fs(8),Zo("ngIf",t.auth.isAuthenticated()&&t.isOpenUrlButtonShown()),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&!t.isReloadButtonDisabled),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&t.isReloadButtonDisabled),fs(1),Zo("ngIf",t.auth.isAuthenticated()))},directives:[SP,gd,yb,oD,BA,cL,mA,uA,md,sA,Sd,gI],encapsulation:2}),e})(),vV=(()=>{class e{constructor(e,t){this.errorHandlingService=t,this.NOT_CONNECTED_ERROR=new Error("You are not connected to the internet."),e.info("AppComponent: AppConfig",IP),e.info("AppComponent: Mode web")}ngAfterViewInit(){this.addListenerForNetworkOffline()}addListenerForNetworkOffline(){window.addEventListener("offline",e=>{this.errorHandlingService.handleError(this.NOT_CONNECTED_ERROR)},!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(iY),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"container"]],template:function(e,t){1&e&&(Xo(0,"app-layout-header"),Ko(1,"div",0),Xo(2,"router-outlet"),Jo())},directives:[bV,vb],styles:[".container[_ngcontent-%COMP%]{padding:30px;min-height:87.9vh}"]}),e})();var wV=(()=>(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(wV||(wV={})),wV))();let kV=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.router=e,this.ngZone=t,this.githubService=i,this.userService=n,this.issueService=r,this.phaseService=s,this.dataService=o,this.githubEventService=a,this.titleService=l,this.logger=u,this.authStateSource=new Gf(wV.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new Gf(void 0)}storeOAuthAccessToken(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}reset(){this.accessToken.next(void 0),this.changeAuthState(wV.NotAuthenticated),this.ngZone.run(()=>this.router.navigate([""]))}logOut(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}isAuthenticated(){return this.authStateSource.getValue()===wV.Authenticated}changeAuthState(e){if(e===wV.Authenticated){const e=`${Date.now()}-${NP()}`;this.issueService.setSessionId(e),this.logger.info(`MockAuthService: Successfully authenticated with session: ${e}`)}this.authStateSource.next(e)}setTitleWithPhaseDetail(){const e=i(4147),t=`${e.name} ${e.version} - ${this.phaseService.getPhaseDetail()}`;this.titleService.setTitle(t)}setLandingPageTitle(){const e=i(4147);this.titleService.setTitle(`${e.name} ${e.version}`)}startOAuthProcess(){this.accessToken.next("FabricatedToken")}}return e.\u0275fac=function(t){return new(t||e)(Tn(fb),Tn(cc),Tn(dY),Tn(fY),Tn(Tj),Tn(Sj),Tn(mY),Tn(Ej),Tn(gh),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function SV(e,t,i,n,r,s,o,a,l,u){return IP.test?new kV(e,t,i,n,r,s,o,a,l,u):(console.log(u),new Mj(e,t,i,n,r,s,o,a,l,u))}const TV=Object.assign({},Object.assign(Object.assign({},Object.assign(Object.assign({},LP),{version:OP.version,production:!1,test:!1,clientId:"0cbc5e651d8b01e36687",origin:"http://localhost:4200"})),{test:!0,role:"student",username:"CAT-Tester",team:"CS2103T-W12-3"})),{Octokit:EV}=i(60837);let xV="",MV="",CV="",DV="",LV=new EV,OV=(()=>{class e{constructor(){this.numIssuesCreated=0}storeOAuthAccessToken(e){LV=new EV({auth:()=>`Token ${e}`})}storeOrganizationDetails(e,t){MV=e,DV=t}storePhaseDetails(e,t){CV=t,xV=e}isRepositoryPresent(e,t){return _h(!0)}createIssue(e,t,i){const n=i.map(e=>new $P({name:e})),r={number:this.numIssuesCreated,title:e,body:t,labels:n};return this.numIssuesCreated++,_h(new WP(r))}fetchAllLabels(){return _h(bj.getRequiredLabelsAsArray(!0).map(e=>({name:e.labelCategory?`${e.labelCategory}.${e.labelValue}`:`${e.labelValue}`,color:`${e.labelColor}`})))}fetchEventsForRepo(){return _h([])}fetchDataFile(){return _h({data:`role,name,team\n${TV.role},${TV.username},${TV.team}\n`})}fetchLatestRelease(){const e=i(4147);return _h({html_url:`www.github.com/CATcher-org/releases/v${e.version}`,tag_name:`v${e.version}`})}fetchSettingsFile(){return _h({openPhases:[kY.phaseBugReporting,kY.phaseTeamResponse,kY.phaseTesterResponse,kY.phaseModeration],[kY.phaseBugReporting]:"undefined",[kY.phaseTeamResponse]:"undefined",[kY.phaseTesterResponse]:"undefined",[kY.phaseModeration]:"undefined"})}fetchAuthenticatedUser(){return _h({login:TV.username,name:TV.username})}getProfilesData(){const e=[{profileName:"CATcher",repoName:"CATcher-org/public_data"}],t={json:()=>Promise.resolve({profiles:e})};return Promise.resolve(t)}reset(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})();function AV(e,t,i){return IP.test?new OV:new dY(e,t,i)}new hY({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:pY.Student},{loginId:"003-samuel",role:pY.Student},{loginId:"damithc",role:pY.Student},{loginId:"ptvrajsk",role:pY.Student}]}),new hY({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:pY.Student}]});const IV=(new Map([["CS2103T-W12-3",new hY({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:pY.Student},{loginId:"003-samuel",role:pY.Student},{loginId:"damithc",role:pY.Student},{loginId:"ptvrajsk",role:pY.Student}]})],["CS2103T-W12-4",new hY({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:pY.Student}]})]]),{body:"# Team's Response\n\n ## Duplicate status (if any):\n--",created_at:"2020-02-16T18:31:38Z",id:586737495,issue_url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/comments/586737495",user:{login:"testathorStudent",id:46639862,avatar_url:"https://avatars3.githubusercontent.com/u/46639862?v=4",url:"https://api.github.com/users/testathorStudent"}}),RV={body:"# Tutor Moderation\n\n## :question: Issue Type\n\n- [x] Done\n\ntest\n\n
\n## :question: Issue Severity\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
\n## :question: Not Related Question\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
\n",created_at:"2020-08-15T06:39:24Z",id:674357972,issue_url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/26",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/comments/674357972",user:{login:"testathorTutor",id:46640218,avatar_url:"https://avatars2.githubusercontent.com/u/46640218?v=4",url:"https://api.github.com/users/testathorTutor"}},PV={color:"9900cc",name:"type.FunctionalityBug",id:1226647550,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FunctionalityBug"},YV={id:1462485994,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FeatureFlaw",name:"type.FeatureFlaw",color:"d966ff"},FV={id:1226647431,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.DocumentationBug",name:"type.DocumentationBug",color:"d966ff"},jV={id:1226646828,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Low",name:"severity.Low",color:"ffcccc"},qV={id:1226646649,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.High",name:"severity.High",color:"ff6666"},NV={color:"ff9999",name:"severity.Medium",id:1226647149,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Medium"},HV={url:"https://api.github.com/repos/CATcher-org/pe-results/labels/tutorial.CS2103T-W12",name:"tutorial.CS2103T-W12",color:"c2e0c6",id:1226649736},UV={id:1226649835,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/team.3",name:"team.3",color:"d4c5f9"},zV={login:"anubh-v",avatar_url:"https://avatars1.githubusercontent.com/u/35621759?v=4",url:"https://api.github.com/users/anubh-v"},BV={login:"anubh-v",id:35621759,url:"https://api.github.com/users/anubh-v"},VV={login:"geshuming",avatar_url:"https://avatars0.githubusercontent.com/u/43642522?v=4",url:"https://api.github.com/users/geshuming"},$V={login:"geshuming",id:43642522,url:"https://api.github.com/users/geshuming"},WV="# Issue Description\n{original issue description}\n# Team's Response\n{team's response}\n # Disputes\n\n## :question: Issue Type\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n## :question: Issue Severity\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n## :question: Not Related Question\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n\n",GV=(new WP({id:"574085971",number:92,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"App starts to lag when given large amount of input",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/92",user:zV}),new WP({id:"384830567",number:130,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[UV,HV,YV,jV],state:rw.Open,title:"App is sometimes slow",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"573957398",number:32,assignees:[],comments:[],body:"",created_at:"2010-03-12T19:12:02Z",labels:[UV,HV,FV,qV],state:rw.Open,title:"Too many typos",updated_at:"2012-03-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"573957399",number:33,assignees:[],comments:[],body:"",created_at:"2010-04-12T19:12:02Z",labels:[UV,HV,FV,qV],state:rw.Open,title:"Too many typos 2",updated_at:"2012-04-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"551732011",number:91,assignees:[BV,$V],body:"Screen freezes every few minutes",created_at:"2020-01-18T07:01:45Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"Screen freezes",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",user:zV,comments:[IV]}),()=>{const e=((e=new Date(2020,1,1),t=new Date)=>new Date(e.getTime()+Math.random()*(e.getTime()-t.getTime())).toISOString())(),t=Math.round(1e3*Math.random()),i=[jV,NV,qV],n=[PV,YV,FV];return new WP({id:Math.floor(1e9*Math.random()).toString(),number:t,assignees:[],comments:[],body:`Issue No.: ${t}\nSample Content.`,created_at:e,labels:[UV,HV,n[t%3],i[t%3]],state:rw.Open,title:`Random Issue: ${t}`,updated_at:e,url:`https://api.github.com/repos/CATcher-org/pe-results/issues/${t}`,user:zV})});new WP({id:"574674360",number:26,assignees:[$V],body:WV,created_at:"2020-03-03T13:38:32Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"Basic Issue, Three Disputes, Unsure",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]}),new WP({id:"239538360",number:93,assignees:[$V],body:WV,created_at:"2020-10-14T10:28:32Z",labels:[UV,HV,YV,qV],state:rw.Open,title:"Redundant buggy feature",updated_at:"2020-11-25T13:19:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]}),new WP({id:"384756360",number:6,assignees:[$V],body:WV,created_at:"2020-03-26T09:08:12Z",labels:[UV,HV,FV,jV],state:rw.Open,title:"Documentation bug, too many typos",updated_at:"2020-11-10T16:59:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]});let ZV=(()=>{class e{constructor(e,t,i){this.githubService=e,this.phaseService=t,this.dataService=i,this.issueTeamFilter="All Teams",this.isLoading=new Gf(!1),this.issues$=new Gf(new Array)}startPollIssues(){void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=_h(this.reloadAllIssues()).subscribe(e=>this.isLoading.next(!1)))}stopPollIssues(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}pollIssue(e){return _h(this.issues[e])}reloadAllIssues(){return this.initializeData()}getIssue(e){return void 0===this.issues?this.getLatestIssue(e):_h(this.issues[e])}getLatestIssue(e){return this.githubService.fetchIssueGraphql(e).pipe(D(t=>(this.createAndSaveIssueModel(t),this.issues[e])),yg(t=>_h(this.issues[e])))}createIssue(e,t,i,n){const r=[this.createLabel("severity",i),this.createLabel("type",n)],s=new Map([["session",this.sessionId]]),o=vY.embedDataIntoString(t,s);return this.githubService.createIssue(e,o,r).pipe(D(e=>this.createIssueModel(e)))}updateIssue(e){const t=this.phaseService.currentPhase===kY.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),t).pipe(D(t=>(t.comments=e.githubComments,this.createIssueModel(t))))}updateIssueWithComment(e,t){return this.githubService.updateIssueComment(t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}updateTesterResponse(e,t){const i=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),n=e.clone(this.phaseService.currentPhase);return n.status=rj.Done,fw([i,this.updateIssue(n)]).pipe(D(e=>{const[t,i]=e;return i.updateTesterResponse(t),i}))}updateTutorResponse(e,t){return fw([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createTeamResponse(e){const t=e.createGithubTeamResponse();return this.githubService.createIssueComment(e.id,t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}createTutorResponse(e,t){return fw([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createGithubIssueDescription(e){return this.phaseService.currentPhase===kY.phaseModeration?`# Issue Description\n${e.createGithubIssueDescription()}\n# Team's Response\n${e.teamResponse}\n # Disputes\n\n${this.getIssueDisputeString(e.issueDisputes)}\n`:e.createGithubIssueDescription()}getIssueDisputeString(e){let t="";for(const i of e)t+=i.toString();return t}deleteIssue(e){return this.githubService.closeIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.deleteFromLocalStore(t),t}))}deleteFromLocalStore(e){const t=e.id,i=(0,HP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=i,this.issues$.next(Object.values(this.issues))}updateLocalStore(e){this.issues=Object.assign(Object.assign({},this.issues),{[e.id]:e}),this.issues$.next(Object.values(this.issues))}hasTeamResponse(e){return!!this.issues[e].teamResponse}getDuplicateIssuesFor(e){return this.issues$.pipe(D(t=>t.filter(t=>t.duplicateOf===e.id)))}reset(){this.issues=void 0,this.sessionId=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new Gf(!1)}initializeData(){if(null!=this.issues)return _h(Object.values(this.issues));const e=[];if(this.phaseService.currentPhase===kY.phaseBugReporting)for(let t=0;t<10;t++)e.push(GV());for(const t of e)this.createAndSaveIssueModel(t);return _h(Object.values(this.issues))}createAndSaveIssueModel(e){const t=this.createIssueModel(e);return this.updateLocalStore(t),!0}createLabelsForIssue(e){const t=[];if(this.phaseService.currentPhase!==kY.phaseBugReporting&&this.phaseService.currentPhase!==kY.phaseTesterResponse){const i=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial",`${i[0]}-${i[1]}`),this.createLabel("team",i[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}createLabel(e,t){return`${e}.${t}`}extractTeamIdFromGithubIssue(e){return e.findLabel($P.LABELS.tutorial).concat("-").concat(e.findLabel($P.LABELS.team))}createIssueModel(e){switch(this.phaseService.currentPhase){case kY.phaseBugReporting:return tj.createPhaseBugReportingIssue(e);case kY.phaseTeamResponse:return tj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));case kY.phaseTesterResponse:return tj.createPhaseTesterResponseIssue(e);case kY.phaseModeration:return tj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));default:return}}setIssueTeamFilter(e){e&&(this.issueTeamFilter=e)}setSessionId(e){this.sessionId=e}getIssueTeamFilter(){return this.issueTeamFilter}}return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(Sj),Tn(mY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function QV(e,t,i,n,r){return IP.test?new ZV(e,i,n):new Tj(e,t,i,n,r)}function KV(){const e=new zv,t=e.link;return e.link=(i,n,r)=>t.call(e,i,n,r).replace(/^e?' ':' ',{renderer:e,gfm:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!1}}var JV=i(94989),XV=i(66795),e$=i.n(XV),t$=function(){function e(e){var t=e.batchInterval,i=e.batchMax,n=e.batchHandler,r=e.batchKey;this.queuedRequests=new Map,this.batchInterval=t,this.batchMax=i||0,this.batchHandler=n,this.batchKey=r||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,i=(0,Nb.pi)({},e),n=!1,r=this.batchKey(e.operation);return i.observable||(i.observable=new Ub.y$(function(e){t.queuedRequests.has(r)||t.queuedRequests.set(r,[]),n||(t.queuedRequests.get(r).push(i),n=!0),i.next=i.next||[],e.next&&i.next.push(e.next.bind(e)),i.error=i.error||[],e.error&&i.error.push(e.error.bind(e)),i.complete=i.complete||[],e.complete&&i.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(r).length&&t.scheduleQueueConsumption(r),t.queuedRequests.get(r).length===t.batchMax&&t.consumeQueue(r)})),i.observable},e.prototype.consumeQueue=function(e){var t=e||"",i=this.queuedRequests.get(t);if(i){this.queuedRequests.delete(t);var n=i.map(function(e){return e.operation}),r=i.map(function(e){return e.forward}),s=[],o=[],a=[],l=[];i.forEach(function(e,t){s.push(e.observable),o.push(e.next),a.push(e.error),l.push(e.complete)});var u=this.batchHandler(n,r)||Ub.y$.of(),c=function(e){a.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return u.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+o.length);return t.result=e,c(t)}e.forEach(function(e,t){o[t]&&o[t].forEach(function(t){return t(e)})})},error:c,complete:function(){l.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),s}},e.prototype.scheduleQueueConsumption=function(e){var t=this,i=e||"";setTimeout(function(){t.queuedRequests.get(i)&&t.queuedRequests.get(i).length&&t.consumeQueue(i)},this.batchInterval)},e}();!function(e){function t(t){var i=e.call(this)||this,n=t||{},r=n.batchInterval,s=n.batchMax,o=n.batchHandler,a=n.batchKey;return i.batcher=new t$({batchInterval:void 0===r?10:r,batchMax:void 0===s?0:s,batchHandler:void 0===o?function(){return null}:o,batchKey:void 0===a?function(){return""}:a}),t.batchHandler.length<=1&&(i.request=function(e){return i.batcher.enqueueRequest({operation:e})}),i}(0,Nb.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})}}(Hb.i0);class i$ extends qb.ApolloLink{constructor(e,t){super(),this.httpClient=e,this.options=t,this.print=JV.S,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=e=>new qb.y$(t=>{const i=e.getContext(),n=(e,t)=>function(...e){const t=e.find(e=>void 0!==e);return void 0===t?e[e.length-1]:t}(i[e],this.options[e],t),r=n("includeQuery",!0),s=n("includeExtensions",!1),o=n("method","POST"),a=n("uri","graphql"),l=n("withCredentials"),u=n("useMultipart"),c={method:o,url:"function"==typeof a?a(e):a,body:{operationName:e.operationName,variables:e.variables},options:{withCredentials:l,useMultipart:u,headers:this.options.headers}};s&&(c.body.extensions=e.extensions),r&&(c.body.query=this.print(e.query));const d=function(e){let t=e.headers&&e.headers instanceof Th?e.headers:new Th(e.headers);if(e.clientAwareness){const{name:i,version:n}=e.clientAwareness;i&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",i)),n&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",n))}return t}(i);c.options.headers=((e,t)=>e&&t?t.keys().reduce((e,i)=>e.set(i,t.getAll(i)),e):t||e)(c.options.headers,d);const h=((e,t,i)=>{const n=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),r=e.body.length;let s,o=e.options&&e.options.useMultipart;if(o){if(r)return new w(e=>e.error(new Error("File upload is not available when combined with Batching")));if(!n)return new w(e=>e.error(new Error("File upload is not available when GET is used")));s=i(e.body),o=!!s.files.size}let a={};if(r){if(!n)return new w(e=>e.error(new Error("Batching is not available for GET requests")));a={body:e.body}}else{const t=o?s.clone:e.body;a=n?{body:t}:{params:Object.keys(e.body).reduce((t,i)=>{const n=e.body[i];return t[i]=(e=>-1!==["variables","extensions"].indexOf(e.toLowerCase()))(i)?JSON.stringify(n):n,t},{})}}if(o&&n){const e=new FormData;e.append("operations",JSON.stringify(a.body));const t={},i=s.files;let n=0;i.forEach(e=>{t[++n]=e}),e.append("map",JSON.stringify(t)),n=0,i.forEach((t,i)=>{e.append(++n+"",i,i.name)}),a.body=e}return t.request(e.method,e.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},a),e.options))})(c,this.httpClient,e$()).subscribe({next:i=>{e.setContext({response:i}),t.next(i.body)},error:e=>t.error(e),complete:()=>t.complete()});return()=>{h.closed||h.unsubscribe()}})}request(e){return this.requester(e)}}let n$=(()=>{class e{constructor(e){this.httpClient=e}create(e){return new i$(this.httpClient,e)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Uh))},e.\u0275prov=fe({factory:function(){return new e(Tn(Uh))},token:e,providedIn:"root"}),e})(),r$=(()=>{class e{constructor(e,t,i,n,r){this.apollo=e,this.httpLink=t,this.authService=i,this.router=n,this.errorHandlingService=r;const s=zb(()=>({headers:{Accept:"charset=utf-8"}})),o=zb(()=>({headers:{Authorization:`Token ${this.authService.accessToken.getValue()}`}})),a=qb.ApolloLink.from([s,o,this.httpLink.create({uri:"https://api.github.com/graphql"})]),l=new qb.h4({possibleTypes:mw.possibleTypes});this.apollo.create({link:a,cache:l}),this.router.events.subscribe(e=>{e instanceof Hg&&this.errorHandlingService.clearError()})}}return e.\u0275fac=function(t){return new(t||e)(Tn(dv),Tn(n$),Tn(Mj),Tn(fb),Tn(rY))},e.\u0275mod=Ze({type:e,bootstrap:[vV]}),e.\u0275inj=ge({providers:[{provide:dY,useFactory:AV,deps:[rY,dv,iY]},{provide:Mj,useFactory:SV,deps:[fb,cc,dY,fY,Tj,Sj,mY,Ej,gh,iY]},{provide:Tj,useFactory:QV,deps:[dY,fY,Sj,mY,iY]},{provide:Xr,useClass:rY}],imports:[[mh,aV,Wf,Vj,jB,XB,BB,DP,tp,iw.forRoot({markedOptions:{provide:Jv,useFactory:KV}}),uV]]}),e})();IP.production&&function(){if(kc)throw new Error("Cannot enable prod mode after platform setup.");wc=!1}(),hh().bootstrapModule(r$,{preserveWhitespaces:!1}).catch(e=>console.error(e))},57834:function(e,t,i){"use strict";const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,s="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||"undefined"!=typeof global&&global||r||s,a=function(e,...t){if(a.translate){const i=a.translate(e,t);e=i[0],t=i[1]}let i=l(e[0],e.raw[0]);for(let n=1;n0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]{const n=Uint8Array.from({length:t},(t,n)=>i.getUint8(e+n));return s.decode(n)},a=(e,t)=>{const i=t.getUint8(e);return(128&i)>>7==0?1:(224&i)>>5==6?2:(240&i)>>4==14?3:(240&i)>>4==15?4:1},l=(e,t,i)=>{const n=Uint8Array.from({length:t},(t,n)=>i.getUint8(e+n));return s.decode(n)},u=e=>{let t,i=0,n=0;for(;n>=8,n++;i++}return i};var c=(()=>{return(e=c||(c={})).STRING="string",e.ARRAY_BUFFER="arrayBuffer",e.TYPED_ARRAY="typedArray",e.DATA_VIEW="dataView",c;var e})();const d=(e,t=null)=>{let i,n;if("string"==typeof e){const t=r.encode(e);i=new DataView(t.buffer),n=c.STRING}else if(e instanceof ArrayBuffer)i=new DataView(e),n=c.ARRAY_BUFFER;else if((e=>e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array)(e))i=new DataView(e.buffer),n=c.TYPED_ARRAY;else{if(!(e instanceof DataView))throw new Error("Cannot process input. Must be a string, ArrayBuffer, TypedArray, or DataView. but got "+typeof e);i=e,n=c.DATA_VIEW}return{dataView:i,inputType:n,isError:!1,error:null,result:null,data:t,index:0}},h=(e,t)=>ra(qr({},e),{isError:!0,error:t}),p=(e,t)=>ra(qr({},e),{result:t}),m=(e,t)=>ra(qr({},e),{data:t}),f=(e,t,i)=>ra(qr({},e),{result:t,index:i});class g{constructor(e){this.p=e}run(e){const t=d(e),i=this.p(t);return i.isError?{isError:!0,error:i.error,index:i.index,data:i.data}:{isError:!1,result:i.result,index:i.index,data:i.data}}fork(e,t,i){const n=d(e),r=this.p(n);return r.isError?t(r.error,r):i(r.result,r)}map(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?n:p(n,e(n.result))})}chain(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?n:e(n.result).p(n)})}ap(e){const t=this.p;return new g(function(i){if(i.isError)return i;const n=t(i);if(n.isError)return n;const r=e.p(n);return r.isError?r:p(r,r.result(n.result))})}errorMap(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?h(n,e({isError:!0,error:n.error,index:n.index,data:n.data})):n})}errorChain(e){const t=this.p;return new g(function(i){const n=t(i);if(n.isError){const{error:t,index:i,data:r}=n;return e({isError:!0,error:t,index:i,data:r}).p(ra(qr({},n),{isError:!1}))}return n})}mapFromData(e){const t=this.p;return new g(i=>{const n=t(i);return n.isError&&n.error?n:p(n,e({isError:!1,result:n.result,data:n.data,index:n.index}))})}chainFromData(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError&&n.error?n:e({result:n.result,data:n.data}).p(n)})}mapData(e){const t=this.p;return new g(function(i){const n=t(i);return m(n,e(n.data))})}static of(e){return new g(t=>p(t,e))}}const _=/[0-9]/,y=/[a-zA-Z]/,b=/ParseError.+Expecting/,v=new g(function(e){return e.isError?e:p(e,e.data)});function w(e){return new g(function(t){return t.isError?t:m(t,e)})}function k(e){return new g(function(t){return t.isError?t:m(t,e(t.data))})}function S(e){return function(t){return w(t).chain(()=>e)}}function T(e){return new g(function(t){let i=t;for(const n of e)i=n.p(i);return i})}function E(e){return new g(function(t){return T([...e].reverse()).p(t)})}function x(e){return new g(function(t){return e(t),t})}function M(e){return function(t){return e.run(t)}}function C(e){return new g(function(t){return t.isError?t:e(t.result).p(t)})}function D(e){return new g(function(t){return t.isError?t:h(t,e)})}const L=g.of;function O(e){return new g(function(t){if(t.isError)return t;const i=e.p(t);return p(ra(qr({},i),{isError:!1}),{isError:i.isError,value:i.isError?i.error:i.result})})}function A(e){return new g(function(t){const i=e();let n,r=t;for(;;){const e=i.next(n),t=e.value;if(e.done)return p(r,t);if(!(t&&t instanceof g))throw new Error(`[coroutine] yielded values must be Parsers, got ${e.value}.`);if(r=t.p(r),r.isError)return r;n=r.result}})}function I(e){if("number"!=typeof e||e<=0)throw new TypeError(`exactly must be called with a number > 0, but got ${e}`);return function(t){return new g(function(i){if(i.isError)return i;const n=[];let r=i;for(let s=0;s`ParseError (position ${t}): Expecting ${e}${i.replace(b,"")}`)}}const R=function(e){return new g(function(t){if(t.isError)return t;const i=[];let n=t;for(;;){const t=e.p(n);if(t.isError)break;if(n=t,i.push(n.result),n.index>=n.dataView.byteLength)break}return p(n,i)})},P=function(e){return new g(function(t){if(t.isError)return t;const i=R(e).p(t);return i.result.length?i:h(t,`ParseError 'many1' (position ${t.index}): Expecting to match at least one value`)})};function Y(e){return new g(function(t){return t.isError?t:p(t,e(t.result))})}function F(e){return new g(function(t){return t.isError?h(t,e(t.error,t.index,t.data)):t})}const j=function(e){if(!e||1!==u(e))throw new TypeError(`char must be called with a single character, but got ${e}`);return new g(function(t){if(t.isError)return t;const{index:i,dataView:n}=t;if(i 1, but got ${e}`);const t=r.encode(e);return new g(function(i){const{index:n,dataView:s}=i;if(s.byteLength-n=1){const i=s.match(e);return i?f(t,i[0],n+r.encode(i[0]).byteLength):h(t,`ParseError (position ${n}): Expecting string matching '${e}', got '${s.slice(0,5)}...'`)}return h(t,`ParseError (position ${n}): Expecting string matching '${e}', but got end of input.`)})}const z=new g(function(e){if(e.isError)return e;const{dataView:t,index:i}=e;if(t.byteLength>i){const n=a(i,t);if(i+n<=t.byteLength){const r=l(i,n,t);return t.byteLength&&r&&_.test(r)?f(e,r,i+n):h(e,`ParseError (position ${i}): Expecting digit, got '${r}'`)}}return h(e,`ParseError (position ${i}): Expecting digit, but got end of input.`)}),B=U(/^[0-9]+/).errorMap(({index:e})=>`ParseError (position ${e}): Expecting digits`),V=new g(function(e){if(e.isError)return e;const{index:t,dataView:i}=e;if(i.byteLength>t){const n=a(t,i);if(t+n<=i.byteLength){const r=l(t,n,i);return i.byteLength&&r&&y.test(r)?f(e,r,t+n):h(e,`ParseError (position ${t}): Expecting letter, got '${r}'`)}}return h(e,`ParseError (position ${t}): Expecting letter, but got end of input.`)}),$=U(/^[a-zA-Z]+/).errorMap(({index:e})=>`ParseError (position ${e}): Expecting letters`);function W(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t;if(i.byteLength>n){const r=a(n,i);if(n+r<=i.byteLength){const s=l(n,r,i);return e.includes(s)?f(t,s,n+r):h(t,`ParseError (position ${n}): Expecting any of the string "${e}", got ${s}`)}}return h(t,`ParseError (position ${n}): Expecting any of the string "${e}", but got end of input.`)})}function G(e){return new g(function(t){if(t.isError)return t;const i={};let n=t;for(const[r,s]of e){const e=s.p(n);if(e.isError)return e;n=e,i[r]=e.result}return p(n,i)})}function Z(e){return new g(function(t){if(t.isError)return t;const i=e.length,n=new Array(i);let r=t;for(let s=0;si.index)&&(i=e)}return i})}function X(e){return function(t){return function(i){return Z([e,i,t]).map(([e,t])=>t)}}}function ee(e){return new g(t=>{if(t.isError)return t;const i=[];let n=t;for(;e.p(n).isError;){const{index:e,dataView:t}=n;if(t.byteLength<=e)return h(n,`ParseError 'everythingUntil' (position ${n.index}): Unexpected end of input.`);const r=t.getUint8(e);r&&(i.push(r),n=f(n,r,e+1))}return p(n,i)})}const te=e=>ee(e).map(e=>s.decode(Uint8Array.from(e))),ie=function(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t,r=e.p(t);return r.isError?f(t,i.getUint8(n),n+1):h(t,`ParseError 'anythingExcept' (position ${n}): Matched '${r.result}' from the exception parser`)})},ne=function(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t,r=e.p(t);if(r.isError){if(n0?h(e,`ParseError 'startOfInput' (position ${t}): Expected start of input'`):e}),le=new g(function(e){if(e.isError)return e;const{dataView:t,index:i,inputType:n}=e;if(i!==t.byteLength){const r=n===c.STRING?String.fromCharCode(t.getUint8(i)):`0x${t.getUint8(i).toString(16).padStart(2,"0")}`;return h(e,`ParseError 'endOfInput' (position ${i}): Expected end of input but got '${r}'`)}return p(e,null)}),ue=U(/^\s+/).errorMap(({index:e})=>`ParseError 'many1' (position ${e}): Expecting to match at least one value`),ce=se(ue).map(e=>e||"");function de(e){return new g(function(t){return e().p(t)})}function he(e){return function(t){return e.chain(()=>t)}}const pe=function(e){return function(t){return e.chain(e=>t.map(()=>e))}};function me(e){return!0===e.isError?Promise.reject({error:e.error,index:e.index,data:e.data}):Promise.resolve(e.result)}function fe(e){if(!0===e.isError){const t=new Error(String(e.error)||"null");throw t.parseIndex=e.index,t.data=e.data,t}return e.result}},30744:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(5202);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return o(e,[])}function o(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var i=[].concat(t,[e]),r=function(e){var t=e[String(n.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var s=r.call(e);if(s!==e)return"string"==typeof s?s:o(s,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var i=Math.min(10,e.length),n=e.length-i,r=[],s=0;s1&&r.push("... ".concat(n," more items")),"["+r.join(", ")+"]"}(e,i);return function(e,t){var i=Object.keys(e);if(0===i.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var i=e.constructor.name;if("string"==typeof i&&""!==i)return i}return t}(e)+"]";var n=i.map(function(i){return i+": "+o(e[i],t)});return"{ "+n.join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}},5202:function(e,t){"use strict";var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=i},10290:function(e,t,i){"use strict";i.d(t,{Ye:function(){return s},WU:function(){return o},UG:function(){return a}});var n=i(5202);function r(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,n.Z&&(e.prototype[n.Z]=t)}var s=function(){function e(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();r(s);var o=function(){function e(e,t,i,n,r,s,o){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=o,this.prev=s,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}r(o)},12032:function(e,t,i){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),i=function(e){for(var t,i=!0,n=!0,r=0,s=null,o=0;os&&r(t[o-1]);)--o;return t.slice(s,o).join("\n")}function r(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],s='"'===e[e.length-1],o="\\"===e[e.length-1],a=!n||s||o||i,l="";return a&&!(n&&r)&&(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,a&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}i.d(t,{W7:function(){return n},LZ:function(){return s}})},94989:function(e,t,i){"use strict";i.d(t,{S:function(){return s}});var n=i(61335),r=i(12032);function s(e){return(0,n.Vn)(e,{leave:o})}var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,i=e.name,n=c("(",l(e.variableDefinitions,", "),")"),r=l(e.directives," "),s=e.selectionSet;return i||r||n||"query"!==t?l([t,l([i,n]),r,s]," "):s},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+c(" = ",e.defaultValue)+c(" ",l(t," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.name,i=e.arguments,n=e.directives,r=e.selectionSet,s=c("",e.alias,": ")+t,o=s+c("(",l(i,", "),")");return o.length>80&&(o=s+c("(\n",d(l(i,"\n")),"\n)")),l([o,l(n," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.directives,i=e.selectionSet;return l(["...",c("on ",e.typeCondition),l(t," "),i]," ")},FragmentDefinition:function(e){var t=e.typeCondition,i=e.variableDefinitions,n=e.directives,r=e.selectionSet;return"fragment ".concat(e.name).concat(c("(",l(i,", "),")")," ")+"on ".concat(t," ").concat(c("",l(n," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var i=e.value;return e.block?(0,r.LZ)(i,"description"===t?"":" "):JSON.stringify(i)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a(function(e){var t=e.operationTypes;return l(["schema",l(e.directives," "),u(t)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return l(["scalar",e.name,l(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.directives,i=e.fields;return l(["type",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")}),FieldDefinition:a(function(e){var t=e.arguments,i=e.type,n=e.directives;return e.name+(p(t)?c("(\n",d(l(t,"\n")),"\n)"):c("(",l(t,", "),")"))+": "+i+c(" ",l(n," "))}),InputValueDefinition:a(function(e){var t=e.directives;return l([e.name+": "+e.type,c("= ",e.defaultValue),l(t," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.directives,i=e.fields;return l(["interface",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")}),UnionTypeDefinition:a(function(e){var t=e.types;return l(["union",e.name,l(e.directives," "),t&&0!==t.length?"= "+l(t," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.values;return l(["enum",e.name,l(e.directives," "),u(t)]," ")}),EnumValueDefinition:a(function(e){return l([e.name,l(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.fields;return l(["input",e.name,l(e.directives," "),u(t)]," ")}),DirectiveDefinition:a(function(e){var t=e.arguments,i=e.repeatable,n=e.locations;return"directive @"+e.name+(p(t)?c("(\n",d(l(t,"\n")),"\n)"):c("(",l(t,", "),")"))+(i?" repeatable":"")+" on "+l(n," | ")}),SchemaExtension:function(e){var t=e.operationTypes;return l(["extend schema",l(e.directives," "),u(t)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,i=e.fields;return l(["extend type",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.directives,i=e.fields;return l(["extend interface",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.types;return l(["extend union",e.name,l(e.directives," "),t&&0!==t.length?"= "+l(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return l(["extend enum",e.name,l(e.directives," "),u(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return l(["extend input",e.name,l(e.directives," "),u(t)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(i))&&void 0!==t?t:""}function u(e){return c("{\n",d(l(e,"\n")),"\n}")}function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+i:""}function d(e){return c(" ",e.replace(/\n/g,"\n "))}function h(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(h)}},61335:function(e,t,i){"use strict";i.d(t,{$_:function(){return o},Vn:function(){return a}});var n=i(30744),r=i(10290),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,a=void 0,u=Array.isArray(e),c=[e],d=-1,h=[],p=void 0,m=void 0,f=void 0,g=[],_=[],y=e;do{var b=++d===c.length,v=b&&0!==h.length;if(b){if(m=0===_.length?void 0:g[g.length-1],p=f,f=_.pop(),v){if(u)p=p.slice();else{for(var w={},k=0,S=Object.keys(p);k dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.2"}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"CATcher","version":"3.5.3","main":"main.js","engines":{"node":">=14.0.0"},"scripts":{"ng":"ng","build:staging":"npm run codegen:gql && ng build --c staging --base-href=https://catcher-org.github.io/CATcher-staging/","build:prod:web":"npm run codegen:gql && ng build --configuration production --base-href=https://CATcher-org.github.io/CATcher/","ng:serve":"npm run codegen:gql && ng serve","ng:serve:web":"npm run ng:serve -- -o","deploy:staging":"npm run build:staging && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","ng:serve:test":"npm run ng:serve -- --configuration=test -o","deploy:web":"npm run build:prod:web && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","test":"npm run codegen:gql && ng test","e2e":"npx playwright test --headed --project=chromium --workers=1","lint":"ng lint","lint:fix":"ng lint --fix","codegen:gql":"graphql-codegen --config codegen.yml","codegen:gql-watch":"graphql-codegen --config -w codegen.yml","pretty-quick":"pretty-quick"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","pre-push":"npm run lint && npm run test"}},"dependencies":{"@angular/animations":"^12.2.17","@angular/cdk":"^12.2.13","@angular/common":"^12.2.17","@angular/compiler":"^12.2.17","@angular/core":"^12.2.17","@angular/forms":"^12.2.17","@angular/localize":"^12.2.17","@angular/material":"^12.2.13","@angular/platform-browser":"^12.2.17","@angular/platform-browser-dynamic":"^12.2.17","@angular/router":"^12.2.17","@apollo/client":"3.3.0","@github/markdown-toolbar-element":"^2.1.1","@octokit/rest":"^16.37.0","ajv":"^6.11.0","apollo-angular":"^2.6.0","arcsecond":"^4.1.0","core-js":"^3.16.4","diff-match-patch":"^1.0.4","graphql":"^15.0.0","karma-spec-reporter":"0.0.32","moment":"^2.24.0","ngx-markdown":"^12.0.1","ngx-mat-select-search":"^3.3.3","rxjs":"6.6.7","tslib":"^2.0.0","uuid":"7.0.3","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"~12.2.18","@angular-eslint/builder":"12.7.0","@angular-eslint/eslint-plugin":"12.7.0","@angular-eslint/eslint-plugin-template":"12.7.0","@angular-eslint/schematics":"12.7.0","@angular-eslint/template-parser":"12.7.0","@angular/cli":"^12.2.18","@angular/compiler-cli":"^12.2.17","@angular/language-service":"^12.2.17","@graphql-codegen/cli":"2.16.4","@graphql-codegen/fragment-matcher":"^1.17.7","@graphql-codegen/typescript":"1.17.7","@graphql-codegen/typescript-document-nodes":"1.17.7","@graphql-codegen/typescript-operations":"^1.18.4","@graphql-codegen/typescript-resolvers":"^1.20.0","@octokit/graphql-schema":"^8.24.0","@playwright/test":"~1.33","@types/dompurify":"^2.3.1","@types/jasmine":"^3.8.2","@types/jasminewd2":"2.0.8","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"4.28.2","@typescript-eslint/parser":"4.28.2","angular-cli-ghpages":"^1.0.0-rc.2","eslint":"^7.26.0","husky":"^4.2.5","jasmine":"^3.9.0","jasmine-core":"~3.8.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.4.2","karma-chrome-launcher":"^3.1.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-firefox-launcher":"^2.1.1","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.1.5","prettier":"2.2.1","pretty-quick":"^3.1.1","scuri":"^0.9.4","ts-node":"^10.9.2","tslint-config-prettier":"^1.18.0","typescript":"4.3.5"}}')}},function(e){e(e.s=69200)}]); \ No newline at end of file + ${aw}`;var mw={possibleTypes:{Actor:["Bot","EnterpriseUserAccount","Mannequin","Organization","User"],Assignable:["Issue","PullRequest"],Assignee:["Bot","Mannequin","Organization","User"],AuditEntry:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],AuditEntryActor:["Bot","Organization","User"],Closable:["Issue","Milestone","Project","PullRequest"],Closer:["Commit","PullRequest"],Comment:["CommitComment","GistComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],Contribution:["CreatedCommitContribution","CreatedIssueContribution","CreatedPullRequestContribution","CreatedPullRequestReviewContribution","CreatedRepositoryContribution","JoinedGitHubContribution","RestrictedContribution"],CreatedIssueOrRestrictedContribution:["CreatedIssueContribution","RestrictedContribution"],CreatedPullRequestOrRestrictedContribution:["CreatedPullRequestContribution","RestrictedContribution"],CreatedRepositoryOrRestrictedContribution:["CreatedRepositoryContribution","RestrictedContribution"],Deletable:["CommitComment","GistComment","IssueComment","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],EnterpriseAuditEntryData:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OrgInviteToBusinessAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry"],EnterpriseMember:["EnterpriseUserAccount","User"],GitObject:["Blob","Commit","Tag","Tree"],GitSignature:["GpgSignature","SmimeSignature","UnknownSignature"],HovercardContext:["GenericHovercardContext","OrganizationTeamsHovercardContext","OrganizationsHovercardContext","ReviewStatusHovercardContext","ViewerHovercardContext"],IpAllowListOwner:["Enterprise","Organization"],IssueOrPullRequest:["Issue","PullRequest"],IssueTimelineItem:["AssignedEvent","ClosedEvent","Commit","CrossReferencedEvent","DemilestonedEvent","IssueComment","LabeledEvent","LockedEvent","MilestonedEvent","ReferencedEvent","RenamedTitleEvent","ReopenedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnsubscribedEvent","UserBlockedEvent"],IssueTimelineItems:["AddedToProjectEvent","AssignedEvent","ClosedEvent","CommentDeletedEvent","ConnectedEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DisconnectedEvent","IssueComment","LabeledEvent","LockedEvent","MarkedAsDuplicateEvent","MentionedEvent","MilestonedEvent","MovedColumnsInProjectEvent","PinnedEvent","ReferencedEvent","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","UserBlockedEvent"],Labelable:["Issue","PullRequest"],Lockable:["Issue","PullRequest"],MemberStatusable:["Organization","Team"],MilestoneItem:["Issue","PullRequest"],Minimizable:["CommitComment","GistComment","IssueComment","PullRequestReviewComment"],Node:["AddedToProjectEvent","App","AssignedEvent","AutomaticBaseChangeFailedEvent","AutomaticBaseChangeSucceededEvent","BaseRefChangedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","Blob","Bot","BranchProtectionRule","CheckRun","CheckSuite","ClosedEvent","CodeOfConduct","CommentDeletedEvent","Commit","CommitComment","CommitCommentThread","ConnectedEvent","ConvertToDraftEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DeployKey","DeployedEvent","Deployment","DeploymentEnvironmentChangedEvent","DeploymentStatus","DisconnectedEvent","Enterprise","EnterpriseAdministratorInvitation","EnterpriseIdentityProvider","EnterpriseRepositoryInfo","EnterpriseServerInstallation","EnterpriseServerUserAccount","EnterpriseServerUserAccountEmail","EnterpriseServerUserAccountsUpload","EnterpriseUserAccount","ExternalIdentity","Gist","GistComment","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IpAllowListEntry","Issue","IssueComment","Label","LabeledEvent","Language","License","LockedEvent","Mannequin","MarkedAsDuplicateEvent","MarketplaceCategory","MarketplaceListing","MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","MentionedEvent","MergedEvent","Milestone","MilestonedEvent","MovedColumnsInProjectEvent","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","Organization","OrganizationIdentityProvider","OrganizationInvitation","Package","PackageFile","PackageTag","PackageVersion","PinnedEvent","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","Project","ProjectCard","ProjectColumn","PublicKey","PullRequest","PullRequestCommit","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewComment","PullRequestReviewThread","Push","PushAllowance","Reaction","ReadyForReviewEvent","Ref","ReferencedEvent","Release","ReleaseAsset","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","Repository","RepositoryInvitation","RepositoryTopic","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","RepositoryVulnerabilityAlert","ReviewDismissalAllowance","ReviewDismissedEvent","ReviewRequest","ReviewRequestRemovedEvent","ReviewRequestedEvent","SavedReply","SecurityAdvisory","SponsorsListing","SponsorsTier","Sponsorship","Status","StatusCheckRollup","StatusContext","SubscribedEvent","Tag","Team","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamDiscussion","TeamDiscussionComment","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry","Topic","TransferredEvent","Tree","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","User","UserBlockedEvent","UserContentEdit","UserStatus"],OauthApplicationAuditEntryData:["OauthApplicationCreateAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry"],OrgRestoreMemberAuditEntryMembership:["OrgRestoreMemberMembershipOrganizationAuditEntryData","OrgRestoreMemberMembershipRepositoryAuditEntryData","OrgRestoreMemberMembershipTeamAuditEntryData"],OrganizationAuditEntry:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],OrganizationAuditEntryData:["MembersCanDeleteReposClearAuditEntry","MembersCanDeleteReposDisableAuditEntry","MembersCanDeleteReposEnableAuditEntry","OauthApplicationCreateAuditEntry","OrgAddBillingManagerAuditEntry","OrgAddMemberAuditEntry","OrgBlockUserAuditEntry","OrgConfigDisableCollaboratorsOnlyAuditEntry","OrgConfigEnableCollaboratorsOnlyAuditEntry","OrgCreateAuditEntry","OrgDisableOauthAppRestrictionsAuditEntry","OrgDisableSamlAuditEntry","OrgDisableTwoFactorRequirementAuditEntry","OrgEnableOauthAppRestrictionsAuditEntry","OrgEnableSamlAuditEntry","OrgEnableTwoFactorRequirementAuditEntry","OrgInviteMemberAuditEntry","OrgInviteToBusinessAuditEntry","OrgOauthAppAccessApprovedAuditEntry","OrgOauthAppAccessDeniedAuditEntry","OrgOauthAppAccessRequestedAuditEntry","OrgRemoveBillingManagerAuditEntry","OrgRemoveMemberAuditEntry","OrgRemoveOutsideCollaboratorAuditEntry","OrgRestoreMemberAuditEntry","OrgRestoreMemberMembershipOrganizationAuditEntryData","OrgUnblockUserAuditEntry","OrgUpdateDefaultRepositoryPermissionAuditEntry","OrgUpdateMemberAuditEntry","OrgUpdateMemberRepositoryCreationPermissionAuditEntry","OrgUpdateMemberRepositoryInvitationPermissionAuditEntry","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","RepositoryVisibilityChangeDisableAuditEntry","RepositoryVisibilityChangeEnableAuditEntry","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],PackageOwner:["Organization","Repository","User"],PermissionGranter:["Organization","Repository","Team"],PinnableItem:["Gist","Repository"],ProfileOwner:["Organization","User"],ProjectCardItem:["Issue","PullRequest"],ProjectOwner:["Organization","Repository","User"],PullRequestTimelineItem:["AssignedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","ClosedEvent","Commit","CommitCommentThread","CrossReferencedEvent","DemilestonedEvent","DeployedEvent","DeploymentEnvironmentChangedEvent","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IssueComment","LabeledEvent","LockedEvent","MergedEvent","MilestonedEvent","PullRequestReview","PullRequestReviewComment","PullRequestReviewThread","ReferencedEvent","RenamedTitleEvent","ReopenedEvent","ReviewDismissedEvent","ReviewRequestRemovedEvent","ReviewRequestedEvent","SubscribedEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnsubscribedEvent","UserBlockedEvent"],PullRequestTimelineItems:["AddedToProjectEvent","AssignedEvent","AutomaticBaseChangeFailedEvent","AutomaticBaseChangeSucceededEvent","BaseRefChangedEvent","BaseRefDeletedEvent","BaseRefForcePushedEvent","ClosedEvent","CommentDeletedEvent","ConnectedEvent","ConvertToDraftEvent","ConvertedNoteToIssueEvent","CrossReferencedEvent","DemilestonedEvent","DeployedEvent","DeploymentEnvironmentChangedEvent","DisconnectedEvent","HeadRefDeletedEvent","HeadRefForcePushedEvent","HeadRefRestoredEvent","IssueComment","LabeledEvent","LockedEvent","MarkedAsDuplicateEvent","MentionedEvent","MergedEvent","MilestonedEvent","MovedColumnsInProjectEvent","PinnedEvent","PullRequestCommit","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewThread","PullRequestRevisionMarker","ReadyForReviewEvent","ReferencedEvent","RemovedFromProjectEvent","RenamedTitleEvent","ReopenedEvent","ReviewDismissedEvent","ReviewRequestRemovedEvent","ReviewRequestedEvent","SubscribedEvent","TransferredEvent","UnassignedEvent","UnlabeledEvent","UnlockedEvent","UnmarkedAsDuplicateEvent","UnpinnedEvent","UnsubscribedEvent","UserBlockedEvent"],PushAllowanceActor:["App","Team","User"],Reactable:["CommitComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],ReferencedSubject:["Issue","PullRequest"],RenamedTitleSubject:["Issue","PullRequest"],RepositoryAuditEntryData:["OrgRestoreMemberMembershipRepositoryAuditEntryData","PrivateRepositoryForkingDisableAuditEntry","PrivateRepositoryForkingEnableAuditEntry","RepoAccessAuditEntry","RepoAddMemberAuditEntry","RepoAddTopicAuditEntry","RepoArchivedAuditEntry","RepoChangeMergeSettingAuditEntry","RepoConfigDisableAnonymousGitAccessAuditEntry","RepoConfigDisableCollaboratorsOnlyAuditEntry","RepoConfigDisableContributorsOnlyAuditEntry","RepoConfigDisableSockpuppetDisallowedAuditEntry","RepoConfigEnableAnonymousGitAccessAuditEntry","RepoConfigEnableCollaboratorsOnlyAuditEntry","RepoConfigEnableContributorsOnlyAuditEntry","RepoConfigEnableSockpuppetDisallowedAuditEntry","RepoConfigLockAnonymousGitAccessAuditEntry","RepoConfigUnlockAnonymousGitAccessAuditEntry","RepoCreateAuditEntry","RepoDestroyAuditEntry","RepoRemoveMemberAuditEntry","RepoRemoveTopicAuditEntry","TeamAddRepositoryAuditEntry","TeamRemoveRepositoryAuditEntry"],RepositoryInfo:["Repository"],RepositoryNode:["CommitComment","CommitCommentThread","Issue","IssueComment","PullRequest","PullRequestCommitCommentThread","PullRequestReview","PullRequestReviewComment","RepositoryVulnerabilityAlert"],RepositoryOwner:["Organization","User"],RequestedReviewer:["Mannequin","Team","User"],ReviewDismissalAllowanceActor:["Team","User"],SearchResultItem:["App","Issue","MarketplaceListing","Organization","PullRequest","Repository","User"],Sponsor:["Organization","User"],Sponsorable:["Organization","User"],Starrable:["Gist","Repository","Topic"],StatusCheckRollupContext:["CheckRun","StatusContext"],Subscribable:["Commit","Issue","PullRequest","Repository","Team","TeamDiscussion"],TeamAuditEntryData:["OrgRestoreMemberMembershipTeamAuditEntryData","TeamAddMemberAuditEntry","TeamAddRepositoryAuditEntry","TeamChangeParentTeamAuditEntry","TeamRemoveMemberAuditEntry","TeamRemoveRepositoryAuditEntry"],TopicAuditEntryData:["RepoAddTopicAuditEntry","RepoRemoveTopicAuditEntry"],UniformResourceLocatable:["Bot","CheckRun","ClosedEvent","Commit","ConvertToDraftEvent","CrossReferencedEvent","Gist","Issue","Mannequin","MergedEvent","Milestone","Organization","PullRequest","PullRequestCommit","ReadyForReviewEvent","Release","Repository","RepositoryTopic","ReviewDismissedEvent","TeamDiscussion","TeamDiscussionComment","User"],Updatable:["CommitComment","GistComment","Issue","IssueComment","Project","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"],UpdatableComment:["CommitComment","GistComment","Issue","IssueComment","PullRequest","PullRequestReview","PullRequestReviewComment","TeamDiscussion","TeamDiscussionComment"]}};function fw(...e){if(1===e.length){const t=e[0];if(l(t))return gw(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return gw(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return gw(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(D(e=>t(...e)))}return gw(e,null)}function gw(e,t){return new w(i=>{const n=e.length;if(0===n)return void i.complete();const r=new Array(n);let s=0,o=0;for(let a=0;a{u||(u=!0,o++),r[a]=e},error:e=>i.error(e),complete:()=>{s++,(s===n||!u)&&(o===n&&i.next(t?t.reduce((e,t,i)=>(e[t]=r[i],e),{}):r),i.complete())}}))}})}i(57834);let _w=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Go(gl),Go(pl))},e.\u0275dir=Ke({type:e}),e})(),yw=(()=>{class e extends _w{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,features:[Oo]}),e})();const bw=new en("NgValueAccessor"),vw={provide:bw,useExisting:ae(()=>kw),multi:!0},ww=new en("CompositionEventMode");let kw=(()=>{class e extends _w{constructor(e,t,i){super(e,t),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Uc()?Uc().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)}}return e.\u0275fac=function(t){return new(t||e)(Go(gl),Go(pl),Go(ww,8))},e.\u0275dir=Ke({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&la("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[sl([vw]),Oo]}),e})();function Sw(e){return null==e||0===e.length}function Tw(e){return null!=e&&"number"==typeof e.length}const Ew=new en("NgValidators"),xw=new en("NgAsyncValidators"),Mw=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Cw{static min(e){return function(e){return t=>{if(Sw(t.value)||Sw(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i{if(Sw(t.value)||Sw(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return Dw(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return Sw(e.value)||Mw.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>Sw(t.value)||!Tw(t.value)?null:t.value.length{if(Sw(e.value))return null;const n=e.value;return t.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(e)}static nullValidator(e){return null}static compose(e){return Fw(e)}static composeAsync(e){return qw(e)}}function Dw(e){return Sw(e.value)?{required:!0}:null}function Lw(e){return t=>Tw(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Ow(e){return null}function Aw(e){return null!=e}function Iw(e){const t=sa(e)?j(e):e;return aa(t),t}function Rw(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Pw(e,t){return t.map(t=>t(e))}function Yw(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Fw(e){if(!e)return null;const t=e.filter(Aw);return 0==t.length?null:function(e){return Rw(Pw(e,t))}}function jw(e){return null!=e?Fw(Yw(e)):null}function qw(e){if(!e)return null;const t=e.filter(Aw);return 0==t.length?null:function(e){return fw(Pw(e,t).map(Iw)).pipe(D(Rw))}}function Nw(e){return null!=e?qw(Yw(e)):null}function Hw(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Uw(e){return e._rawValidators}function zw(e){return e._rawAsyncValidators}function Bw(e){return e?Array.isArray(e)?e:[e]:[]}function Vw(e,t){return Array.isArray(e)?e.includes(t):e===t}function $w(e,t){const i=Bw(t);return Bw(e).forEach(e=>{Vw(i,e)||i.push(e)}),i}function Ww(e,t){return Bw(t).filter(t=>!Vw(e,t))}let Gw=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=jw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Nw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),Zw=(()=>{class e extends Gw{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,features:[Oo]}),e})();class Qw extends Gw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kw{constructor(e){this._cd=e}is(e){var t,i,n;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(n=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===n?void 0:n[e])}}let Jw=(()=>{class e extends Kw{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Qw,2))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&xa("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oo]}),e})(),Xw=(()=>{class e extends Kw{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&xa("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[Oo]}),e})();function ek(e,t){return[...t.path,e]}function tk(e,t){rk(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ok(e,t)})}(e,t),function(e,t){const i=(e,i)=>{t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ok(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const i=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function ik(e,t,i=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),sk(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function nk(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function rk(e,t){const i=Uw(e);null!==t.validator?e.setValidators(Hw(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=zw(e);null!==t.asyncValidator?e.setAsyncValidators(Hw(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();nk(t._rawValidators,r),nk(t._rawAsyncValidators,r)}function sk(e,t){let i=!1;if(null!==e){if(null!==t.validator){const n=Uw(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=zw(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}const n=()=>{};return nk(t._rawValidators,n),nk(t._rawAsyncValidators,n),i}function ok(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ak(e,t){rk(e,t)}function lk(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)}function uk(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ck(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(e=>{e.constructor===kw?i=e:function(e){return Object.getPrototypeOf(e.constructor)===yw}(e)?n=e:r=e}),r||n||i||null}function dk(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const hk="VALID",pk="INVALID",mk="PENDING",fk="DISABLED";function gk(e){return(vk(e)?e.validators:e)||null}function _k(e){return Array.isArray(e)?jw(e):e||null}function yk(e,t){return(vk(t)?t.asyncValidators:e)||null}function bk(e){return Array.isArray(e)?Nw(e):e||null}function vk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class wk{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=_k(this._rawValidators),this._composedAsyncValidatorFn=bk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===hk}get invalid(){return this.status===pk}get pending(){return this.status==mk}get disabled(){return this.status===fk}get enabled(){return this.status!==fk}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=_k(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=bk(e)}addValidators(e){this.setValidators($w(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators($w(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ww(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ww(e,this._rawAsyncValidators))}hasValidator(e){return Vw(this._rawValidators,e)}hasAsyncValidator(e){return Vw(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=mk,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=fk,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=hk,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hk||this.status===mk)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fk:hk}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=mk,this._hasOwnPendingAsyncValidator=!0;const t=Iw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,i){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let n=e;return t.forEach(e=>{n=n instanceof Sk?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Tk&&n.at(e)||null}),n}(this,e)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new vu,this.statusChanges=new vu}_calculateStatus(){return this._allControlsDisabled()?fk:this.errors?pk:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mk)?mk:this._anyControlsHaveStatus(pk)?pk:hk}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){vk(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class kk extends wk{constructor(e=null,t,i){super(gk(t),yk(i,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){dk(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){dk(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Sk extends wk{constructor(e,t,i){super(gk(t),yk(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t instanceof kk?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((e,n)=>{i=t(i,e,n)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Tk extends wk{constructor(e,t,i){super(gk(t),yk(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,i)=>{this.at(i)&&this.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof kk?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Ek={provide:Zw,useExisting:ae(()=>Mk)},xk=(()=>Promise.resolve(null))();let Mk=(()=>{class e extends Zw{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new vu,this.form=new Sk({},jw(e),Nw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xk.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),tk(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xk.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),dk(this._directives,e)})}addFormGroup(e){xk.then(()=>{const t=this._findContainer(e.path),i=new Sk({});ak(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xk.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){xk.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,uk(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10))},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&la("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[sl([Ek]),Oo]}),e})();const Ck={provide:Qw,useExisting:ae(()=>Lk)},Dk=(()=>Promise.resolve(null))();let Lk=(()=>{class e extends Qw{constructor(e,t,i,n){super(),this.control=new kk,this._registered=!1,this.update=new vu,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=ck(0,n)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),lk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ek(this.name,this._parent):[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(){tk(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Dk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,i=""===t||t&&"false"!==t;Dk.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,9),Go(Ew,10),Go(xw,10),Go(bw,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[sl([Ck]),Oo,ct]}),e})(),Ok=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Ak=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const Ik=new en("NgModelWithFormControlWarning"),Rk={provide:Qw,useExisting:ae(()=>Pk)};let Pk=(()=>{class e extends Qw{constructor(e,t,i,n){super(),this._ngModelWarningConfig=n,this.update=new vu,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ck(0,i)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&ik(t,this,!1),tk(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}lk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ik(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10),Go(bw,10),Go(Ik,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[sl([Rk]),Oo,ct]}),e._ngModelWarningSentOnce=!1,e})();const Yk={provide:Zw,useExisting:ae(()=>Fk)};let Fk=(()=>{class e extends Zw{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new vu,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sk(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return tk(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ik(e.control||null,e,!1),dk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,uk(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,i=this.form.get(e.path);t!==i&&(ik(t||null,e),i instanceof kk&&(tk(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ak(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return sk(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rk(this.form,this),this._oldForm&&sk(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Go(Ew,10),Go(xw,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&la("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[sl([Yk]),Oo,ct]}),e})();const jk={provide:Qw,useExisting:ae(()=>qk)};let qk=(()=>{class e extends Qw{constructor(e,t,i,n,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new vu,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=ck(0,n)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),lk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ek(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(Go(Zw,13),Go(Ew,10),Go(xw,10),Go(bw,10),Go(Ik,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[sl([jk]),Oo,ct]}),e._ngModelWarningSentOnce=!1,e})();const Nk={provide:Ew,useExisting:ae(()=>Hk),multi:!0};let Hk=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Dw(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("required",t.required?"":null)},inputs:{required:"required"},features:[sl([Nk])]}),e})();const Uk={provide:Ew,useExisting:ae(()=>zk),multi:!0};let zk=(()=>{class e{constructor(){this._validator=Ow}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this.enabled()?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=this.enabled()?Lw(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):Ow}enabled(){return null!=this.maxlength}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("maxlength",t.enabled()?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[sl([Uk]),ct]}),e})(),Bk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ak]]}),e})(),Vk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[Bk]}),e})(),$k=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ik,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[Bk]}),e})(),Wk=(()=>{class e{group(e,t=null){const i=this._reduceControls(e);let n,r=null,s=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Sk(i,{asyncValidators:s,updateOn:n,validators:r})}control(e,t,i){return new kk(e,t,i)}array(e,t,i){const n=e.map(e=>this._createControl(e));return new Tk(n,t,i)}_reduceControls(e){const t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i])}),t}_createControl(e){return e instanceof kk||e instanceof Sk||e instanceof Tk?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:$k}),e})();function Gk(e){return null!=e&&"false"!=`${e}`}function Zk(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Qk(e){return Array.isArray(e)?e:[e]}function Kk(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Jk(e){return e instanceof pl?e.nativeElement:e}function Xk(e,t,i,r){return n(i)&&(r=i,i=void 0),r?Xk(e,t,i).pipe(D(e=>l(e)?r(...e):r(e))):new w(n=>{eS(e,t,function(e){n.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},n,i)})}function eS(e,t,i,n,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const n=e;e.addEventListener(t,i,r),s=()=>n.removeEventListener(t,i,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const n=e;e.on(t,i),s=()=>n.off(t,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const n=e;e.addListener(t,i),s=()=>n.removeListener(t,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let iS=1;const nS=Promise.resolve(),rS={};function sS(e){return e in rS&&(delete rS[e],!0)}const oS={setImmediate(e){const t=iS++;return rS[t]=!0,nS.then(()=>sS(t)&&e()),t},clearImmediate(e){sS(e)}},aS=new class extends Wb{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,n=-1,r=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++n0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=oS.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(oS.clearImmediate(t),e.scheduled=void 0)}});function lS(e,t){return i=>i.lift(new uS(e,t))}class uS{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new cS(e,this.compare,this.keySelector))}}class cS extends f{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:i}=this;t=i?i(e):e}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:e}=this;i=e(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}const dS=new Wb(Vb);class hS{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new pS(e,this.durationSelector))}}class pS extends N{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:t}=this;i=t(e)}catch(t){return this.destination.error(t)}const n=H(i,new q(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function mS(e){return!l(e)&&e-parseFloat(e)+1>=0}function fS(e=0,t,i){let n=-1;return mS(t)?n=Number(t)<1?1:Number(t):C(t)&&(i=t),C(i)||(i=dS),new w(t=>{const r=mS(e)?e:+e-i.now();return i.schedule(gS,r,{index:0,period:n,subscriber:t})})}function gS(e){const{index:t,period:i,subscriber:n}=e;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function _S(e,t=dS){return function(e){return function(t){return t.lift(new hS(e))}}(()=>fS(e,t))}function yS(e){return t=>t.lift(new bS(e))}class bS{constructor(e){this.notifier=e}call(e,t){const i=new vS(e),n=H(this.notifier,new q(i));return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}class vS extends N{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function wS(){return e=>e.lift(new kS)}class kS{call(e,t){return t.subscribe(new SS(e))}}class SS extends f{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}class TS extends x{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new ES(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,r=i.length;let s;if(this.closed)throw new S;if(this.isStopped||this.hasError?s=d.EMPTY:(this.observers.push(e),s=new T(this,e)),n&&e.add(e=new ev(e,n)),t)for(let o=0;ot&&(s=Math.max(s,r-t)),s>0&&n.splice(0,s),n}}class ES{constructor(e,t){this.time=e,this.value=t}}let xS;try{xS="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(h){xS=!1}let MS,CS=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Od(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&&!xS)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(Tn(Zu))},e.\u0275prov=fe({factory:function(){return new e(Tn(Zu))},token:e,providedIn:"root"}),e})(),DS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const LS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function OS(){if(MS)return MS;if("object"!=typeof document||!document)return MS=new Set(LS),MS;let e=document.createElement("input");return MS=new Set(LS.filter(t=>(e.setAttribute("type",t),e.type===t))),MS}let AS,IS,RS;function PS(e){return function(){if(null==AS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>AS=!0}))}finally{AS=AS||!1}return AS}()?e:!!e.capture}function YS(){if(null==IS){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return IS=!1,IS;if("scrollBehavior"in document.documentElement.style)IS=!0;else{const e=Element.prototype.scrollTo;IS=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return IS}function FS(e){if(function(){if(null==RS){const e="undefined"!=typeof document?document.head:null;RS=!(!e||!e.createShadowRoot&&!e.attachShadow)}return RS}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function jS(){let e="undefined"!=typeof document&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function qS(e){return e.composedPath?e.composedPath()[0]:e.target}function NS(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const HS=new en("cdk-dir-doc",{providedIn:"root",factory:function(){return En(zc)}});let US=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new vu,e){const t=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||t;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(Tn(HS,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(HS,8))},token:e,providedIn:"root"}),e})(),zS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();function BS(e){return e&&"function"==typeof e.connect}class VS{applyChanges(e,t,i,n,r){e.forEachOperation((e,n,s)=>{let o,a;if(null==e.previousIndex){const r=i(e,n,s);o=t.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(t.remove(n),a=3):(o=t.get(n),t.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:e})})}detach(){}}class $S{constructor(e=!1,t,i=!0){this._multiple=e,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new x,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let WS=(()=>{class e{constructor(){this._listeners=[]}notify(e,t){for(let i of this._listeners)i(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const GS=new en("_ViewRepeater");let ZS=(()=>{class e{constructor(e,t,i){this._ngZone=e,this._platform=t,this._scrolled=new x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new w(t=>{this._globalSubscription||this._addGlobalListener();const i=e>0?this._scrolled.pipe(_S(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):_h()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(bh(e=>!e||i.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,e)&&t.push(n)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let i=Jk(t),n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Xk(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(CS),Tn(zc,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(CS),Tn(zc,8))},token:e,providedIn:"root"}),e})(),QS=(()=>{class e{constructor(e,t,i){this._platform=e,this._change=new x,this._changeListener=e=>{this._change.next(e)},this._document=i,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_S(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc),Tn(zc,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc),Tn(zc,8))},token:e,providedIn:"root"}),e})(),KS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),JS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS,DS,KS],zS,KS]}),e})();function XS(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function eT(e,t=dS){return i=>i.lift(new tT(e,t))}class tT{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new iT(e,this.dueTime,this.scheduler))}}class iT extends f{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(nT,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function nT(e){e.debouncedNext()}function rT(e){return t=>t.lift(new sT(e))}class sT{constructor(e){this.total=e}call(e,t){return t.subscribe(new oT(e,this.total))}}class oT extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}let aT=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),lT=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Jk(e);return new w(e=>{const i=this._observeElement(t).subscribe(e);return()=>{i.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new x,i=this._mutationObserverFactory.create(e=>t.next(e));i&&i.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:i,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:i}=this._observedElements.get(e);t&&t.disconnect(),i.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(Tn(aT))},e.\u0275prov=fe({factory:function(){return new e(Tn(aT))},token:e,providedIn:"root"}),e})(),uT=(()=>{class e{constructor(e,t,i){this._contentObserver=e,this._elementRef=t,this._ngZone=i,this.event=new vu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Zk(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(eT(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(lT),Go(pl),Go(cc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),cT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[aT]}),e})();function dT(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}const hT="cdk-describedby-message-container",pT="cdk-describedby-message",mT="cdk-describedby-host";let fT=0;const gT=new Map;let _T=null,yT=(()=>{class e{constructor(e){this._document=e}describe(e,t,i){if(!this._canBeDescribed(e,t))return;const n=bT(t,i);"string"!=typeof t?(vT(t),gT.set(n,{messageElement:t,referenceCount:0})):gT.has(n)||this._createMessageElement(t,i),this._isElementDescribedByMessage(e,n)||this._addMessageReference(e,n)}removeDescription(e,t,i){if(!t||!this._isElementNode(e))return;const n=bT(t,i);if(this._isElementDescribedByMessage(e,n)&&this._removeMessageReference(e,n),"string"==typeof t){const e=gT.get(n);e&&0===e.referenceCount&&this._deleteMessageElement(n)}_T&&0===_T.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${mT}]`);for(let t=0;t0!=e.indexOf(pT));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const i=gT.get(t);(function(e,t,i){const n=dT(e,t);n.some(e=>e.trim()==i.trim())||(n.push(i.trim()),e.setAttribute(t,n.join(" ")))})(e,"aria-describedby",i.messageElement.id),e.setAttribute(mT,""),i.referenceCount++}_removeMessageReference(e,t){const i=gT.get(t);i.referenceCount--,function(e,t,i){const n=dT(e,t).filter(e=>e!=i.trim());n.length?e.setAttribute(t,n.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",i.messageElement.id),e.removeAttribute(mT)}_isElementDescribedByMessage(e,t){const i=dT(e,"aria-describedby"),n=gT.get(t),r=n&&n.messageElement.id;return!!r&&-1!=i.indexOf(r)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const i=null==t?"":`${t}`.trim(),n=e.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})();function bT(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function vT(e){e.id||(e.id=`${pT}-${fT++}`)}class wT{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new x,this.change=new x,e instanceof ku&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ig(e=>this._pressedLetters.push(e)),eT(e),bh(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let i=1;i!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||XS(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),n=t[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const n=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof ku?this._items.toArray():this._items}}class kT extends wT{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ST extends wT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let TT=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===xT(t)||!this.isVisible(t)))return!1;let i=e.nodeName.toLowerCase(),n=xT(e);return e.hasAttribute("contenteditable")?-1!==n:!("iframe"===i||"object"===i||this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==n:"video"===i?-1!==n&&(null!==n||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||ET(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS))},token:e,providedIn:"root"}),e})();function ET(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function xT(e){if(!ET(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class MT{constructor(e,t,i,n,r=!1){this._element=e,this._checker=t,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let i=0;i=0;i--){let e=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(dg(1)).subscribe(e)}}let CT=(()=>{class e{constructor(e,t,i){this._checker=e,this._ngZone=t,this._document=i}create(e,t=!1){return new MT(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(Tn(TT),Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(TT),Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();function DT(e){return 0===e.offsetX&&0===e.offsetY}function LT(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const OT=new en("cdk-input-modality-detector-options"),AT={ignoreKeys:[18,17,224,91,16]},IT=PS({passive:!0,capture:!0});let RT=(()=>{class e{constructor(e,t,i,n){this._platform=e,this._mostRecentTarget=null,this._modality=new Gf(null),this._lastTouchMs=0,this._onKeydown=e=>{var t,i;(null===(i=null===(t=this._options)||void 0===t?void 0:t.ignoreKeys)||void 0===i?void 0:i.some(t=>t===e.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=qS(e))},this._onMousedown=e=>{Date.now()-this._lastTouchMs<650||(this._modality.next(DT(e)?"keyboard":"mouse"),this._mostRecentTarget=qS(e))},this._onTouchstart=e=>{LT(e)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=qS(e))},this._options=Object.assign(Object.assign({},AT),n),this.modalityDetected=this._modality.pipe(rT(1)),this.modalityChanged=this.modalityDetected.pipe(lS()),e.isBrowser&&t.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,IT),i.addEventListener("mousedown",this._onMousedown,IT),i.addEventListener("touchstart",this._onTouchstart,IT)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,IT),document.removeEventListener("mousedown",this._onMousedown,IT),document.removeEventListener("touchstart",this._onTouchstart,IT))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc),Tn(zc),Tn(OT,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc),Tn(zc),Tn(OT,8))},token:e,providedIn:"root"}),e})();const PT=new en("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),YT=new en("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let FT=(()=>{class e{constructor(e,t,i,n){this._ngZone=t,this._defaultOptions=n,this._document=i,this._liveElement=e||this._createLiveElement()}announce(e,...t){const i=this._defaultOptions;let n,r;return 1===t.length&&"number"==typeof t[0]?r=t[0]:[n,r]=t,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==r&&i&&(r=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),i=this._document.createElement("div");for(let n=0;n{class e{constructor(e,t,i,n,r){this._ngZone=e,this._platform=t,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new x,this._rootNodeFocusAndBlurListener=e=>{const t=qS(e),i="focus"===e.type?this._onFocus:this._onBlur;for(let n=t;n;n=n.parentElement)i.call(this,e,n)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(e,t=!1){const i=Jk(e);if(!this._platform.isBrowser||1!==i.nodeType)return _h(null);const n=FS(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return t&&(r.checkChildren=!0),r.subject;const s={checkChildren:t,subject:new x,rootNode:n};return this._elementInfo.set(i,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Jk(e),i=this._elementInfo.get(t);i&&(i.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(i))}focusVia(e,t,i){const n=Jk(e);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([e,i])=>this._originChanged(e,t,i)):(this._setOrigin(t),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,i){i?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const i=this._elementInfo.get(t),n=qS(e);!i||!i.checkChildren&&t!==n||this._originChanged(t,this._getFocusOrigin(n),i)}_onBlur(e,t){const i=this._elementInfo.get(t);!i||i.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(i.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,i=this._rootNodeFocusListenerCount.get(t)||0;i||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,qT),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,qT)}),this._rootNodeFocusListenerCount.set(t,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yS(this._stopInputModalityDetector)).subscribe(e=>{this._setOrigin(e,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,qT),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,qT),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,i){this._setClasses(e,t),this._emitOrigin(i.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((i,n)=>{(n===e||i.checkChildren&&n.contains(e))&&t.push([n,i])}),t}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(CS),Tn(RT),Tn(zc,8),Tn(jT,8))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(CS),Tn(RT),Tn(zc,8),Tn(jT,8))},token:e,providedIn:"root"}),e})(),HT=(()=>{class e{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new vu}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>this.cdkFocusChange.emit(e))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT))},e.\u0275dir=Ke({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e})();const UT="cdk-high-contrast-black-on-white",zT="cdk-high-contrast-white-on-black",BT="cdk-high-contrast-active";let VT=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,i=t&&t.getComputedStyle?t.getComputedStyle(e):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(BT),e.remove(UT),e.remove(zT),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(BT),e.add(UT)):2===t&&(e.add(BT),e.add(zT))}}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(zc))},token:e,providedIn:"root"}),e})(),$T=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(Tn(VT))},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DS,cT]]}),e})();function WT(e){const{subscriber:t,counter:i,period:n}=e;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}function GT(e,t,i){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?e.setProperty(n,r,(null==i?void 0:i.has(n))?"important":""):e.removeProperty(n)}return e}function ZT(e,t){const i=t?"":"none";GT(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":i,"-ms-user-select":i,"-webkit-user-select":i,"-moz-user-select":i})}function QT(e,t,i){GT(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},i)}function KT(e,t){return t&&"none"!=t?e+" "+t:e}function JT(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function XT(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function eE(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function tE(e,t,i){const{top:n,bottom:r,left:s,right:o}=e;return i>=n&&i<=r&&t>=s&&t<=o}function iE(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function nE(e,t,i,n){const{top:r,right:s,bottom:o,left:a,width:l,height:u}=e,c=l*t,d=u*t;return n>r-d&&na-c&&i{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:eE(e)})})}handleScroll(e){const t=qS(e),i=this.positions.get(t);if(!i)return null;const n=t===this._document?t.documentElement:t,r=i.scrollPosition;let s,o;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();s=e.top,o=e.left}else s=t.scrollTop,o=t.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&iE(e.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function sE(e){const t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const i=qS(e);return!!i&&(i===t||t.contains(i))});t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),i=this._dropContainer;if(!t)return void this._endDragSequence(e);(!i||!i.isDragging()&&!i.isReceiving())&&(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),e.preventDefault();const i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{const e=this._activeTransform;e.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new rE(i,r),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=Gk(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>ZT(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>Jk(e)),this._handles.forEach(e=>ZT(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=Jk(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,dE),t.addEventListener("touchstart",this._pointerDown,cE)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?Jk(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&gE(this._rootElement),gE(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ZT(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ZT(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&gE(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&gE(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){_E(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,i=e.parentNode,n=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(r,e),this._initialTransform=e.style.transform||"",this._preview=this._createPreviewElement(),QT(e,!1,hE),this._document.body.appendChild(i.replaceChild(n,e)),this._getPreviewInsertionPoint(i,s).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),n=_E(t),r=!n&&0!==t.button,s=this._rootElement,o=qS(t),a=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=n?LT(t):DT(t);if(o&&o.draggable&&"mousedown"===t.type&&t.preventDefault(),i||r||a||l)return;this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor||"",s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>this._updateOnScroll(e)),this._boundaryElement&&(this._boundaryRect=eE(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){QT(this._rootElement,!0,hE),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),n=this._getPointerPositionOnPage(e),r=this._getDragDistance(n),s=t._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:r,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r,dropPoint:n}),t.drop(this,i,this._initialIndex,this._initialContainer,s,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:n}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let n;if(i&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(i,e.context);r.detectChanges(),n=yE(r,this._document),this._previewRef=r,e.matchSize?bE(n,t):n.style.transform=mE(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;n=sE(e),bE(n,e.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return GT(n.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},hE),ZT(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>n.classList.add(e)):n.classList.add(t)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function(e){const t=getComputedStyle(e),i=XT(t,"transition-property"),n=i.find(e=>"transform"===e||"all"===e);if(!n)return 0;const r=i.indexOf(n),s=XT(t,"transition-duration"),o=XT(t,"transition-delay");return JT(s[r])+JT(o[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const i=t=>{var r;(!t||qS(t)===this._preview&&"transform"===t.propertyName)&&(null===(r=this._preview)||void 0===r||r.removeEventListener("transitionend",i),e(),clearTimeout(n))},n=setTimeout(i,1.5*t);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=yE(this._placeholderRef,this._document)):i=sE(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,r=n?n.getBoundingClientRect():i,s=_E(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-i.left+(s.pageX-r.left-o.left),y:r.top-i.top+(s.pageY-r.top-o.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=_E(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=n,t.y=r,t.matrixTransform(e.inverse())}}return{x:n,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?n=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,r=this._boundaryRect,s=this._previewRect,o=r.top+t,a=r.bottom-(s.height-t);i=fE(i,r.left+e,r.right-(s.width-e)),n=fE(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),o=Math.abs(i-r.y);return s>this._config.pointerDirectionChangeThreshold&&(n.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ZT(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,dE),e.removeEventListener("touchstart",this._pointerDown,cE)}_applyRootElementTransform(e,t){const i=mE(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=KT(i,this._initialTransform)}_applyPreviewTransform(e,t){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=mE(e,t);this._preview.style.transform=KT(r,n)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const r=i.left-n.left,s=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,i.height>n.height?(o>0&&(t+=o),a>0&&(t-=a)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:_E(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=qS(e);this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&iE(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=FS(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const e=this._document;return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}return Jk(i)}}function mE(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function fE(e,t,i){return Math.max(t,Math.min(i,e))}function gE(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _E(e){return"t"===e.type[0]}function yE(e,t){const i=e.rootNodes;if(1===i.length&&i[0].nodeType===t.ELEMENT_NODE)return i[0];const n=t.createElement("div");return i.forEach(e=>n.appendChild(e)),n}function bE(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=mE(t.left,t.top)}function vE(e,t){return Math.max(0,Math.min(t,e))}class wE{constructor(e,t,i,n,r){this._dragDropRegistry=t,this._ngZone=n,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new x,this.entered=new x,this.exited=new x,this.dropped=new x,this.sorted=new x,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=d.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=dS){return(!mS(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=dS),new w(i=>(i.add(t.schedule(WT,e,{subscriber:i,counter:0,period:e})),i))}(0,tS).pipe(yS(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?SE(e,-t):2===this._verticalScrollDirection&&SE(e,t),1===this._horizontalScrollDirection?TE(e,-t):2===this._horizontalScrollDirection&&TE(e,t)})},this.element=Jk(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new rE(i,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,n){let r;this._draggingStarted(),null==n?(r=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(e,t,i))):r=n;const s=this._activeDraggables,o=s.indexOf(e),a=e.getPlaceholderElement();let l=s[r];if(l===e&&(l=s[r+1]),o>-1&&s.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,i)){const t=s[0].getRootElement();t.parentNode.insertBefore(a,t),s.unshift(e)}else Jk(this.element).appendChild(a),s.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,n,r,s,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:s,dropPoint:o})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=Jk(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?kE("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,n){if(this.sortingDisabled||!this._clientRect||!nE(this._clientRect,.05,t,i))return;const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,i,n);if(-1===s&&r.length>0)return;const o="horizontal"===this._orientation,a=kE(r,t=>t.drag===e),l=r[s],u=l.clientRect,c=a>s?1:-1,d=this._getItemOffsetPx(r[a].clientRect,u,c),h=this._getSiblingOffsetPx(a,r,c),p=r.slice();(function(e,t,i){const n=vE(t,e.length-1),r=vE(i,e.length-1);if(n===r)return;const s=e[n],o=r{if(p[i]===t)return;const n=t.drag===e,r=n?d:h,s=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(s.style.transform=KT(`translate3d(${Math.round(t.offset)}px, 0, 0)`,t.initialTransform),iE(t.clientRect,0,r)):(s.style.transform=KT(`translate3d(0, ${Math.round(t.offset)}px, 0)`,t.initialTransform),iE(t.clientRect,r,0))}),this._previousSwap.overlaps=tE(u,t,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,n=0,r=0;if(this._parentPositions.positions.forEach((s,o)=>{o===this._document||!s.clientRect||i||nE(s.clientRect,.05,e,t)&&([n,r]=function(e,t,i,n){const r=EE(t,n),s=xE(t,i);let o=0,a=0;if(r){const t=e.scrollTop;1===r?t>0&&(o=1):e.scrollHeight-t>e.clientHeight&&(o=2)}if(s){const t=e.scrollLeft;1===s?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[o,a]}(o,s.clientRect,e,t),(n||r)&&(i=o))}),!n&&!r){const{width:s,height:o}=this._viewportRuler.getViewportSize(),a={width:s,height:o,top:0,right:s,bottom:o,left:0};n=EE(a,t),r=xE(a,e),i=window}i&&(n!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=r,this._scrollNode=i,(n||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=Jk(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=Jk(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:eE(t)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=Jk(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const i=e.getRootElement();if(i){const n=null===(t=this._itemPositions.find(t=>t.drag===e))||void 0===t?void 0:t.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const n="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*i];let o=r[n?"width":"height"]*i;if(s){const e=n?"left":"top",t=n?"right":"bottom";-1===i?o-=s.clientRect[e]-r[t]:o+=r[e]-s.clientRect[t]}return o}_getItemOffsetPx(e,t,i){const n="horizontal"===this._orientation;let r=n?t.left-e.left:t.top-e.top;return-1===i&&(r+=n?t.width-e.width:t.height-e.height),r}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const r=i[i.length-1].clientRect;return n?e>=r.right:t>=r.bottom}{const r=i[0].clientRect;return n?e<=r.left:t<=r.top}}_getItemIndexFromPointerPosition(e,t,i,n){const r="horizontal"===this._orientation,s=kE(this._itemPositions,({drag:s,clientRect:o},a,l)=>{if(s===e)return l.length<2;if(n){const e=r?n.x:n.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return r?t>=Math.floor(o.left)&&t=Math.floor(o.top)&&in._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!tE(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;const r=Jk(this.element);return n===r||r.contains(n)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{iE(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=FS(Jk(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function kE(e,t){for(let i=0;i=i-s&&t<=i+s?1:t>=n-s&&t<=n+s?2:0}function xE(e,t){const{left:i,right:n,width:r}=e,s=.05*r;return t>=i-s&&t<=i+s?1:t>=n-s&&t<=n+s?2:0}const ME=PS({passive:!1,capture:!0});let CE=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new x,this.pointerUp=new x,this.scroll=new x,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ME)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ME)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ME}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:ME}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new w(t=>this._ngZone.runOutsideAngular(()=>{const i=e=>{this._activeDragInstances.length&&t.next(e)};return e.addEventListener("scroll",i,!0),()=>{e.removeEventListener("scroll",i,!0)}}))),W(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();const DE={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let LE=(()=>{class e{constructor(e,t,i,n){this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(e,t=DE){return new pE(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new wE(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc),Tn(cc),Tn(QS),Tn(CE))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc),Tn(cc),Tn(QS),Tn(CE))},token:e,providedIn:"root"}),e})(),OE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[LE],imports:[KS]}),e})();const AE=[[["caption"]],[["colgroup"],["col"]]],IE=["caption","colgroup, col"];function RE(e){return class extends e{constructor(...e){super(...e),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(e){const t=this._sticky;this._sticky=Gk(e),this._hasStickyChanged=t!==this._sticky}hasStickyChanged(){const e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}resetStickyChanged(){this._hasStickyChanged=!1}}}const PE=new en("CDK_TABLE");let YE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellDef",""]]}),e})(),FE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e})(),jE=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterCellDef",""]]}),e})();class qE{}const NE=RE(qE);let HE=(()=>{class e extends NE{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Gk(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return e.\u0275fac=function(t){return new(t||e)(Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,YE,5),Ru(i,FE,5),Ru(i,jE,5)),2&e){let e;Au(e=Pu())&&(t.cell=e.first),Au(e=Pu())&&(t.headerCell=e.first),Au(e=Pu())&&(t.footerCell=e.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[sl([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Oo]}),e})();class UE{constructor(e,t){const i=t.nativeElement.classList;for(const n of e._columnCssClassName)i.add(n)}}let zE=(()=>{class e extends UE{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(Go(HE),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Oo]}),e})(),BE=(()=>{class e extends UE{constructor(e,t){var i;if(super(e,t),1===(null===(i=e._table)||void 0===i?void 0:i._elementRef.nativeElement.nodeType)){const i=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===i||"treegrid"===i?"gridcell":"cell")}}}return e.\u0275fac=function(t){return new(t||e)(Go(HE),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Oo]}),e})();class VE{constructor(){this.tasks=[],this.endTasks=[]}}const $E=new en("_COALESCED_STYLE_SCHEDULER");let WE=(()=>{class e{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new VE,this._getScheduleObservable().pipe(yS(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new VE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(dg(1))}}return e.\u0275fac=function(t){return new(t||e)(Tn(cc))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),GE=(()=>{class e{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof KE?e.headerCell.template:this instanceof ex?e.footerCell.template:e.cell.template}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al))},e.\u0275dir=Ke({type:e,features:[ct]}),e})();class ZE extends GE{}const QE=RE(ZE);let KE=(()=>{class e extends QE{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Oo,ct]}),e})();class JE extends GE{}const XE=RE(JE);let ex=(()=>{class e extends XE{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Oo,ct]}),e})(),tx=(()=>{class e extends GE{constructor(e,t,i){super(e,t),this._table=i}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl),Go(Al),Go(PE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Oo]}),e})(),ix=(()=>{class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e})(),nx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),rx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),sx=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e})();const ox=["top","bottom","left","right"];class ax{constructor(e,t,i,n,r=!0,s=!0,o){this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${t}-border-elem-top`,bottom:`${t}-border-elem-bottom`,left:`${t}-border-elem-left`,right:`${t}-border-elem-right`}}clearStickyPositioning(e,t){const i=[];for(const n of e)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let e=0;e{for(const e of i)this._removeStickyStyle(e,t)})}updateStickyColumns(e,t,i,n=!0){if(!e.length||!this._isBrowser||!t.some(e=>e)&&!i.some(e=>e))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=e[0],s=r.children.length,o=this._getCellWidths(r,n),a=this._getStickyStartColumnPositions(o,t),l=this._getStickyEndColumnPositions(o,i),u=t.lastIndexOf(!0),c=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,r=n?"right":"left",d=n?"left":"right";for(const o of e)for(let e=0;et[i]?e:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===c?[]:o.slice(c).map((e,t)=>i[t+c]?e:null).reverse()}))})}stickRows(e,t,i){if(!this._isBrowser)return;const n="bottom"===i?e.slice().reverse():e,r="bottom"===i?t.slice().reverse():t,s=[],o=[],a=[];for(let u=0,c=0;u{var e,t;for(let o=0;o{t.some(e=>!e)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(e,t){for(const i of t)e.style[i]="",e.classList.remove(this._borderCellCss[i]);ox.some(i=>-1===t.indexOf(i)&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,t,i,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[t]),e.style[t]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){const t={top:100,bottom:10,left:1,right:1};let i=0;for(const n of ox)e.style[n]&&(i+=t[n]);return i?`${i}`:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=e.children;for(let r=0;r0;r--)t[r]&&(i[r]=n,n+=e[r]);return i}}const lx=new en("CDK_SPL");let ux=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","rowOutlet",""]]}),e})(),cx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","headerRowOutlet",""]]}),e})(),dx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","footerRowOutlet",""]]}),e})(),hx=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","noDataRowOutlet",""]]}),e})(),px=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c){this._differs=e,this._changeDetectorRef=t,this._elementRef=i,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=u,this._stickyPositioningListener=c,this._onDestroy=new x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new vu,this.viewChange=new Gf({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Gk(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Gk(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(yS(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),BS(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(e,t,i)=>this._getEmbeddedViewArgs(e.item,i),e=>e.item.data,e=>{1===e.operation&&e.context&&this._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(e=>{t.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");const i=this._headerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");const i=this._footerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((e,t)=>{this._addStickyColumnStyles([e],this._headerRowDefs[t])}),this._rowDefs.forEach(e=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([e],this._footerRowDefs[t])}),Array.from(this._columnDefsByName.values()).forEach(e=>e.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const r=i&&i.has(n)?i.get(n):[];if(r.length){const e=r.shift();return e.dataIndex=t,e}return{data:e,rowDef:n,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),mx(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(e=>{this._columnDefsByName.has(e.name),this._columnDefsByName.set(e.name,e)})}_cacheRowDefs(){this._headerRowDefs=mx(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=mx(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=mx(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(e=>!e.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(e,t)=>e||!!t.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(e,!1);return n&&this._forceRenderFooterRows(),t||i||n}_switchDataSource(e){this._data=[],BS(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;BS(this.dataSource)?e=this.dataSource.connect(this):function(e){return!!e&&(e instanceof w||"function"==typeof e.lift&&"function"==typeof e.subscribe)}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=_h(this.dataSource)),this._renderChangeSubscription=e.pipe(yS(this._onDestroy)).subscribe(e=>{this._data=e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const i=Array.from(t.columns||[]).map(e=>this._columnDefsByName.get(e)),n=i.map(e=>e.sticky),r=i.map(e=>e.stickyEnd);this._stickyStyler.updateStickyColumns(e,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let i=0;i!i.when||i.when(t,e));else{let n=this._rowDefs.find(i=>i.when&&i.when(t,e))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,i,n={}){const r=e.viewContainer.createEmbeddedView(t.template,n,i);return this._renderCellTemplateForItem(t,n),r}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))ix.mostRecentCellOutlet&&ix.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t{const i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of t){const t=this._document.createElement(i.tag);t.setAttribute("role","rowgroup");for(const e of i.outlets)t.appendChild(e.elementRef.nativeElement);e.appendChild(t)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(e,t)=>e||t.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ax(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:_h()).pipe(yS(this._onDestroy)).subscribe(e=>{this._stickyStyler.direction=e,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(e=>!e._table||e._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;t?i.createEmbeddedView(e.templateRef):i.clear(),this._isShowingNoDataRow=t}}}}return e.\u0275fac=function(t){return new(t||e)(Go(Al),Go(ql),Go(pl),Gi("role"),Go(US,8),Go(zc),Go(CS),Go(GS),Go($E),Go(QS),Go(lx,12))},e.\u0275cmp=Ve({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,sx,5),Ru(i,HE,5),Ru(i,tx,5),Ru(i,KE,5),Ru(i,ex,5)),2&e){let e;Au(e=Pu())&&(t._noDataRow=e.first),Au(e=Pu())&&(t._contentColumnDefs=e),Au(e=Pu())&&(t._contentRowDefs=e),Au(e=Pu())&&(t._contentHeaderRowDefs=e),Au(e=Pu())&&(t._contentFooterRowDefs=e)}},viewQuery:function(e,t){if(1&e&&(Iu(ux,7),Iu(cx,7),Iu(dx,7),Iu(hx,7)),2&e){let e;Au(e=Pu())&&(t._rowOutlet=e.first),Au(e=Pu())&&(t._headerRowOutlet=e.first),Au(e=Pu())&&(t._footerRowOutlet=e.first),Au(e=Pu())&&(t._noDataRowOutlet=e.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&xa("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[sl([{provide:PE,useExisting:e},{provide:GS,useClass:VS},{provide:$E,useClass:WE},{provide:lx,useValue:null}])],ngContentSelectors:IE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(fa(AE),ga(0),ga(1,1),ia(2,0),ia(3,1),ia(4,2),ia(5,3))},directives:[cx,ux,hx,dx],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e})();function mx(e,t){return e.concat(Array.from(t))}let fx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[JS]]}),e})(),gx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const _x=new bl("12.2.13");function yx(e,t){if(1&e&&Xo(0,"mat-pseudo-checkbox",4),2&e){const e=pa();Zo("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function bx(e,t){if(1&e&&(Ko(0,"span",5),Fa(1),Jo()),2&e){const e=pa();fs(1),qa("(",e.group.label,")")}}const vx=["*"];let wx=(()=>{class e{}return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e})(),kx=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const Sx=new bl("12.2.13"),Tx=new en("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ex=(()=>{class e{constructor(e,t,i){this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Sc()||NS())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Sx.full!==_x.full&&console.warn("The Angular Material version ("+Sx.full+") does not match the Angular CDK version ("+_x.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(Tn(VT),Tn(Tx,8),Tn(zc))},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS],zS]}),e})();function xx(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e)}}}function Mx(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Cx(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Gk(e)}}}function Dx(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Zk(e):this.defaultTabIndex}}}function Lx(e){return class extends e{constructor(...e){super(...e),this.stateChanges=new x,this.errorState=!1}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function Ox(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}const Ax=new en("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return En(Ju)}});class Ix{constructor(){this._localeChanges=new x,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let i=this.isValid(e),n=this.isValid(t);return i&&n?!this.compareDate(e,t):i==n}return e==t}clampDate(e,t,i){return t&&this.compareDate(e,t)<0?t:i&&this.compareDate(e,i)>0?i:e}}const Rx=new en("mat-date-formats");let Px;try{Px="undefined"!=typeof Intl}catch(h){Px=!1}const Yx={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Fx=Nx(31,e=>String(e+1)),jx={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},qx=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Nx(e,t){const i=Array(e);for(let n=0;n{class e extends Ix{constructor(e,t){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!t.TRIDENT,this._clampDate=t.TRIDENT||t.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Nx(12,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,e,1))))}return Yx[e]}getDateNames(){if(Px){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Nx(31,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Fx}getDayOfWeekNames(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Nx(7,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return jx[e]}getYearName(e){if(Px){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,i){let n=this._createDateWithOverflow(e,t,i);return n.getMonth(),n}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Px){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(i,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(qx.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,i){const n=new Date;return n.setFullYear(e,t,i),n.setHours(0,0,0,0),n}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,t){const i=new Date;return i.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(i)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Ax,8),Tn(CS))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),Ux=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[{provide:Ix,useClass:Hx}],imports:[[DS]]}),e})();const zx={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Bx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[{provide:Rx,useValue:zx}],imports:[[Ux]]}),e})(),Vx=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),$x=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e})();function Wx(e,t,i){const n=e.nativeElement.classList;i?n.add(t):n.remove(t)}let Gx=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})();class Zx{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qx={enterDuration:225,exitDuration:150},Kx=PS({passive:!0}),Jx=["mousedown","touchstart"],Xx=["mouseup","mouseleave","touchend","touchcancel"];class eM{constructor(e,t,i,n){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Jk(i))}fadeInRipple(e,t,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Qx),i.animation);i.centered&&(e=n.left+n.width/2,t=n.top+n.height/2);const s=i.radius||function(e,t,i){const n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+r*r)}(e,t,n),o=e-n.left,a=t-n.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-s+"px",u.style.top=a-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u),function(e){window.getComputedStyle(e).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const c=new Zx(this,u,i);return c.state=0,this._activeRipples.add(c),i.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const e=c===this._mostRecentTransientRipple;c.state=1,!i.persistent&&(!e||!this._isPointerDown)&&c.fadeOut()},l),c}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,n=Object.assign(Object.assign({},Qx),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Jk(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Jx))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xx),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=DT(e),i=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,Kx)})})}_removeTriggerEvents(){this._triggerElement&&(Jx.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kx)}),this._pointerUpEventsRegistered&&Xx.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kx)}))}}const tM=new en("mat-ripple-global-options");let iM=(()=>{class e{constructor(e,t,i,n,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new eM(this,t,e,i)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,i){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(CS),Go(tM,8),Go(zf,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),nM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,DS],Ex]}),e})(),rM=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&xa("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),sM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex]]}),e})();const oM=new en("MAT_OPTION_PARENT_COMPONENT"),aM=xx(class{});let lM=0,uM=(()=>{class e extends aM{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+lM++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(Go(oM,8))},e.\u0275dir=Ke({type:e,inputs:{label:"label"},features:[Oo]}),e})();const cM=new en("MatOptgroup");let dM=0;class hM{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let pM=(()=>{class e{constructor(e,t,i,n){this._element=e,this._changeDetectorRef=t,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dM++,this.onSelectionChange=new vu,this._stateChanges=new x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Gk(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!XS(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new hM(this,e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(void 0),Go(uM))},e.\u0275dir=Ke({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),mM=(()=>{class e extends pM{constructor(e,t,i,n){super(e,t,i,n)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oM,8),Go(cM,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&la("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Ua("id",t.id),Bo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),xa("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Oo],ngContentSelectors:vx,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(fa(),$o(0,yx,1,2,"mat-pseudo-checkbox",0),Ko(1,"span",1),ga(2),Jo(),$o(3,bx,2,1,"span",2),Xo(4,"div",3)),2&e&&(Zo("ngIf",t.multiple),fs(3),Zo("ngIf",t.group&&t.group._inert),fs(1),Zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[gd,iM,rM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function fM(e,t,i){if(i.length){let n=t.toArray(),r=i.toArray(),s=0;for(let t=0;t{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Dd,Ex,sM]]}),e})();class _M{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class yM extends _M{constructor(e,t,i,n){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=n}}class bM extends _M{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class vM extends _M{constructor(e){super(),this.element=e instanceof pl?e.nativeElement:e}}class wM{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof yM?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof bM?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof vM?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class kM extends wM{constructor(e,t,i,n,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=e=>{const t=e.element,i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=t.create(e.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(e=>this.outletElement.appendChild(e)),i.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(i);-1!==e&&t.remove(e)}),this._attachedPortal=e,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let SM=(()=>{class e extends wM{constructor(e,t,i){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new vu,this.attachDomPortal=e=>{const t=e.element,i=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(i,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(Go(ul),Go(Kl),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oo]}),e})(),TM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();class EM{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new xM(e,this.predicate,this.inclusive))}}class xM extends f{constructor(e,t,i){super(e),this.predicate=t,this.inclusive=i,this.index=0}_next(e){const t=this.destination;let i;try{i=this.predicate(e,this.index++)}catch(n){return void t.error(n)}this.nextOrComplete(e,i)}nextOrComplete(e,t){const i=this.destination;Boolean(t)?i.next(e):(this.inclusive&&i.next(e),i.complete())}}const MM=YS();class CM{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Kk(-this._previousScrollPosition.left),e.style.top=Kk(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,i=this._document.body.style,n=t.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),MM&&(t.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),MM&&(t.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class DM{constructor(e,t,i,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class LM{enable(){}disable(){}attach(){}}function OM(e,t){return t.some(t=>e.bottomt.bottom||e.rightt.right)}function AM(e,t){return t.some(t=>e.topt.bottom||e.leftt.right)}class IM{constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:i}=this._viewportRuler.getViewportSize();OM(e,[{width:t,height:i,bottom:i,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let RM=(()=>{class e{constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this.noop=()=>new LM,this.close=e=>new DM(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new CM(this._viewportRuler,this._document),this.reposition=e=>new IM(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=n}}return e.\u0275fac=function(t){return new(t||e)(Tn(ZS),Tn(QS),Tn(cc),Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(ZS),Tn(QS),Tn(cc),Tn(zc))},token:e,providedIn:"root"}),e})();class PM{constructor(e){if(this.scrollStrategy=new LM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class YM{constructor(e,t,i,n,r){this.offsetX=i,this.offsetY=n,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class FM{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let jM=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})(),qM=(()=>{class e extends jM{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let i=t.length-1;i>-1;i--)if(t[i]._keydownEvents.observers.length>0){t[i]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc))},token:e,providedIn:"root"}),e})(),NM=(()=>{class e extends jM{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=e=>{this._pointerDownEventTarget=qS(e)},this._clickListener=e=>{const t=qS(e),i="click"===e.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){const s=n[r];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(t)||s.overlayElement.contains(i))break;s._outsidePointerEvents.next(e)}}}}add(e){if(super.add(e),!this._isAttached){const e=this._document.body;e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return e.\u0275fac=function(t){return new(t||e)(Tn(zc),Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(zc),Tn(CS))},token:e,providedIn:"root"}),e})(),HM=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||NS()){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;ethis._backdropClick.next(e),this._keydownEvents=new x,this._outsidePointerEvents=new x,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Kk(this._config.width),e.height=Kk(this._config.height),e.minWidth=Kk(this._config.minWidth),e.minHeight=Kk(this._config.minHeight),e.maxWidth=Kk(this._config.maxWidth),e.maxHeight=Kk(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const n=e.classList;Qk(t).forEach(e=>{e&&(i?n.add(e):n.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(yS(W(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.parentNode&&e.parentNode.removeChild(e),this._backdropElement===e&&(this._backdropElement=null))}}const zM="cdk-overlay-connected-position-bounding-box",BM=/([A-Za-z%]+)$/;class VM{constructor(e,t,i,n,r){this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new x,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(zM),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,n=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),l=this._getOverlayFit(a,t,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreat&&(t=n,e=i)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&$M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(zM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let i,n;if("center"==t.originX)i=e.left+e.width/2;else{const n=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;i="start"==t.originX?n:r}return n="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:i,y:n}}_getOverlayPoint(e,t,i){let n,r;return n="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+n,y:e.y+r}}_getOverlayFit(e,t,i,n){const r=GM(t);let{x:s,y:o}=e,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(s+=a),l&&(o+=l);let u=0-o,c=o+r.height-i.height,d=this._subtractOverflows(r.width,0-s,s+r.width-i.width),h=this._subtractOverflows(r.height,u,c),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const n=i.bottom-t.y,r=i.right-t.x,s=WM(this._overlayRef.getConfig().minHeight),o=WM(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=s&&s<=n)&&a}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const n=GM(t),r=this._viewportRect,s=Math.max(e.x+n.width-r.width,0),o=Math.max(e.y+n.height-r.height,0),a=Math.max(r.top-i.top-e.y,0),l=Math.max(r.left-i.left-e.x,0);let u=0,c=0;return u=n.width<=r.width?l||-s:e.xn&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-n/2)}if("end"===t.overlayX&&!n||"start"===t.overlayX&&n)u=i.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!n||"end"===t.overlayX&&n)l=e.x,a=i.right-e.x;else{const t=Math.min(i.right-e.x+i.left,e.x),n=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-n/2)}return{top:s,left:l,bottom:o,right:u,width:a,height:r}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=Kk(i.height),n.top=Kk(i.top),n.bottom=Kk(i.bottom),n.width=Kk(i.width),n.left=Kk(i.left),n.right=Kk(i.right),n.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",n.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(n.maxHeight=Kk(e)),r&&(n.maxWidth=Kk(r))}this._lastBoundingBoxSize=i,$M(this._boundingBox.style,n)}_resetBoundingBoxStyles(){$M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){$M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();$M(i,this._getExactOverlayY(t,e,n)),$M(i,this._getExactOverlayX(t,e,n))}else i.position="static";let o="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),s.maxHeight&&(n?i.maxHeight=Kk(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=Kk(s.maxWidth):r&&(i.maxWidth="")),$M(this._pane.style,i)}_getExactOverlayY(e,t,i){let n={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Kk(r.y),n}_getExactOverlayX(e,t,i){let n,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),n=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===n?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Kk(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:AM(e,i),isOriginOutsideView:OM(e,i),isOverlayClipped:AM(t,i),isOverlayOutsideView:OM(t,i)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Qk(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof pl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function $M(e,t){for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function WM(e){if("number"!=typeof e&&null!=e){const[t,i]=e.split(BM);return i&&"px"!==i?null:parseFloat(t)}return e||null}function GM(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class ZM{constructor(e,t,i,n,r,s,o){this._preferredPositions=[],this._positionStrategy=new VM(i,n,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,i,n){const r=new YM(e,t,i,n);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}const QM="cdk-global-overlay-wrapper";class KM{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(QM),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(QM),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let JM=(()=>{class e{constructor(e,t,i,n){this._viewportRuler=e,this._document=t,this._platform=i,this._overlayContainer=n}global(){return new KM}connectedTo(e,t,i){return new ZM(t,i,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new VM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(Tn(QS),Tn(zc),Tn(CS),Tn(HM))},e.\u0275prov=fe({factory:function(){return new e(Tn(QS),Tn(zc),Tn(CS),Tn(HM))},token:e,providedIn:"root"}),e})(),XM=0,eC=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=u,this._outsideClickDispatcher=c}create(e){const t=this._createHostElement(),i=this._createPaneElement(t),n=this._createPortalOutlet(i),r=new PM(e);return r.direction=r.direction||this._directionality.value,new UM(n,t,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+XM++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Oc)),new kM(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(Tn(RM),Tn(HM),Tn(ul),Tn(JM),Tn(qM),Tn(Do),Tn(cc),Tn(zc),Tn(US),Tn(rd),Tn(NM))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})();const tC=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],iC=new en("cdk-connected-overlay-scroll-strategy");let nC=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),rC=(()=>{class e{constructor(e,t,i,n,r){this._overlay=e,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this._attachSubscription=d.EMPTY,this._detachSubscription=d.EMPTY,this._positionSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new vu,this.positionChange=new vu,this.attach=new vu,this.detach=new vu,this.overlayKeydown=new vu,this.overlayOutsideClick=new vu,this._templatePortal=new bM(t,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Gk(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Gk(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Gk(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Gk(e)}get push(){return this._push}set push(e){this._push=Gk(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tC);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27===e.keyCode&&!this.disableClose&&!XS(e)&&(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new PM({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return i=>i.lift(new EM(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(Bl),Go(Kl),Go(iC),Go(US,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ct]}),e})();const sC={provide:iC,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let oC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[eC,sC],imports:[[zS,TM,JS],JS]}),e})();const aC=["underline"],lC=["connectionContainer"],uC=["inputContainer"],cC=["label"];function dC(e,t){1&e&&(ea(0),Ko(1,"div",14),Xo(2,"div",15),Xo(3,"div",16),Xo(4,"div",17),Jo(),Ko(5,"div",18),Xo(6,"div",15),Xo(7,"div",16),Xo(8,"div",17),Jo(),ta())}function hC(e,t){1&e&&(Ko(0,"div",19),ga(1,1),Jo())}function pC(e,t){if(1&e&&(ea(0),ga(1,2),Ko(2,"span"),Fa(3),Jo(),ta()),2&e){const e=pa(2);fs(3),ja(e._control.placeholder)}}function mC(e,t){1&e&&ga(0,3,["*ngSwitchCase","true"])}function fC(e,t){1&e&&(Ko(0,"span",23),Fa(1," *"),Jo())}function gC(e,t){if(1&e){const e=na();Ko(0,"label",20,21),la("cdkObserveContent",function(){return Yt(e),pa().updateOutlineGap()}),$o(2,pC,4,1,"ng-container",12),$o(3,mC,1,0,"ng-content",12),$o(4,fC,2,0,"span",22),Jo()}if(2&e){const e=pa();xa("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Zo("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Bo("for",e._control.id)("aria-owns",e._control.id),fs(2),Zo("ngSwitchCase",!1),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function _C(e,t){1&e&&(Ko(0,"div",24),ga(1,4),Jo())}function yC(e,t){if(1&e&&(Ko(0,"div",25,26),Xo(2,"span",27),Jo()),2&e){const e=pa();fs(2),xa("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bC(e,t){1&e&&(Ko(0,"div"),ga(1,5),Jo()),2&e&&Zo("@transitionMessages",pa()._subscriptAnimationState)}function vC(e,t){if(1&e&&(Ko(0,"div",31),Fa(1),Jo()),2&e){const e=pa(2);Zo("id",e._hintLabelId),fs(1),ja(e.hintLabel)}}function wC(e,t){if(1&e&&(Ko(0,"div",28),$o(1,vC,2,2,"div",29),ga(2,6),Xo(3,"div",30),ga(4,7),Jo()),2&e){const e=pa();Zo("@transitionMessages",e._subscriptAnimationState),fs(1),Zo("ngIf",e.hintLabel)}}const kC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],SC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TC=0;const EC=new en("MatError");let xC=(()=>{class e{constructor(e,t){this.id="mat-error-"+TC++,e||t.nativeElement.setAttribute("aria-live","polite")}}return e.\u0275fac=function(t){return new(t||e)(Gi("aria-live"),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&Bo("id",t.id)},inputs:{id:"id"},features:[sl([{provide:EC,useExisting:e}])]}),e})();const MC={transitionMessages:rp("transitionMessages",[lp("enter",ap({opacity:1,transform:"translateY(0%)"})),cp("void => enter",[ap({opacity:0,transform:"translateY(-5px)"}),sp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let CC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),DC=0;const LC=new en("MatHint");let OC=(()=>{class e{constructor(){this.align="start",this.id="mat-hint-"+DC++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Bo("id",t.id)("align",null),xa("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[sl([{provide:LC,useExisting:e}])]}),e})(),AC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-label"]]}),e})(),IC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-placeholder"]]}),e})();const RC=new en("MatPrefix"),PC=new en("MatSuffix");let YC=0;const FC=Mx(class{constructor(e){this._elementRef=e}},"primary"),jC=new en("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qC=new en("MatFormField");let NC=(()=>{class e extends FC{constructor(e,t,i,n,r,s,o,a){super(e),this._changeDetectorRef=t,this._dir=n,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+YC++,this._labelId="mat-form-field-label-"+YC++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Gk(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(mg(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(yS(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(yS(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mg(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mg(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yS(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(dg(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,i=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,i=0;const n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),s=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=n.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e0?.75*l+10:0}for(let o=0;o{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,cT],Ex]}),e})();function UC(e,t=dS){const i=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return e=>e.lift(new zC(i,t))}class zC{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new BC(e,this.delay,this.scheduler))}}class BC extends f{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,n=e.scheduler,r=e.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const t=Math.max(0,i[0].time-n.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(BC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new VC(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Jb.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Jb.createComplete()),this.unsubscribe()}}class VC{constructor(e,t){this.time=e,this.notification=t}}const $C={provide:new en("mat-autocomplete-scroll-strategy"),deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let WC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[$C],imports:[[oC,gM,Ex,Dd],KS,gM,Ex]}),e})(),GC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[$T,Ex],Ex]}),e})();const ZC=new Set;let QC,KC=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(e){if(!ZC.has(e))try{QC||(QC=document.createElement("style"),QC.setAttribute("type","text/css"),document.head.appendChild(QC)),QC.sheet&&(QC.sheet.insertRule(`@media ${e} {body{ }}`,0),ZC.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS))},token:e,providedIn:"root"}),e})();function JC(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let XC=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eD(Qk(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Xf(eD(Qk(e)).map(e=>this._registerQuery(e).observable));return t=ng(t.pipe(dg(1)),t.pipe(rT(1),eT(0))),t.pipe(D(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:i})=>{t.matches=t.matches||e,t.breakpoints[i]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),i={observable:new w(e=>{const i=t=>this._zone.run(()=>e.next(t));return t.addListener(i),()=>{t.removeListener(i)}}).pipe(mg(t),D(({matches:t})=>({query:e,matches:t})),yS(this._destroySubject)),mql:t};return this._queries.set(e,i),i}}return e.\u0275fac=function(t){return new(t||e)(Tn(KC),Tn(cc))},e.\u0275prov=fe({factory:function(){return new e(Tn(KC),Tn(cc))},token:e,providedIn:"root"}),e})();function eD(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let tD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[oC,Ex,TM],Ex]}),e})();const iD=["mat-button",""],nD=["*"],rD=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sD=Mx(xx(Cx(class{constructor(e){this._elementRef=e}})));let oD=(()=>{class e extends sD{constructor(e,t,i){super(e),this._focusMonitor=t,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of rD)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Iu(iM,5),2&e){let e;Au(e=Pu())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Bo("disabled",t.disabled||null),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Oo],attrs:iD,ngContentSelectors:nD,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(fa(),Ko(0,"span",0),ga(1),Jo(),Xo(2,"span",1),Xo(3,"span",2)),2&e&&(fs(2),xa("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Zo("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[iM],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),aD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex],Ex]}),e})(),lD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,nM],Ex]}),e})();const uD=["*",[["mat-card-footer"]]],cD=["*","mat-card-footer"],dD=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],hD=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let pD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e})(),mD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e})(),fD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e})(),gD=(()=>{class e{constructor(){this.align="start"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e})(),_D=(()=>{class e{constructor(e){this._animationMode=e}}return e.\u0275fac=function(t){return new(t||e)(Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:cD,decls:2,vars:0,template:function(e,t){1&e&&(fa(uD),ga(0),ga(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e})(),yD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:hD,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(fa(dD),ga(0),Ko(1,"div",0),ga(2,1),Jo(),ga(3,2))},encapsulation:2,changeDetection:0}),e})(),bD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})();const vD=["input"],wD=function(e){return{enterDuration:e}},kD=["*"],SD=new en("mat-checkbox-default-options",{providedIn:"root",factory:TD});function TD(){return{color:"accent",clickAction:"check-indeterminate"}}let ED=0;const xD=TD(),MD={provide:bw,useExisting:ae(()=>LD),multi:!0};class CD{}const DD=Dx(Mx(Cx(xx(class{constructor(e){this._elementRef=e}}))));let LD=(()=>{class e extends DD{constructor(e,t,i,n,r,s,o){super(e),this._changeDetectorRef=t,this._focusMonitor=i,this._ngZone=n,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++ED,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new vu,this.indeterminateChange=new vu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||xD,this.color=this.defaultColor=this._options.color||xD.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Gk(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Gk(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Gk(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new CD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(NT),Go(cc),Gi("tabindex"),Go(zf,8),Go(SD,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(Iu(vD,5),Iu(iM,5)),2&e){let e;Au(e=Pu())&&(t._inputElement=e.first),Au(e=Pu())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Bo("tabindex",null),xa("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[sl([MD]),Oo],ngContentSelectors:kD,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"span",2),Ko(3,"input",3,4),la("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(5,"span",5),Xo(6,"span",6),Jo(),Xo(7,"span",7),Ko(8,"span",8),ci(),Ko(9,"svg",9),Xo(10,"path",10),Jo(),di(),Xo(11,"span",11),Jo(),Jo(),Ko(12,"span",12,13),la("cdkObserveContent",function(){return t._onLabelTextChange()}),Ko(14,"span",14),Fa(15,"\xa0"),Jo(),ga(16),Jo(),Jo()),2&e){const e=Wo(1),i=Wo(13);Bo("for",t.inputId),fs(2),xa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),fs(1),Zo("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),Bo("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),fs(2),Zo("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",pu(19,wD,"NoopAnimations"===t._animationMode?0:150))}},directives:[iM,uT],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e})(),OD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),AD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex,cT,OD],Ex,OD]}),e})();const ID=["*"],RD=new en("MatChipRemove"),PD=new en("MatChipAvatar"),YD=new en("MatChipTrailingIcon");class FD{constructor(e){this._elementRef=e}}const jD=Dx(Mx(Cx(FD),"primary"),-1);let qD=(()=>{class e extends jD{constructor(e,t,i,n,r,s,o,a){super(e),this._ngZone=t,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new x,this._onBlur=new x,this.selectionChange=new vu,this.destroyed=new vu,this.removed=new vu,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new eM(this,t,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Gk(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Gk(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Gk(e)}get removable(){return this._removable}set removable(e){this._removable=Gk(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled?e.preventDefault():e.stopPropagation()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(CS),Go(tM,8),Go(ql),Go(zc),Go(zf,8),Gi("tabindex"))},e.\u0275dir=Ke({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,PD,5),Ru(i,YD,5),Ru(i,RD,5)),2&e){let e;Au(e=Pu())&&(t.avatar=e.first),Au(e=Pu())&&(t.trailingIcon=e.first),Au(e=Pu())&&(t.removeIcon=e.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&la("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(Bo("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),xa("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oo]}),e})(),ND=(()=>{class e{constructor(e,t){this._parentChip=e,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}_handleClick(e){const t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)(Go(qD),Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&la("click",function(e){return t._handleClick(e)})},features:[sl([{provide:RD,useExisting:e}])]}),e})();const HD=new en("mat-chips-default-options"),UD=Lx(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n}});let zD=0;class BD{constructor(e,t){this.source=e,this.value=t}}let VD=(()=>{class e extends UD{constructor(e,t,i,n,r,s,o){super(s,n,r,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new x,this._uid="mat-chip-list-"+zD++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(e,t)=>e===t,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new vu,this.valueChange=new vu,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=Gk(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(e){this._required=Gk(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Gk(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Gk(e),this.chips&&this.chips.forEach(e=>e.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return W(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return W(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return W(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return W(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new ST(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(yS(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(yS(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(mg(null),yS(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new $S(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&ee.deselect()),Array.isArray(e))e.forEach(e=>this._selectValue(e,t)),this._sortValues();else{const i=this._selectValue(e,t);i&&t&&this._keyManager.setActiveItem(i)}}_selectValue(e,t=!0){const i=this.chips.find(t=>null!=t.value&&this._compareWith(t.value,e));return i&&(t?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new BD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(e=>{!this._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&t._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(US,8),Go(Mk,8),Go(Fk,8),Go(Vx),Go(Qw,10))},e.\u0275cmp=Ve({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,qD,5),2&e){let e;Au(e=Pu())&&(t.chips=e)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&la("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(Ua("id",t._uid),Bo("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),xa("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[sl([{provide:CC,useExisting:e}]),Oo],ngContentSelectors:ID,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),ga(1),Jo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e})();const $D={separatorKeyCodes:[13]};let WD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[Vx,{provide:HD,useValue:$D}],imports:[[Ex]]}),e})(),GD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zS]]}),e})();const ZD=["*"];function QD(e){return Error(`Unable to find icon with the name "${e}"`)}function KD(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function JD(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class XD{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let eL=(()=>{class e{constructor(e,t,i,n){this._httpClient=e,this._sanitizer=t,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,n){return this._addSvgIconConfig(e,t,new XD(i,null,n))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,n){const r=this._sanitizer.sanitize(Wr.HTML,i);if(!r)throw JD(i);return this._addSvgIconConfig(e,t,new XD("",r,n))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new XD(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){const n=this._sanitizer.sanitize(Wr.HTML,t);if(!n)throw JD(t);return this._addSvgIconSetConfig(e,new XD("",n,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(Wr.RESOURCE_URL,e);if(!t)throw KD(e);const i=this._cachedIconsByUrl.get(t);return i?_h(tL(i)):this._loadSvgIconFromConfig(new XD(e,null)).pipe(Ig(e=>this._cachedIconsByUrl.set(t,e)),D(e=>tL(e)))}getNamedSvgIcon(e,t=""){const i=iL(t,e);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(t,e),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Qb(QD(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?_h(tL(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(D(e=>tL(e)))}_getSvgFromIconSetConfigs(e,t){const i=this._extractIconWithNameFromAnySet(e,t);return i?_h(i):fw(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(yg(t=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(Wr.RESOURCE_URL,e.url)} failed: ${t.message}`;return this._errorHandler.handleError(new Error(i)),_h(null)})))).pipe(D(()=>{const i=this._extractIconWithNameFromAnySet(e,t);if(!i)throw QD(e);return i}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(n.svgText&&n.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(t,e,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ig(t=>e.svgText=t),D(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?_h(null):this._fetchIcon(e).pipe(Ig(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){const n=e.querySelector(`[id="${t}"]`);if(!n)return null;const r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);const s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,i)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(e){const t=this._svgElementFromString(""),i=e.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(s)),te());return this._inProgressUrlFetches.set(s,a),a}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(iL(e,t),i),this}_addSvgIconSetConfig(e,t){const i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;it?t.pathname+t.search:""}}}),oL=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],aL=e=>`[${e}]`,lL=oL.map(aL).join(", "),uL=/^url\(['"]?#(.*?)['"]?\)$/;let cL=(()=>{class e extends rL{constructor(e,t,i,n,r){super(e),this._iconRegistry=t,this._location=n,this._errorHandler=r,this._inline=!1,this._currentIconFetch=d.EMPTY,i||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Gk(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let n=0;n{t.forEach(t=>{i.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(lL),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const r=t[n],s=r.getAttribute(e),o=s?s.match(uL):null;if(o){let t=i.get(r);t||(t=[],i.set(r,t)),t.push({name:e,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(dg(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${i}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(eL),Gi("aria-hidden"),Go(sL),Go(Xr))},e.\u0275cmp=Ve({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),xa("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Oo],ngContentSelectors:ZD,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),dL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),hL=(()=>{class e{constructor(){this.changes=new x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const pL={provide:hL,deps:[[new On,new An,hL]],useFactory:function(e){return e||new hL}};let mL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[pL,Vx],imports:[[Ex,Dd,TM,aD,GD,dL,nM],Ex]}),e})();const fL=PS({passive:!0});let gL=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return rg;const t=Jk(e),i=this._monitoredElements.get(t);if(i)return i.subject;const n=new x,r="cdk-text-field-autofilled",s=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>n.next({target:e.target,isAutofilled:!1}))):(t.classList.add(r),this._ngZone.run(()=>n.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,fL),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:n,unlisten:()=>{t.removeEventListener("animationstart",s,fL)}}),n}stopMonitoring(e){const t=Jk(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(Tn(CS),Tn(cc))},e.\u0275prov=fe({factory:function(){return new e(Tn(CS),Tn(cc))},token:e,providedIn:"root"}),e})(),_L=(()=>{class e{constructor(e,t,i,n){this._elementRef=e,this._platform=t,this._ngZone=i,this._destroyed=new x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=e=>{this._hasFocus="focus"===e.type},this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Zk(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Zk(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Gk(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=e,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Xk(this._getWindow(),"resize").pipe(_S(16),yS(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,n=i&&this._hasFocus,r=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";n&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(r);const s=e.scrollHeight-4;return e.classList.remove(r),n&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),r=Math.max(n,this._cachedPlaceholderHeight||0);t.style.height=`${r}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(cc),Go(zc,8))},e.\u0275dir=Ke({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&la("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e})(),yL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DS]]}),e})();const bL=new en("MAT_INPUT_VALUE_ACCESSOR"),vL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wL=0;const kL=Lx(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n}});let SL=(()=>{class e extends kL{constructor(e,t,i,n,r,s,o,a,l,u){super(s,n,r,i),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+wL++,this.focused=!1,this.stateChanges=new x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>OS().has(e));const c=this._elementRef.nativeElement,d=c.nodeName.toLowerCase();this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{const t=e.target;!t.value&&0===t.selectionStart&&0===t.selectionEnd&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===d,this._isTextarea="textarea"===d,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Gk(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Gk(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&OS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Gk(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const i=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(i!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=i,i?e.setAttribute("placeholder",i):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){vL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(Qw,10),Go(Mk,8),Go(Fk,8),Go(Vx),Go(bL,10),Go(gL),Go(cc),Go(qC,8))},e.\u0275dir=Ke({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,t){1&e&&la("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Ua("disabled",t.disabled)("required",t.required),Bo("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),xa("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[sl([{provide:CC,useExisting:e}]),Oo,ct]}),e})(),TL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[Vx],imports:[[yL,HC,Ex],yL,HC]}),e})(),EL=(()=>{class e{constructor(){this.changes=new x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const xL={provide:new en("mat-datepicker-scroll-strategy"),deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let ML=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[EL,xL],imports:[[Dd,aD,oC,$T,TM,Ex],KS]}),e})();function CL(e,t){}class DL{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const LL={dialogContainer:rp("dialogContainer",[lp("void, exit",ap({opacity:0,transform:"scale(0.7)"})),lp("enter",ap({transform:"none"})),cp("* => enter",sp("150ms cubic-bezier(0, 0, 0.2, 1)",ap({transform:"none",opacity:1}))),cp("* => void, * => exit",sp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ap({opacity:0})))])};let OL=(()=>{class e extends wM{constructor(e,t,i,n,r,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=i,this._config=r,this._focusMonitor=s,this._animationStateChanged=new vu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=jS(),i=this._elementRef.nativeElement;(!t||t===this._document.body||t===i||i.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=jS())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=jS();return e===t||e.contains(t)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CT),Go(ql),Go(zc,8),Go(DL),Go(NT))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Iu(SM,7),2&e){let e;Au(e=Pu())&&(t._portalOutlet=e.first)}},features:[Oo]}),e})(),AL=(()=>{class e extends OL{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ua("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Ua("id",t._id),Bo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),za("@dialogContainer",t._state))},features:[Oo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&$o(0,CL,0,0,"ng-template",0)},directives:[SM],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[LL.dialogContainer]}}),e})(),IL=0;class RL{constructor(e,t,i="mat-dialog-"+IL++){this._overlayRef=e,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new x,this._afterClosed=new x,this._beforeClosed=new x,this._state=0,t._id=i,t._animationStateChanged.pipe(bh(e=>"opened"===e.state),dg(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(bh(e=>"closed"===e.state),dg(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(bh(e=>27===e.keyCode&&!this.disableClose&&!XS(e))).subscribe(e=>{e.preventDefault(),PL(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():PL(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(bh(e=>"closing"===e.state),dg(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function PL(e,t,i){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(i)}const YL=new en("MatDialogData"),FL=new en("mat-dialog-default-options"),jL=new en("mat-dialog-scroll-strategy"),qL={provide:jL,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.block()}};let NL=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l){this._overlay=e,this._injector=t,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x,this._afterOpenedAtThisLevel=new x,this._ariaHiddenElements=new Map,this.afterAllClosed=og(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mg(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new DL),t.id&&this.getDialogById(t.id);const i=this._createOverlay(t),n=this._attachDialogContainer(i,t),r=this._attachDialogContent(e,n,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),n._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new PM({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const i=Do.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:DL,useValue:t}]}),n=new yM(this._dialogContainerType,t.viewContainerRef,i,t.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,i,n){const r=new this._dialogRefConstructor(i,t,n.id);if(e instanceof Bl)t.attachTemplatePortal(new bM(e,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,t),s=t.attachComponentPortal(new yM(e,n.viewContainerRef,i));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(e,t,i){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!n||!n.get(US,null,Te.Optional))&&r.push({provide:US,useValue:{value:e.direction,change:_h()}}),Do.create({parent:n||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let n=t[i];n!==e&&"SCRIPT"!==n.nodeName&&"STYLE"!==n.nodeName&&!n.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(Do),Go(void 0),Go(void 0),Go(HM),Go(void 0),Go(on),Go(on),Go(en))},e.\u0275dir=Ke({type:e}),e})(),HL=(()=>{class e extends NL{constructor(e,t,i,n,r,s,o){super(e,t,n,s,o,r,RL,AL,YL)}}return e.\u0275fac=function(t){return new(t||e)(Tn(eC),Tn(Do),Tn(rd,8),Tn(FL,8),Tn(jL),Tn(e,12),Tn(HM))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})(),UL=0,zL=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this._elementRef=t,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=WL(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){PL(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL,8),Go(pl),Go(HL))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&la("click",function(e){return t._onButtonClick(e)}),2&e&&Bo("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ct]}),e})(),BL=(()=>{class e{constructor(e,t,i){this._dialogRef=e,this._elementRef=t,this._dialog=i,this.id="mat-dialog-title-"+UL++}ngOnInit(){this._dialogRef||(this._dialogRef=WL(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(Go(RL,8),Go(pl),Go(HL))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Ua("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),VL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),$L=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})();function WL(e,t){let i=e.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?t.find(e=>e.id===i.id):null}let GL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[HL,qL],imports:[[oC,TM,Ex],Ex]}),e})(),ZL=(()=>{class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Gk(e)}get inset(){return this._inset}set inset(e){this._inset=Gk(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("aria-orientation",t.vertical?"vertical":"horizontal"),xa("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e})(),QL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),KL=0;const JL=new en("CdkAccordion");let XL=(()=>{class e{constructor(){this._stateChanges=new x,this._openCloseAllActions=new x,this.id="cdk-accordion-"+KL++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Gk(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[sl([{provide:JL,useExisting:e}]),ct]}),e})(),eO=0,tO=(()=>{class e{constructor(e,t,i){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=i,this._openCloseAllSubscription=d.EMPTY,this.closed=new vu,this.opened=new vu,this.destroyed=new vu,this.expandedChange=new vu,this.id="cdk-accordion-child-"+eO++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Gk(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return e.\u0275fac=function(t){return new(t||e)(Go(JL,12),Go(ql),Go(WS))},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[sl([{provide:JL,useValue:void 0}])]}),e})(),iO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})();const nO=["body"];function rO(e,t){}const sO=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oO=["mat-expansion-panel-header","*","mat-action-row"];function aO(e,t){1&e&&Xo(0,"span",2),2&e&&Zo("@indicatorRotate",pa()._getExpandedState())}const lO=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],uO=["mat-panel-title","mat-panel-description","*"],cO=new en("MAT_ACCORDION"),dO="225ms cubic-bezier(0.4,0.0,0.2,1)",hO={indicatorRotate:rp("indicatorRotate",[lp("collapsed, void",ap({transform:"rotate(0deg)"})),lp("expanded",ap({transform:"rotate(180deg)"})),cp("expanded <=> collapsed, void => collapsed",sp(dO))]),bodyExpansion:rp("bodyExpansion",[lp("collapsed, void",ap({height:"0px",visibility:"hidden"})),lp("expanded",ap({height:"*",visibility:"visible"})),cp("expanded <=> collapsed, void => collapsed",sp(dO))])};let pO=(()=>{class e{constructor(e){this._template=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Bl))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e})(),mO=0;const fO=new en("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let gO=(()=>{class e extends tO{constructor(e,t,i,n,r,s,o){super(e,t,i),this._viewContainerRef=n,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new vu,this.afterCollapse=new vu,this._inputChanges=new x,this._headerId="mat-expansion-panel-header-"+mO++,this._bodyAnimationDone=new x,this.accordion=e,this._document=r,this._bodyAnimationDone.pipe(lS((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{"void"!==e.fromState&&("expanded"===e.toState?this.afterExpand.emit():"collapsed"===e.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Gk(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(mg(null),bh(()=>this.expanded&&!this._portal),dg(1)).subscribe(()=>{this._portal=new bM(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return e.\u0275fac=function(t){return new(t||e)(Go(cO,12),Go(ql),Go(WS),Go(Kl),Go(zc),Go(zf,8),Go(fO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,pO,5),2&e){let e;Au(e=Pu())&&(t._lazyContent=e.first)}},viewQuery:function(e,t){if(1&e&&Iu(nO,5),2&e){let e;Au(e=Pu())&&(t._body=e.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&xa("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[sl([{provide:cO,useValue:void 0}]),Oo,ct],ngContentSelectors:oO,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(fa(sO),ga(0),Ko(1,"div",0,1),la("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),Ko(3,"div",2),ga(4,1),$o(5,rO,0,0,"ng-template",3),Jo(),ga(6,2),Jo()),2&e&&(fs(1),Zo("@bodyExpansion",t._getExpandedState())("id",t.id),Bo("aria-labelledby",t._headerId),fs(4),Zo("cdkPortalOutlet",t._portal))},directives:[SM],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hO.bodyExpansion]},changeDetection:0}),e})();class _O{}const yO=Dx(_O);let bO=(()=>{class e extends yO{constructor(e,t,i,n,r,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=s,this._parentChangeSubscription=d.EMPTY;const a=e.accordion?e.accordion._stateChanges.pipe(bh(e=>!(!e.hideToggle&&!e.togglePosition))):rg;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=W(e.opened,e.closed,a,e._inputChanges.pipe(bh(e=>!!(e.hideToggle||e.disabled||e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(bh(()=>e._containsFocus())).subscribe(()=>i.focusVia(t,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:XS(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return e.\u0275fac=function(t){return new(t||e)(Go(gO,1),Go(pl),Go(NT),Go(ql),Go(fO,8),Go(zf,8),Gi("tabindex"))},e.\u0275cmp=Ve({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&la("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(Bo("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Ea("height",t._getHeaderHeight()),xa("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Oo],ngContentSelectors:uO,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(fa(lO),Ko(0,"span",0),ga(1),ga(2,1),ga(3,2),Jo(),$o(4,aO,1,1,"span",1)),2&e&&(fs(4),Zo("ngIf",t._showToggle()))},directives:[gd],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hO.indicatorRotate]},changeDetection:0}),e})(),vO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e})(),wO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e})(),kO=(()=>{class e extends XL{constructor(){super(...arguments),this._ownHeaders=new ku,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Gk(e)}ngAfterContentInit(){this._headers.changes.pipe(mg(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(e=>e.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ST(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,bO,5),2&e){let e;Au(e=Pu())&&(t._headers=e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[sl([{provide:cO,useExisting:e}]),Oo]}),e})(),SO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,iO,TM]]}),e})();const TO=["*"],EO=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n";class xO{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const e=Math.max(...this.tracker);return e>1?this.rowCount+e-1:this.rowCount}update(e,t){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(e=>this._trackTile(e))}_trackTile(e){const t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new MO(this.rowIndex,t)}_findMatchingGap(e){let t=-1,i=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):(t=this.tracker.indexOf(0,this.columnIndex),-1!=t?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)))}while(i-t{class e{constructor(e,t){this._element=e,this._gridList=t,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(Zk(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(Zk(e))}_setStyle(e,t){this._element.nativeElement.style[e]=t}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&Bo("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:TO,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),ga(1),Jo())},styles:[EO],encapsulation:2,changeDetection:0}),e})();const LO=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class OO{constructor(){this._rows=0,this._rowspan=0}init(e,t,i,n){this._gutterSize=YO(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=n}getBaseTileSize(e,t){return`(${e}% - (${this._gutterSize} * ${t}))`}getTilePosition(e,t){return 0===t?"0":PO(`(${e} + ${this._gutterSize}) * ${t}`)}getTileSize(e,t){return`(${e} * ${t}) + (${t-1} * ${this._gutterSize})`}setStyle(e,t,i){let n=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(e,i,n,r),this.setRowStyles(e,t,n,r)}setColStyles(e,t,i,n){let r=this.getBaseTileSize(i,n);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,t)),e._setStyle("width",PO(this.getTileSize(r,e.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(e){return`${this._rowspan} * ${this.getTileSize(e,1)}`}getComputedHeight(){return null}}class AO extends OO{constructor(e){super(),this.fixedRowHeight=e}init(e,t,i,n){super.init(e,t,i,n),this.fixedRowHeight=YO(this.fixedRowHeight),LO.test(this.fixedRowHeight)}setRowStyles(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",PO(this.getTileSize(this.fixedRowHeight,e.rowspan)))}getComputedHeight(){return["height",PO(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}class IO extends OO{constructor(e){super(),this._parseRatio(e)}setRowStyles(e,t,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",PO(this.getTileSize(this.baseTileHeight,e.rowspan)))}getComputedHeight(){return["paddingBottom",PO(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(e){const t=e.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}class RO extends OO{setRowStyles(e,t){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(i,t)),e._setStyle("height",PO(this.getTileSize(i,e.rowspan)))}reset(e){e._tiles&&e._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}function PO(e){return`calc(${e})`}function YO(e){return e.match(/([A-Za-z%]+)$/)?e:`${e}px`}let FO=(()=>{class e{constructor(e,t){this._element=e,this._dir=t,this._gutter="1px"}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(Zk(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${null==e?"":e}`}get rowHeight(){return this._rowHeight}set rowHeight(e){const t=`${null==e?"":e}`;t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new RO:e&&e.indexOf(":")>-1?new IO(e):new AO(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new xO);const e=this._tileCoordinator,t=this._tiles.filter(e=>!e._gridList||e._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,t),this._tileStyler.init(this.gutterSize,e,this.cols,i),t.forEach((t,i)=>{const n=e.positions[i];this._tileStyler.setStyle(t,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-grid-list"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,DO,5),2&e){let e;Au(e=Pu())&&(t._tiles=e)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&Bo("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[sl([{provide:CO,useExisting:e}])],ngContentSelectors:TO,decls:2,vars:0,template:function(e,t){1&e&&(fa(),Ko(0,"div"),ga(1),Jo())},styles:[EO],encapsulation:2,changeDetection:0}),e})(),jO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Gx,Ex],Gx,Ex]}),e})();const qO=["*"],NO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],HO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],UO=xx(Cx(class{})),zO=Cx(class{}),BO=new en("MatList"),VO=new en("MatNavList");let $O=(()=>{class e extends UO{constructor(e){super(),this._elementRef=e,this._stateChanges=new x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275cmp=Ve({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[sl([{provide:BO,useExisting:e}]),Oo,ct],ngContentSelectors:qO,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),e})(),WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e})(),GO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e})(),ZO=(()=>{class e extends zO{constructor(e,t,i,n){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new x,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const r=this._getHostElement();"button"===r.nodeName.toLowerCase()&&!r.hasAttribute("type")&&r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(yS(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Gk(e)}ngAfterContentInit(){!function(e,t,i="mat"){e.changes.pipe(mg(e)).subscribe(({length:e})=>{Wx(t,`${i}-2-line`,!1),Wx(t,`${i}-3-line`,!1),Wx(t,`${i}-multi-line`,!1),2===e||3===e?Wx(t,`${i}-${e}-line`,!0):e>3&&Wx(t,`${i}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(VO,8),Go(BO,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,WO,5),Ru(i,GO,5),Ru(i,$x,5)),2&e){let e;Au(e=Pu())&&(t._avatar=e.first),Au(e=Pu())&&(t._icon=e.first),Au(e=Pu())&&(t._lines=e)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&xa("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Oo],ngContentSelectors:HO,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(fa(NO),Ko(0,"div",0),Xo(1,"div",1),ga(2),Ko(3,"div",2),ga(4,1),Jo(),ga(5,2),Jo()),2&e&&(fs(1),Zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[iM],encapsulation:2,changeDetection:0}),e})(),QO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Gx,nM,Ex,sM,Dd],Gx,Ex,sM,QL]}),e})();const KO=["mat-menu-item",""];function JO(e,t){1&e&&(ci(),Ko(0,"svg",2),Xo(1,"polygon",3),Jo())}const XO=["*"];function eA(e,t){if(1&e){const e=na();Ko(0,"div",0),la("keydown",function(t){return Yt(e),pa()._handleKeydown(t)})("click",function(){return Yt(e),pa().closed.emit("click")})("@transformMenu.start",function(t){return Yt(e),pa()._onAnimationStart(t)})("@transformMenu.done",function(t){return Yt(e),pa()._onAnimationDone(t)}),Ko(1,"div",1),ga(2),Jo(),Jo()}if(2&e){const e=pa();Zo("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Bo("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const tA={transformMenu:rp("transformMenu",[lp("void",ap({opacity:0,transform:"scale(0.8)"})),cp("void => enter",sp("120ms cubic-bezier(0, 0, 0.2, 1)",ap({opacity:1,transform:"scale(1)"}))),cp("* => void",sp("100ms 25ms linear",ap({opacity:0})))]),fadeInItems:rp("fadeInItems",[lp("showing",ap({opacity:1})),cp("void => *",[ap({opacity:0}),sp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},iA=new en("MatMenuContent"),nA=new en("MAT_MENU_PANEL"),rA=Cx(xx(class{}));let sA=(()=>{class e extends rA{constructor(e,t,i,n,r){super(),this._elementRef=e,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=r,this.role="menuitem",this._hovered=new x,this._focused=new x,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class e{constructor(e,t,i){this._elementRef=e,this._ngZone=t,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new ku,this._tabSubscription=d.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new vu,this.close=this.closed,this.panelId="mat-menu-panel-"+aA++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Gk(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Gk(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ST(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(mg(this._directDescendantItems),ag(e=>W(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(mg(this._directDescendantItems),ag(e=>W(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,i=this._keyManager;switch(t){case 27:XS(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===t||40===t)&&i.setFocusOrigin("keyboard"),i.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(dg(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(e=>e.startsWith(this._elevationPrefix));(!n||n===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}setPositionClasses(e=this.xPosition,t=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===e,i["mat-menu-after"]="after"===e,i["mat-menu-above"]="above"===t,i["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(mg(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(oA))},e.\u0275dir=Ke({type:e,contentQueries:function(e,t,i){if(1&e&&(Ru(i,iA,5),Ru(i,sA,5),Ru(i,sA,4)),2&e){let e;Au(e=Pu())&&(t.lazyContent=e.first),Au(e=Pu())&&(t._allItems=e),Au(e=Pu())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Iu(Bl,5),2&e){let e;Au(e=Pu())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),uA=(()=>{class e extends lA{constructor(e,t,i){super(e,t,i),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(oA))},e.\u0275cmp=Ve({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Bo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[sl([{provide:nA,useExisting:e}]),Oo],ngContentSelectors:XO,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(fa(),$o(0,eA,3,6,"ng-template"))},directives:[hd],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[tA.transformMenu,tA.fadeInItems]},changeDetection:0}),e})();const cA=new en("mat-menu-scroll-strategy"),dA={provide:cA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},hA=PS({passive:!0});let pA=(()=>{class e{constructor(e,t,i,n,r,s,o,a){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.EMPTY,this._hoverSubscription=d.EMPTY,this._menuCloseSubscription=d.EMPTY,this._handleTouchStart=e=>{LT(e)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new vu,this.onMenuOpen=this.menuOpened,this.menuClosed=new vu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=r instanceof lA?r:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,hA),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),("click"===e||"tab"===e)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,hA),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof lA&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof lA?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(bh(e=>"void"===e.toState),dg(1),yS(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new PM({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[n,r],[a,l]=[t,i],u=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",i=a="end"===t?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(s="top"===n?"bottom":"top",o="top"===r?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:s,overlayX:l,overlayY:n,offsetY:u},{originX:t,originY:o,overlayX:a,overlayY:r,offsetY:-u},{originX:i,originY:o,overlayX:l,overlayY:r,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return W(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:_h(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(bh(e=>e!==this._menuItemInstance),bh(()=>this._menuOpen)):_h(),t)}_handleMousedown(e){DT(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(bh(e=>e===this._menuItemInstance&&!e.disabled),UC(0,aS)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof lA&&this.menu._isAnimating?this.menu._animationDone.pipe(dg(1),UC(0,aS),yS(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new bM(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(Kl),Go(cA),Go(nA,8),Go(sA,10),Go(US,8),Go(NT))},e.\u0275dir=Ke({type:e,hostVars:3,hostBindings:function(e,t){1&e&&la("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Bo("aria-haspopup",t._ariaHaspopup)("aria-expanded",t._ariaExpanded)("aria-controls",t._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),e})(),mA=(()=>{class e extends pA{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Oo]}),e})(),fA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[dA],imports:[[Dd,Ex,nM,oC],KS,Ex]}),e})();const gA=["trigger"],_A=["panel"];function yA(e,t){if(1&e&&(Ko(0,"span",8),Fa(1),Jo()),2&e){const e=pa();fs(1),ja(e.placeholder)}}function bA(e,t){if(1&e&&(Ko(0,"span",12),Fa(1),Jo()),2&e){const e=pa(2);fs(1),ja(e.triggerValue)}}function vA(e,t){1&e&&ga(0,0,["*ngSwitchCase","true"])}function wA(e,t){1&e&&(Ko(0,"span",9),$o(1,bA,2,1,"span",10),$o(2,vA,1,0,"ng-content",11),Jo()),2&e&&(Zo("ngSwitch",!!pa().customTrigger),fs(2),Zo("ngSwitchCase",!0))}function kA(e,t){if(1&e){const e=na();Ko(0,"div",13),Ko(1,"div",14,15),la("@transformPanel.done",function(t){return Yt(e),pa()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Yt(e),pa()._handleKeydown(t)}),ga(3,1),Jo(),Jo()}if(2&e){const e=pa();Zo("@transformPanelWrap",void 0),fs(1),Ha("mat-select-panel ",e._getPanelTheme(),""),Ea("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),Zo("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Bo("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const SA=[[["mat-select-trigger"]],"*"],TA=["mat-select-trigger","*"],EA={transformPanelWrap:rp("transformPanelWrap",[cp("* => void",hp("@transformPanel",[dp()],{optional:!0}))]),transformPanel:rp("transformPanel",[lp("void",ap({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),lp("showing",ap({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),lp("showing-multiple",ap({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),cp("void => *",sp("120ms cubic-bezier(0, 0, 0.2, 1)")),cp("* => void",sp("100ms 25ms linear",ap({opacity:0})))])};let xA=0;const MA=new en("mat-select-scroll-strategy"),CA=new en("MAT_SELECT_CONFIG"),DA={provide:MA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class LA{constructor(e,t){this.source=e,this.value=t}}const OA=Cx(Dx(xx(Lx(class{constructor(e,t,i,n,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}})))),AA=new en("MatSelectTrigger");let IA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-select-trigger"]],features:[sl([{provide:AA,useExisting:e}])]}),e})(),RA=(()=>{class e extends OA{constructor(e,t,i,n,r,s,o,a,l,u,c,d,h,p){var m,f,g;super(r,n,o,a,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=i,this._dir=s,this._parentFormField=l,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+xA++,this._triggerAriaLabelledBy=null,this._destroy=new x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+xA++,this._panelDoneAnimatingStream=new x,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(g=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this.optionSelectionChanges=og(()=>{const e=this.options;return e?e.changes.pipe(mg(e),ag(()=>W(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(dg(1),ag(()=>this.optionSelectionChanges))}),this.openedChange=new vu,this._openedStream=this.openedChange.pipe(bh(e=>e),D(()=>{})),this._closedStream=this.openedChange.pipe(bh(e=>!e),D(()=>{})),this.selectionChange=new vu,this.valueChange=new vu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(c)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Gk(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Gk(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Gk(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Zk(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new $S(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(lS(),yS(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(yS(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(mg(null),yS(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,i=40===t||38===t||37===t||39===t,n=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&n&&!XS(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;r.onKeydown(e);const i=this.selected;i&&t!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,i=e.keyCode,n=40===i||38===i,r=t.isTyping();if(n&&e.altKey)e.preventDefault(),this.close();else if(r||13!==i&&32!==i||!t.activeItem||XS(e))if(!r&&this._multiple&&65===i&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const i=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==i&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(dg(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(i){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new kT(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(yS(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(yS(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yS(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(e=>e._stateChanges)).pipe(yS(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let i=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(Go(QS),Go(ql),Go(cc),Go(Vx),Go(pl),Go(US,8),Go(Mk,8),Go(Fk,8),Go(qC,8),Go(Qw,10),Gi("tabindex"),Go(MA),Go(FT),Go(CA,8))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&(Iu(gA,5),Iu(_A,5),Iu(rC,5)),2&e){let e;Au(e=Pu())&&(t.trigger=e.first),Au(e=Pu())&&(t.panel=e.first),Au(e=Pu())&&(t._overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oo,ct]}),e})(),PA=(()=>{class e extends RA{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(yS(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dg(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=fM(e,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function(e,t,i,n){return ei+n?Math.max(0,e-n+t):i}((e+t)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new LA(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let e=this._selectionModel.selected[0]||this.options.first;r=e&&e.group?32:16}i||(r*=-1);const s=0-(e.left+r-(i?n:0)),o=e.right+r-t.width+(i?0:n);s>0?r+=s+8:o>0&&(r-=o+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,i){const n=this._getItemHeight(),r=(n-this._triggerRect.height)/2,s=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*n:this._scrollTop===i?(e-(this._getItemCount()-s))*n+(n-(this._getItemCount()*n-256)%n):t-n/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>n?this._adjustPanelDown(s,n,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,i){const n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=fM(r,this.options,this.optionGroups);const s=i/2;this._scrollTop=this._calculateOverlayScroll(r,s,n),this._offsetY=this._calculateOverlayOffsetY(r,s,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,AA,5),Ru(i,mM,5),Ru(i,cM,5)),2&e){let e;Au(e=Pu())&&(t.customTrigger=e.first),Au(e=Pu())&&(t.options=e),Au(e=Pu())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&la("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Bo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),xa("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[sl([{provide:CC,useExisting:e},{provide:oM,useExisting:e}]),Oo],ngContentSelectors:TA,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(fa(SA),Ko(0,"div",0,1),la("click",function(){return t.toggle()}),Ko(3,"div",2),$o(4,yA,2,1,"span",3),$o(5,wA,3,2,"span",4),Jo(),Ko(6,"div",5),Xo(7,"div",6),Jo(),Jo(),$o(8,kA,4,14,"ng-template",7),la("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=Wo(1);Bo("aria-owns",t.panelOpen?t.id+"-panel":null),fs(3),Zo("ngSwitch",t.empty),Bo("id",t._valueId),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1),fs(3),Zo("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[nC,vd,wd,rC,kd,hd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[EA.transformPanelWrap,EA.transformPanel]},changeDetection:0}),e})(),YA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[DA],imports:[[Dd,oC,gM,Ex],KS,HC,gM,Ex]}),e})();const FA={tooltipState:rp("state",[lp("initial, void, hidden",ap({opacity:0,transform:"scale(0)"})),lp("visible",ap({transform:"scale(1)"})),cp("* => visible",sp("200ms cubic-bezier(0, 0, 0.2, 1)",up([ap({opacity:0,transform:"scale(0)",offset:0}),ap({opacity:.5,transform:"scale(0.99)",offset:.5}),ap({opacity:1,transform:"scale(1)",offset:1})]))),cp("* => hidden",sp("100ms cubic-bezier(0, 0, 0.2, 1)",ap({opacity:0})))])},jA="tooltip-panel",qA=PS({passive:!0}),NA=new en("mat-tooltip-scroll-strategy"),HA={provide:NA,deps:[eC],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},UA=new en("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let zA=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c,d){this._overlay=e,this._elementRef=t,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=c,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new x,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!XS(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=d,c&&(c.position&&(this.position=c.position),c.touchGestures&&(this.touchGestures=c.touchGestures)),u.change.pipe(yS(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yS(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,i])=>{e.removeEventListener(t,i,qA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new yM(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(yS(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(yS(this._destroyed)).subscribe(e=>{this._updateCurrentPositionClass(e.connectionPair),this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${jA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yS(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yS(this._destroyed)).subscribe(()=>{var e;return null===(e=this._tooltipInstance)||void 0===e?void 0:e._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let i;"above"==t||"below"==t?i={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?i={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(i={originX:"end",originY:"center"});const{x:n,y:r}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:r}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let i;"above"==t?i={overlayX:"center",overlayY:"bottom"}:"below"==t?i={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?i={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:r}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(dg(1),yS(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:i,originY:n}=e;let r;if(r="center"===t?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===t&&"top"===n?"above":"below",r!==this._currentPosition){const e=this._overlayRef;if(e){const t=`${this._cssClassPrefix}-${jA}-`;e.removePanelClass(t+this._currentPosition),e.addPanelClass(t+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,qA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),i=this._elementRef.nativeElement;t!==i&&!i.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,i=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),("on"===e||!t.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(ZS),Go(Kl),Go(cc),Go(CS),Go(yT),Go(NT),Go(void 0),Go(US),Go(void 0),Go(zc))},e.\u0275dir=Ke({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e})(),BA=(()=>{class e extends zA{constructor(e,t,i,n,r,s,o,a,l,u,c,d){super(e,t,i,n,r,s,o,a,l,u,c,d),this._tooltipComponent=$A}}return e.\u0275fac=function(t){return new(t||e)(Go(eC),Go(pl),Go(ZS),Go(Kl),Go(cc),Go(CS),Go(yT),Go(NT),Go(NA),Go(US,8),Go(UA,8),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Oo]}),e})(),VA=(()=>{class e{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new x}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return e.\u0275fac=function(t){return new(t||e)(Go(ql))},e.\u0275dir=Ke({type:e}),e})(),$A=(()=>{class e extends VA{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return e.\u0275fac=function(t){return new(t||e)(Go(ql),Go(XC))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Ea("zoom","visible"===t._visibility?1:null)},features:[Oo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ko(0,"div",0),la("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),_u(1,"async"),Fa(2),Jo()),2&e){let e;xa("mat-tooltip-handset",null==(e=yu(1,5,t._isHandset))?null:e.matches),Zo("ngClass",t.tooltipClass)("@state",t._visibility),fs(2),ja(t.message)}},directives:[hd],pipes:[Cd],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[FA.tooltipState]},changeDetection:0}),e})(),WA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[HA],imports:[[$T,Dd,oC,Ex],Ex,KS]}),e})();function GA(e,t){if(1&e&&(Ko(0,"mat-option",19),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),qa(" ",e," ")}}function ZA(e,t){if(1&e){const e=na();Ko(0,"mat-form-field",16),Ko(1,"mat-select",17),la("selectionChange",function(t){return Yt(e),pa(2)._changePageSize(t.value)}),$o(2,GA,2,2,"mat-option",18),Jo(),Jo()}if(2&e){const e=pa(2);Zo("appearance",e._formFieldAppearance)("color",e.color),fs(1),Zo("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),fs(1),Zo("ngForOf",e._displayedPageSizeOptions)}}function QA(e,t){if(1&e&&(Ko(0,"div",20),Fa(1),Jo()),2&e){const e=pa(2);fs(1),ja(e.pageSize)}}function KA(e,t){if(1&e&&(Ko(0,"div",12),Ko(1,"div",13),Fa(2),Jo(),$o(3,ZA,3,6,"mat-form-field",14),$o(4,QA,2,1,"div",15),Jo()),2&e){const e=pa();fs(2),qa(" ",e._intl.itemsPerPageLabel," "),fs(1),Zo("ngIf",e._displayedPageSizeOptions.length>1),fs(1),Zo("ngIf",e._displayedPageSizeOptions.length<=1)}}function JA(e,t){if(1&e){const e=na();Ko(0,"button",21),la("click",function(){return Yt(e),pa().firstPage()}),ci(),Ko(1,"svg",7),Xo(2,"path",22),Jo(),Jo()}if(2&e){const e=pa();Zo("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Bo("aria-label",e._intl.firstPageLabel)}}function XA(e,t){if(1&e){const e=na();ci(),di(),Ko(0,"button",23),la("click",function(){return Yt(e),pa().lastPage()}),ci(),Ko(1,"svg",7),Xo(2,"path",24),Jo(),Jo()}if(2&e){const e=pa();Zo("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Bo("aria-label",e._intl.lastPageLabel)}}let eI=(()=>{class e{constructor(){this.changes=new x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,i)=>{if(0==i||0==t)return`0 of ${i}`;const n=e*t;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+t,i):n+t} of ${i}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const tI={provide:eI,deps:[[new On,new An,eI]],useFactory:function(e){return e||new eI}},iI=new en("MAT_PAGINATOR_DEFAULT_OPTIONS"),nI=xx(Ox(class{}));let rI=(()=>{class e extends nI{constructor(e,t,i){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new vu,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:e,pageSizeOptions:t,hidePageSize:n,showFirstLastButtons:r}=i;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=n&&(this._hidePageSize=n),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Zk(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Zk(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Zk(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>Zk(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Gk(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Gk(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(Go(eI),Go(ql),Go(void 0))},e.\u0275dir=Ke({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Oo]}),e})(),sI=(()=>{class e extends rI{constructor(e,t,i){super(e,t,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(Go(eI),Go(ql),Go(iI,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Oo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),$o(2,KA,5,3,"div",2),Ko(3,"div",3),Ko(4,"div",4),Fa(5),Jo(),$o(6,JA,3,5,"button",5),Ko(7,"button",6),la("click",function(){return t.previousPage()}),ci(),Ko(8,"svg",7),Xo(9,"path",8),Jo(),Jo(),di(),Ko(10,"button",9),la("click",function(){return t.nextPage()}),ci(),Ko(11,"svg",7),Xo(12,"path",10),Jo(),Jo(),$o(13,XA,3,5,"button",11),Jo(),Jo(),Jo()),2&e&&(fs(2),Zo("ngIf",!t.hidePageSize),fs(3),qa(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),fs(1),Zo("ngIf",t.showFirstLastButtons),fs(1),Zo("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Bo("aria-label",t._intl.previousPageLabel),fs(3),Zo("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Bo("aria-label",t._intl.nextPageLabel),fs(3),Zo("ngIf",t.showFirstLastButtons))},directives:[gd,oD,BA,NC,PA,md,mM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),e})(),oI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[tI],imports:[[Dd,aD,YA,WA,Ex]]}),e})(),aI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex],Ex]}),e})();function lI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function uI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function cI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}function dI(e,t){if(1&e&&(ci(),Xo(0,"circle",3)),2&e){const e=pa();Ea("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Bo("r",e._getCircleRadius())}}const hI=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",pI=Mx(class{constructor(e){this._elementRef=e}},"primary"),mI=new en("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class fI extends pI{constructor(e,t,i,n,r){super(e),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const s=fI._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._fallbackAnimation=t.EDGE||t.TRIDENT,this._noopAnimations="NoopAnimations"===n&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(e){this._diameter=Zk(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(e){this._strokeWidth=Zk(e)}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,Zk(e)))}ngOnInit(){const e=this._elementRef.nativeElement;this._styleRoot=FS(e)||this._document.head,this._attachStyleNode(),e.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const e=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,t=this._diameter,i=fI._diameters;let n=i.get(e);if(!n||!n.has(t)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),e.appendChild(r),n||(n=new Set,i.set(e,n)),n.add(t)}}_getAnimationText(){const e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}fI.\u0275fac=function(e){return new(e||fI)(Go(pl),Go(CS),Go(zc,8),Go(zf,8),Go(mI))},fI.\u0275cmp=Ve({type:fI,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Bo("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),Ea("width",t.diameter,"px")("height",t.diameter,"px"),xa("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ci(),Ko(0,"svg",0),$o(1,lI,1,9,"circle",1),$o(2,uI,1,7,"circle",2),Jo()),2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),Zo("ngSwitch","indeterminate"===t.mode),Bo("viewBox",t._getViewBox()),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1))},directives:[vd,wd],styles:[hI],encapsulation:2,changeDetection:0}),fI._diameters=new WeakMap;let gI=(()=>{class e extends fI{constructor(e,t,i,n,r){super(e,t,i,n,r),this.mode="indeterminate"}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(zc,8),Go(zf,8),Go(mI))},e.\u0275cmp=Ve({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),xa("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ci(),Ko(0,"svg",0),$o(1,cI,1,9,"circle",1),$o(2,dI,1,7,"circle",2),Jo()),2&e&&(Ea("width",t.diameter,"px")("height",t.diameter,"px"),Zo("ngSwitch","indeterminate"===t.mode),Bo("viewBox",t._getViewBox()),fs(1),Zo("ngSwitchCase",!0),fs(1),Zo("ngSwitchCase",!1))},directives:[vd,wd],styles:[hI],encapsulation:2,changeDetection:0}),e})(),_I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex,Dd],Ex]}),e})();const yI=["input"],bI=function(e){return{enterDuration:e}},vI=["*"],wI=new en("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let kI=0;const SI={provide:bw,useExisting:ae(()=>MI),multi:!0};class TI{constructor(e,t){this.source=e,this.value=t}}const EI=new en("MatRadioGroup");let xI=(()=>{class e{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+kI++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new vu}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Gk(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Gk(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(e=>{e.checked=this.value===e.value,e.checked&&(this._selected=e)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new TI(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Go(ql))},e.\u0275dir=Ke({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e})(),MI=(()=>{class e extends xI{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,OI,5),2&e){let e;Au(e=Pu())&&(t._radios=e)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[sl([SI,{provide:EI,useExisting:e}]),Oo]}),e})();class CI{constructor(e){this._elementRef=e}}const DI=Cx(Dx(CI));let LI=(()=>{class e extends DI{constructor(e,t,i,n,r,s,o,a){super(t),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++kI,this.id=this._uniqueId,this.change=new vu,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,a&&(this.tabIndex=Zk(a,0)),this._removeUniqueSelectionListener=r.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Gk(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Gk(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Gk(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new TI(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Go(xI),Go(pl),Go(ql),Go(NT),Go(WS),Go(String),Go(void 0),Go(String))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Iu(yI,5),2&e){let e;Au(e=Pu())&&(t._inputElement=e.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[Oo]}),e})(),OI=(()=>{class e extends LI{constructor(e,t,i,n,r,s,o,a){super(e,t,i,n,r,s,o,a)}}return e.\u0275fac=function(t){return new(t||e)(Go(EI,8),Go(pl),Go(ql),Go(NT),Go(WS),Go(zf,8),Go(wI,8),Gi("tabindex"))},e.\u0275cmp=Ve({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&la("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(Bo("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),xa("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Oo],ngContentSelectors:vI,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"span",2),Xo(3,"span",3),Xo(4,"span",4),Ko(5,"input",5,6),la("change",function(e){return t._onInputInteraction(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(7,"span",7),Xo(8,"span",8),Jo(),Jo(),Ko(9,"span",9),Ko(10,"span",10),Fa(11,"\xa0"),Jo(),ga(12),Jo(),Jo()),2&e){const e=Wo(1);Bo("for",t.inputId),fs(5),Zo("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),Bo("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),fs(2),Zo("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pu(18,bI,t._noopAnimations?0:150)),fs(2),xa("mat-radio-label-before","before"==t.labelPosition)}},directives:[iM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e})(),AI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[nM,Ex],Ex]}),e})(),II=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,DS,KS],KS,Ex]}),e})(),RI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex],Ex]}),e})();const PI=["thumbContainer"],YI=["toggleBar"],FI=["input"],jI=function(e){return{enterDuration:e}},qI=["*"],NI=new en("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let HI=0;const UI={provide:bw,useExisting:ae(()=>VI),multi:!0};class zI{constructor(e,t){this.source=e,this.checked=t}}const BI=Dx(Mx(Cx(xx(class{constructor(e){this._elementRef=e}}))));let VI=(()=>{class e extends BI{constructor(e,t,i,n,r,s){super(e),this._focusMonitor=t,this._changeDetectorRef=i,this.defaults=r,this._onChange=e=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++HI,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new vu,this.toggleChange=new vu,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===s}get required(){return this._required}set required(e){this._required=Gk(e)}get checked(){return this._checked}set checked(e){this._checked=Gk(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._inputElement.nativeElement.focus():e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new zI(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(NT),Go(ql),Gi("tabindex"),Go(NI),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(Iu(PI,5),Iu(YI,5),Iu(FI,5)),2&e){let e;Au(e=Pu())&&(t._thumbEl=e.first),Au(e=Pu())&&(t._thumbBarEl=e.first),Au(e=Pu())&&(t._inputElement=e.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Bo("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),xa("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[sl([UI]),Oo],ngContentSelectors:qI,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fa(),Ko(0,"label",0,1),Ko(2,"div",2,3),Ko(4,"input",4,5),la("change",function(e){return t._onChangeEvent(e)})("click",function(e){return t._onInputClick(e)}),Jo(),Ko(6,"div",6,7),Xo(8,"div",8),Ko(9,"div",9),Xo(10,"div",10),Jo(),Jo(),Jo(),Ko(11,"span",11,12),la("cdkObserveContent",function(){return t._onLabelTextChange()}),Ko(13,"span",13),Fa(14,"\xa0"),Jo(),ga(15),Jo(),Jo()),2&e){const e=Wo(1),i=Wo(12);Bo("for",t.inputId),fs(2),xa("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),fs(2),Zo("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),Bo("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),fs(5),Zo("matRippleTrigger",e)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pu(18,jI,t._noopAnimations?0:150))}},directives:[iM,uT],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e})(),$I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({}),e})(),WI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[$I,nM,Ex,cT],$I,Ex]}),e})();function GI(e,t){if(1&e){const e=na();Ko(0,"div",1),Ko(1,"button",2),la("click",function(){return Yt(e),pa().action()}),Fa(2),Jo(),Jo()}if(2&e){const e=pa();fs(2),ja(e.data.action)}}function ZI(e,t){}const QI=new en("MatSnackBarData");class KI{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const JI=Math.pow(2,31)-1;class XI{constructor(e,t){this._overlayRef=t,this._afterDismissed=new x,this._afterOpened=new x,this._onAction=new x,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(()=>this.dismiss()),e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,JI))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let eR=(()=>{class e{constructor(e,t){this.snackBarRef=e,this.data=t}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return e.\u0275fac=function(t){return new(t||e)(Go(XI),Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Ko(0,"span"),Fa(1),Jo(),$o(2,GI,3,1,"div",0)),2&e&&(fs(1),ja(t.data.message),fs(1),Zo("ngIf",t.hasAction))},directives:[gd,oD],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e})();const tR={snackBarState:rp("state",[lp("void, hidden",ap({transform:"scale(0.8)",opacity:0})),lp("visible",ap({transform:"scale(1)",opacity:1})),cp("* => visible",sp("150ms cubic-bezier(0, 0, 0.2, 1)")),cp("* => void, * => hidden",sp("75ms cubic-bezier(0.4, 0.0, 1, 1)",ap({opacity:0})))])};let iR=(()=>{class e extends wM{constructor(e,t,i,n,r){super(),this._ngZone=e,this._elementRef=t,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x,this._onExit=new x,this._onEnter=new x,this._animationState="void",this.attachDomPortal=e=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(e)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:t,toState:i}=e;if(("void"===i&&"void"!==t||"hidden"===i)&&this._completeExit(),"visible"===i){const e=this._onEnter;this._ngZone.run(()=>{e.next(),e.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(dg(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(t=>e.classList.add(t)):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),t=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&t){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),t.appendChild(e),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return e.\u0275fac=function(t){return new(t||e)(Go(cc),Go(pl),Go(ql),Go(CS),Go(KI))},e.\u0275cmp=Ve({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){if(1&e&&Iu(SM,7),2&e){let e;Au(e=Pu())&&(t._portalOutlet=e.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&ua("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&za("@state",t._animationState)},features:[Oo],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(Ko(0,"div",0),$o(1,ZI,0,0,"ng-template",1),Jo(),Xo(2,"div")),2&e&&(fs(2),Bo("aria-live",t._live)("role",t._role))},directives:[SM],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[tR.snackBarState]}}),e})(),nR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[oC,TM,Dd,aD,Ex],Ex]}),e})();const rR=new en("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new KI}});let sR=(()=>{class e{constructor(e,t,i,n,r,s){this._overlay=e,this._live=t,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=eR,this.snackBarContainerComponent=iR,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:e,action:t},n.announcementMessage===e&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){const i=Do.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:KI,useValue:t}]}),n=new yM(this.snackBarContainerComponent,t.viewContainerRef,i),r=e.attach(n);return r.instance.snackBarConfig=t,r.instance}_attach(e,t){const i=Object.assign(Object.assign(Object.assign({},new KI),this._defaultConfig),t),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),s=new XI(r,n);if(e instanceof Bl){const t=new bM(e,null,{$implicit:i.data,snackBarRef:s});s.instance=r.attachTemplatePortal(t)}else{const t=this._createInjector(i,s),n=new yM(e,void 0,t),o=r.attachComponentPortal(n);s.instance=o.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yS(n.detachments())).subscribe(e=>{const t=n.overlayElement.classList;e.matches?t.add(this.handsetCssClass):t.remove(this.handsetCssClass)}),i.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(s,i),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration))}_createOverlay(e){const t=new PM;t.direction=e.direction;let i=this._overlay.position().global();const n="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!n||"end"===e.horizontalPosition&&n,s=!r&&"center"!==e.horizontalPosition;return r?i.left("0"):s?i.right("0"):i.centerHorizontally(),"top"===e.verticalPosition?i.top("0"):i.bottom("0"),t.positionStrategy=i,this._overlay.create(t)}_createInjector(e,t){return Do.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:XI,useValue:t},{provide:QI,useValue:e.data}]})}}return e.\u0275fac=function(t){return new(t||e)(Tn(eC),Tn(FT),Tn(Do),Tn(XC),Tn(e,12),Tn(rR))},e.\u0275prov=fe({factory:function(){return new e(Tn(eC),Tn(FT),Tn(mo),Tn(XC),Tn(e,12),Tn(rR))},token:e,providedIn:nR}),e})();const oR=["mat-sort-header",""];function aR(e,t){if(1&e){const e=na();Ko(0,"div",3),la("@arrowPosition.start",function(){return Yt(e),pa()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Yt(e),pa()._disableViewStateAnimation=!1}),Xo(1,"div",4),Ko(2,"div",5),Xo(3,"div",6),Xo(4,"div",7),Xo(5,"div",8),Jo(),Jo()}if(2&e){const e=pa();Zo("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),fs(2),Zo("@indicator",e._getArrowDirectionState()),fs(1),Zo("@leftPointer",e._getArrowDirectionState()),fs(1),Zo("@rightPointer",e._getArrowDirectionState())}}const lR=["*"],uR=new en("MAT_SORT_DEFAULT_OPTIONS"),cR=Ox(xx(class{}));let dR=(()=>{class e extends cR{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new x,this.start="asc",this._direction="",this.sortChange=new vu}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Gk(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,i,n;if(!e)return"";const r=null!==(i=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let s=function(e,t){let i=["asc","desc"];return"desc"==e&&i.reverse(),t||i.push(""),i}(e.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Go(uR,8))},e.\u0275dir=Ke({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oo,ct]}),e})();const hR=kx.ENTERING+" "+wx.STANDARD_CURVE,pR={indicator:rp("indicator",[lp("active-asc, asc",ap({transform:"translateY(0px)"})),lp("active-desc, desc",ap({transform:"translateY(10px)"})),cp("active-asc <=> active-desc",sp(hR))]),leftPointer:rp("leftPointer",[lp("active-asc, asc",ap({transform:"rotate(-45deg)"})),lp("active-desc, desc",ap({transform:"rotate(45deg)"})),cp("active-asc <=> active-desc",sp(hR))]),rightPointer:rp("rightPointer",[lp("active-asc, asc",ap({transform:"rotate(45deg)"})),lp("active-desc, desc",ap({transform:"rotate(-45deg)"})),cp("active-asc <=> active-desc",sp(hR))]),arrowOpacity:rp("arrowOpacity",[lp("desc-to-active, asc-to-active, active",ap({opacity:1})),lp("desc-to-hint, asc-to-hint, hint",ap({opacity:.54})),lp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ap({opacity:0})),cp("* => asc, * => desc, * => active, * => hint, * => void",sp("0ms")),cp("* <=> *",sp(hR))]),arrowPosition:rp("arrowPosition",[cp("* => desc-to-hint, * => desc-to-active",sp(hR,up([ap({transform:"translateY(-25%)"}),ap({transform:"translateY(0)"})]))),cp("* => hint-to-desc, * => active-to-desc",sp(hR,up([ap({transform:"translateY(0)"}),ap({transform:"translateY(25%)"})]))),cp("* => asc-to-hint, * => asc-to-active",sp(hR,up([ap({transform:"translateY(25%)"}),ap({transform:"translateY(0)"})]))),cp("* => hint-to-asc, * => active-to-asc",sp(hR,up([ap({transform:"translateY(0)"}),ap({transform:"translateY(-25%)"})]))),lp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ap({transform:"translateY(0)"})),lp("hint-to-desc, active-to-desc, desc",ap({transform:"translateY(-25%)"})),lp("hint-to-asc, active-to-asc, asc",ap({transform:"translateY(25%)"}))]),allowChildren:rp("allowChildren",[cp("* <=> *",[hp("@*",dp(),{optional:!0})])])};let mR=(()=>{class e{constructor(){this.changes=new x}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const fR={provide:mR,deps:[[new On,new An,mR]],useFactory:function(e){return e||new mR}},gR=xx(class{});let _R=(()=>{class e extends gR{constructor(e,t,i,n,r,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=i,this._columnDef=n,this._focusMonitor=r,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Gk(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,i;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(i=this._ariaDescriber)||void 0===i||i.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=W(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(Go(mR),Go(ql),Go(dR,8),Go("MAT_SORT_HEADER_COLUMN_DEF",8),Go(NT),Go(pl),Go(yT,8))},e.\u0275cmp=Ve({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&la("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Bo("aria-sort",t._getAriaSortAttribute()),xa("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oo],attrs:oR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),Ko(1,"div",1),ga(2),Jo(),$o(3,aR,6,6,"div",2),Jo()),2&e&&(xa("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Bo("tabindex",t._isDisabled()?null:0),fs(3),Zo("ngIf",t._renderArrow()))},directives:[gd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),e})(),yR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({providers:[fR],imports:[[Dd,Ex]]}),e})();const bR=[[["caption"]],[["colgroup"],["col"]]],vR=["caption","colgroup, col"];let wR=(()=>{class e extends px{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[sl([{provide:GS,useClass:VS},{provide:px,useExisting:e},{provide:PE,useExisting:e},{provide:$E,useClass:WE},{provide:lx,useValue:null}]),Oo],ngContentSelectors:vR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(fa(bR),ga(0),ga(1,1),ia(2,0),ia(3,1),ia(4,2),ia(5,3))},directives:[cx,ux,hx,dx],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e})(),kR=(()=>{class e extends YE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matCellDef",""]],features:[sl([{provide:YE,useExisting:e}]),Oo]}),e})(),SR=(()=>{class e extends FE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matHeaderCellDef",""]],features:[sl([{provide:FE,useExisting:e}]),Oo]}),e})(),TR=(()=>{class e extends HE{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[sl([{provide:HE,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Oo]}),e})(),ER=(()=>{class e extends zE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Oo]}),e})(),xR=(()=>{class e extends BE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Oo]}),e})(),MR=(()=>{class e extends KE{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[sl([{provide:KE,useExisting:e}]),Oo]}),e})(),CR=(()=>{class e extends tx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275dir=Ke({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[sl([{provide:tx,useExisting:e}]),Oo]}),e})(),DR=(()=>{class e extends nx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[sl([{provide:nx,useExisting:e}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),LR=(()=>{class e extends rx{}return e.\u0275fac=function(){let t;return function(i){return(t||(t=$i(e)))(i||e)}}(),e.\u0275cmp=Ve({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[sl([{provide:rx,useExisting:e}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&ia(0,0)},directives:[ix],encapsulation:2}),e})(),OR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[fx,Ex],Ex]}),e})();function AR(e,t){1&e&&ga(0)}const IR=["*"];function RR(e,t){}const PR=function(e){return{animationDuration:e}},YR=function(e,t){return{value:e,params:t}},FR=["tabBodyWrapper"],jR=["tabHeader"];function qR(e,t){}function NR(e,t){1&e&&$o(0,qR,0,0,"ng-template",9),2&e&&Zo("cdkPortalOutlet",pa().$implicit.templateLabel)}function HR(e,t){1&e&&Fa(0),2&e&&ja(pa().$implicit.textLabel)}function UR(e,t){if(1&e){const e=na();Ko(0,"div",6),la("click",function(){const t=Yt(e),i=t.$implicit,n=t.index,r=pa(),s=Wo(1);return r._handleClick(i,s,n)})("cdkFocusChange",function(t){const i=Yt(e).index;return pa()._tabFocusChanged(t,i)}),Ko(1,"div",7),$o(2,NR,1,1,"ng-template",8),$o(3,HR,1,1,"ng-template",8),Jo(),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();xa("mat-tab-label-active",n.selectedIndex==i),Zo("id",n._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||n.disableRipple),Bo("tabIndex",n._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),fs(2),Zo("ngIf",e.templateLabel),fs(1),Zo("ngIf",!e.templateLabel)}}function zR(e,t){if(1&e){const e=na();Ko(0,"mat-tab-body",10),la("_onCentered",function(){return Yt(e),pa()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return Yt(e),pa()._setTabBodyWrapperHeight(t)}),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();xa("mat-tab-body-active",n.selectedIndex===i),Zo("id",n._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",n.animationDuration),Bo("tabindex",null!=n.contentTabIndex&&n.selectedIndex===i?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(i))}}const BR=["tabListContainer"],VR=["tabList"],$R=["nextPaginator"],WR=["previousPaginator"],GR=new en("MatInkBarPositioner",{providedIn:"root",factory:function(){return e=>({left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"})}});let ZR=(()=>{class e{constructor(e,t,i,n){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=i,this._animationMode=n}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),i=this._elementRef.nativeElement;i.style.left=t.left,i.style.width=t.width}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(cc),Go(GR),Go(zf,8))},e.\u0275dir=Ke({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&xa("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e})();const QR=new en("MatTabContent"),KR=new en("MatTabLabel"),JR=new en("MAT_TAB"),XR=xx(class{}),eP=new en("MAT_TAB_GROUP");let tP=(()=>{class e extends XR{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new bM(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return e.\u0275fac=function(t){return new(t||e)(Go(Kl),Go(eP,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,i){if(1&e&&(Ru(i,KR,5),Ru(i,QR,7,Bl)),2&e){let e;Au(e=Pu())&&(t.templateLabel=e.first),Au(e=Pu())&&(t._explicitContent=e.first)}},viewQuery:function(e,t){if(1&e&&Iu(Bl,7),2&e){let e;Au(e=Pu())&&(t._implicitContent=e.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[sl([{provide:JR,useExisting:e}]),Oo,ct],ngContentSelectors:IR,decls:1,vars:0,template:function(e,t){1&e&&(fa(),$o(0,AR,1,0,"ng-template"))},encapsulation:2}),e})();const iP={translateTab:rp("translateTab",[lp("center, void, left-origin-center, right-origin-center",ap({transform:"none"})),lp("left",ap({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),lp("right",ap({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),cp("* => left, * => right, left => center, right => center",sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),cp("void => left-origin-center",[ap({transform:"translate3d(-100%, 0, 0)"}),sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),cp("void => right-origin-center",[ap({transform:"translate3d(100%, 0, 0)"}),sp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let nP=(()=>{class e extends SM{constructor(e,t,i,n){super(e,t,n),this._host=i,this._centeringSub=d.EMPTY,this._leavingSub=d.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(mg(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(ul),Go(Kl),Go(ae(()=>sP)),Go(zc))},e.\u0275dir=Ke({type:e,selectors:[["","matTabBodyHost",""]],features:[Oo]}),e})(),rP=(()=>{class e{constructor(e,t,i){this._elementRef=e,this._dir=t,this._dirChangeSubscription=d.EMPTY,this._translateTabComplete=new x,this._onCentering=new vu,this._beforeCentering=new vu,this._afterLeavingCenter=new vu,this._onCentered=new vu(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(e=>{this._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(lS((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(e.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8),Go(ql))},e.\u0275dir=Ke({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e})(),sP=(()=>{class e extends rP{constructor(e,t,i){super(e,t,i)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(US,8),Go(ql))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&Iu(SM,5),2&e){let e;Au(e=Pu())&&(t._portalHost=e.first)}},hostAttrs:[1,"mat-tab-body"],features:[Oo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(Ko(0,"div",0,1),la("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),$o(2,RR,0,0,"ng-template",2),Jo()),2&e&&Zo("@translateTab",mu(3,YR,t._position,pu(1,PR,t.animationDuration)))},directives:[nP],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[iP.translateTab]}}),e})();const oP=new en("MAT_TABS_CONFIG");let aP=0;class lP{}const uP=Mx(Cx(class{constructor(e){this._elementRef=e}}),"primary");let cP=(()=>{class e extends uP{constructor(e,t,i,n){var r;super(e),this._changeDetectorRef=t,this._animationMode=n,this._tabs=new ku,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=d.EMPTY,this._tabLabelSubscription=d.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new vu,this.focusChange=new vu,this.animationDone=new vu,this.selectedTabChange=new vu(!0),this._groupId=aP++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,this.contentTabIndex=null!==(r=null==i?void 0:i.contentTabIndex)&&void 0!==r?r:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Gk(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Zk(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Zk(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const t=this._tabBodyWrapper.nativeElement;t.style.minHeight=t.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((t,i)=>t.isActive=i===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,i)=>{t.position=i-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const e=this._tabs.toArray();for(let t=0;t{this._tabs.reset(e.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new lP;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,i){e.disabled||(this.selectedIndex=t.focusIndex=i)}_getTabIndex(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oP,8),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Oo]}),e})(),dP=(()=>{class e extends cP{constructor(e,t,i,n){super(e,t,i,n)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(oP,8),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,tP,5),2&e){let e;Au(e=Pu())&&(t._allTabs=e)}},viewQuery:function(e,t){if(1&e&&(Iu(FR,5),Iu(jR,5)),2&e){let e;Au(e=Pu())&&(t._tabBodyWrapper=e.first),Au(e=Pu())&&(t._tabHeader=e.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[sl([{provide:eP,useExisting:e}]),Oo],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(Ko(0,"mat-tab-header",0,1),la("indexFocused",function(e){return t._focusChanged(e)})("selectFocusedIndex",function(e){return t.selectedIndex=e}),$o(2,UR,4,14,"div",2),Jo(),Ko(3,"div",3,4),$o(5,zR,1,9,"mat-tab-body",5),Jo()),2&e&&(Zo("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),fs(2),Zo("ngForOf",t._tabs),fs(1),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode),fs(2),Zo("ngForOf",t._tabs))},directives:function(){return[_P,md,pP,iM,HT,gd,SM,sP]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e})();const hP=xx(class{});let pP=(()=>{class e extends hP{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return e.\u0275fac=function(t){return new(t||e)(Go(pl))},e.\u0275dir=Ke({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Bo("aria-disabled",!!t.disabled),xa("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[Oo]}),e})();const mP=PS({passive:!0});let fP=(()=>{class e{constructor(e,t,i,n,r,s,o){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=i,this._dir=n,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new vu,this.indexFocused=new vu,r.runOutsideAngular(()=>{Xk(e.nativeElement,"mouseleave").pipe(yS(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Zk(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Xk(this._previousPaginator.nativeElement,"touchstart",mP).pipe(yS(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",mP).pipe(yS(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:_h("ltr"),t=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ST(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),W(e,t,this._items.changes).pipe(yS(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(yS(this._destroyed)).subscribe(e=>{this.indexFocused.emit(e),this._setTabFocus(e)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!XS(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=t.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=n,o=s+r):(o=this._tabList.nativeElement.offsetWidth-n,s=o-r);const a=this.scrollDistance,l=this.scrollDistance+i;sl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),fS(650,100).pipe(yS(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:t,distance:i}=this._scrollHeader(e);(0===i||i>=t)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{disablePagination:"disablePagination"}}),e})(),gP=(()=>{class e extends fP{constructor(e,t,i,n,r,s,o){super(e,t,i,n,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Gk(e)}_itemSelected(e){e.preventDefault()}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275dir=Ke({type:e,inputs:{disableRipple:"disableRipple"},features:[Oo]}),e})(),_P=(()=>{class e extends gP{constructor(e,t,i,n,r,s,o){super(e,t,i,n,r,s,o)}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(ql),Go(QS),Go(US,8),Go(cc),Go(CS),Go(zf,8))},e.\u0275cmp=Ve({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,pP,4),2&e){let e;Au(e=Pu())&&(t._items=e)}},viewQuery:function(e,t){if(1&e&&(Iu(ZR,7),Iu(BR,7),Iu(VR,7),Iu($R,5),Iu(WR,5)),2&e){let e;Au(e=Pu())&&(t._inkBar=e.first),Au(e=Pu())&&(t._tabListContainer=e.first),Au(e=Pu())&&(t._tabList=e.first),Au(e=Pu())&&(t._nextPaginator=e.first),Au(e=Pu())&&(t._previousPaginator=e.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Oo],ngContentSelectors:IR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0,1),la("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),Xo(2,"div",2),Jo(),Ko(3,"div",3,4),la("keydown",function(e){return t._handleKeydown(e)}),Ko(5,"div",5,6),la("cdkObserveContent",function(){return t._onContentChanges()}),Ko(7,"div",7),ga(8),Jo(),Xo(9,"mat-ink-bar"),Jo(),Jo(),Ko(10,"div",8,9),la("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),Xo(12,"div",2),Jo()),2&e&&(xa("mat-tab-header-pagination-disabled",t._disableScrollBefore),Zo("matRippleDisabled",t._disableScrollBefore||t.disableRipple),fs(5),xa("_mat-animation-noopable","NoopAnimations"===t._animationMode),fs(5),xa("mat-tab-header-pagination-disabled",t._disableScrollAfter),Zo("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[iM,uT,ZR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e})(),yP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Ex,TM,nM,cT,$T],Ex]}),e})();const bP=["*",[["mat-toolbar-row"]]],vP=["*","mat-toolbar-row"],wP=Mx(class{constructor(e){this._elementRef=e}});let kP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e})(),SP=(()=>{class e extends wP{constructor(e,t,i){super(e),this._platform=t,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return e.\u0275fac=function(t){return new(t||e)(Go(pl),Go(CS),Go(zc))},e.\u0275cmp=Ve({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,kP,5),2&e){let e;Au(e=Pu())&&(t._toolbarRows=e)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&xa("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oo],ngContentSelectors:vP,decls:2,vars:0,template:function(e,t){1&e&&(fa(bP),ga(0),ga(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e})(),TP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Ex],Ex]}),e})(),EP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[gx,Ex],Ex]}),e})(),xP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[fx,gx,OE,WC,GC,tD,aD,lD,bD,AD,WD,mL,ML,GL,QL,SO,jO,dL,TL,QO,fA,Bx,oI,aI,_I,AI,nM,YA,II,RI,WI,nR,yR,OR,yP,TP,WA,EP,JS]}),e})(),MP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP]]}),e})(),CP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP]]}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Vk,$k,tp,Lb,xP,CP],Dd,Vk,$k,tp,Lb,xP,CP,MP]}),e})();const LP={githubUrl:"https://github.com",accessTokenUrl:"https://catcher-auth.herokuapp.com/authenticate",clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles-dev.json"},OP=i(4147),AP={version:i(4147).version,production:!0,test:!1,clientId:"5e1ed08cff7f0de1d68d",githubUrl:"https://github.com",accessTokenUrl:LP.accessTokenUrl,clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles.json",origin:"https://catcher-org.github.io"},IP=Object.assign(Object.assign({},AP),{clientId:"54b9dcc49069dc2f018e",origin:"https://catcher-org.github.io"});var RP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),PP=new Uint8Array(16);function YP(){if(!RP)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RP(PP)}for(var FP=[],jP=0;jP<256;++jP)FP[jP]=(jP+256).toString(16).substr(1);var qP=function(e,t,i){var n=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||YP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;++s)t[n+s]=r[s];return t||function(e,t){var i=t||0;return[FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],"-",FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]],FP[e[i++]]].join("")}(r)};function NP(){return qP()}var HP=i(97582);function UP(e,t){return b(bh(t=>e(t)),Tg(t))}class zP{constructor(){this.issueLastModified=new Map}get(e){return this.issueLastModified.get(e)||""}set(e,t){this.issueLastModified.set(e,t)}clear(){this.issueLastModified.clear()}}class BP{constructor(){this.issuesCache=[]}getEtagFor(e){const t=this.get(e);let i="";return void 0!==t&&(i=t.headers.etag),i}get(e){return this.issuesCache[e-1]}set(e,t){t.isCached=!0,this.issuesCache[e-1]=t}clear(){this.issuesCache=[]}}function VP(e,t){return e.map(e=>t?t(e.node):e.node)}let $P=(()=>{class e{constructor(e){Object.assign(this,e),this.isCategorical()?(this.category=this.name.split(".")[0],this.label=this.name.split(".")[1]):(this.category=this.name,this.label=this.name),Object.freeze(this)}getCategory(){return this.category}getValue(){return this.label}getDescription(){return this.description}isCategorical(){return/^[^.]+\.[^.]+$/.test(this.name)}}return e.LABEL_ORDER={severity:{Low:0,Medium:1,High:2},type:{DocumentationBug:0,FunctionalityBug:1}},e.LABELS={severity:"severity",type:"type",response:"response",duplicated:"duplicated",status:"status",unsure:"unsure",pending:"pending",team:"team",tutorial:"tutorial"},e})();class WP{constructor(e){Object.assign(this,e),this.labels=[];for(const t of e.labels)this.labels.push(new $P(t))}findLabel(e,t=!0){if(!t){const t=this.labels.find(t=>!t.isCategorical()&&t.name===e);return t?t.getValue():void 0}const i=this.labels.filter(t=>t.isCategorical()&&t.getCategory()===e);if(0!==i.length){if(1===i.length)return i[0].getValue();if($P.LABEL_ORDER[e]){const t=$P.LABEL_ORDER[e];return i.reduce((e,i)=>t[i.getValue()]>t[e.getValue()]?i:e).getValue()}return i[0].getValue()}}findTeamId(){return`${this.findLabel("team")}.${this.findLabel("tutorial")}`}}class GP extends WP{constructor(e){super({id:e.id,number:e.number,body:e.body,created_at:String(e.createdAt),updated_at:String(e.updatedAt),url:String(e.url),title:e.title,state:e.state,user:{login:e.author.login,url:e.author.url,avatar_url:e.author.avatarUrl},assignees:VP(e.assignees.edges),labels:VP(e.labels.edges),comments:VP(e.comments.edges,e=>Object.assign(Object.assign({},e),{id:e.databaseId}))})}}const ZP=["*"];let QP=(()=>{class e{constructor(e){this.snackBarRef=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Go(XI))},e.\u0275cmp=Ve({type:e,selectors:[["app-toaster"]],ngContentSelectors:ZP,decls:6,vars:0,consts:[[1,"toaster"],[1,"message-container"],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(fa(),Ko(0,"div",0),Ko(1,"div",1),Ko(2,"p"),ga(3),Jo(),Jo(),Ko(4,"button",2),la("click",function(){return t.snackBarRef.dismiss()}),Fa(5,"Close"),Jo(),Jo())},directives:[oD],styles:[".toaster[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.message-container[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:80%;overflow-wrap:anywhere}.message-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:auto 5px;text-align:center}button[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:20%;margin:auto 5px;text-align:center}"]}),e})();function KP(e,t){if(1&e&&(Ko(0,"div"),Fa(1," Validation Error: "),Ko(2,"ul"),Ko(3,"li"),Fa(4),Jo(),Jo(),Jo()),2&e){const e=t.$implicit;fs(4),ja(e.code+" in "+e.field)}}function JP(e,t){if(1&e&&(Ko(0,"div"),$o(1,KP,5,1,"div",2),Jo()),2&e){const e=pa();fs(1),Zo("ngForOf",e.data.errors)}}function XP(e,t){if(1&e&&Fa(0),2&e){const e=pa();qa(" ","Error code "+e.data.status+": "+e.data.message,"\n")}}let eY=(()=>{class e{constructor(e){this.data=e}}return e.\u0275fac=function(t){return new(t||e)(Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-form-error"]],decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],["generalMessage",""],[4,"ngFor","ngForOf"]],template:function(e,t){if(1&e&&(Ko(0,"app-toaster"),$o(1,JP,2,1,"div",0),Jo(),$o(2,XP,1,1,"ng-template",null,1,qu)),2&e){const e=Wo(3);fs(1),Zo("ngIf",t.data.errors)("ngIfElse",e)}},directives:[QP,gd,md],encapsulation:2}),e})(),tY=(()=>{class e{constructor(e){this.data=e}}return e.\u0275fac=function(t){return new(t||e)(Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-general-message-error"]],decls:2,vars:1,template:function(e,t){1&e&&(Ko(0,"app-toaster"),Fa(1),Jo()),2&e&&(fs(1),qa(" ",t.data.message," "))},directives:[QP],encapsulation:2}),e})();let iY=(()=>{class e{constructor(){this.isInSession=!1,this.LOG_KEY="CATcher-Log",this.LOG_FILE_NAME="CATcher-log.txt",this.LOG_START_HEADER=`====== New CATcher v${IP.version} Session Log ======`,this.LOG_COUNT_LIMIT=4,this.SESSION_LOG_SEPARATOR="\n".repeat(2),this.logger=console,this.startSession()}reset(){this.isInSession=!1}startSession(){window.opener&&window.opener!==window||this.isInSession||(this.isInSession=!0,this.initializeLogCache())}initializeLogCache(){this.setCachedLog(this.getTrimmedLogCache(this.getCachedLog(),this.LOG_COUNT_LIMIT))}getTrimmedLogCache(e,t){const i=(new Date).toLocaleString(),n=`${this.LOG_START_HEADER}\n${i}`,r=null==e?0:e.split("\n").filter(e=>e.includes(this.LOG_START_HEADER)).length;if(0===r)return n;if(r!!e).map(e=>`${this.LOG_START_HEADER}\n${e.trim()}`);return s.splice(0,s.length-t+1),s.push(`${n}`),s.join(this.SESSION_LOG_SEPARATOR)}getCachedLog(){return localStorage.getItem(this.LOG_KEY)}setCachedLog(e){localStorage.setItem(this.LOG_KEY,e)}updateLog(...e){this.setCachedLog(`${this.getCachedLog()}\n${e.toString()}`)}exportLogFile(){const e=this.getCachedLog();!function(e,t){const i=new Blob([t],{type:"file/txt"}),n=window.URL.createObjectURL(i),r=function(e,t){const i=document.createElement("a");return i.setAttribute("style","display: none;"),i.href=e,i.download=t,i}(n,e);(function(e){document.body.appendChild(e),e.click()})(r),window.URL.revokeObjectURL(n),function(e){document.body.removeChild(e),e.remove()}(r)}(this.LOG_FILE_NAME,e)}info(...e){this.updateLog(e),this.logger.info(e)}error(...e){this.updateLog(e),this.logger.error(e)}warn(...e){this.updateLog(e),this.logger.warn(e)}debug(...e){IP.production||this.logger.debug(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const nY=["node_modules"];let rY=(()=>{class e{constructor(e,t){this.snackBar=e,this.logger=t}handleError(e,t){this.logger.error("ErrorHandlingService: "+e),e instanceof Error&&this.logger.debug("ErrorHandlingService: "+this.cleanStack(e.stack)),e instanceof Nh||"RequestError"===e.constructor.name?this.handleHttpError(e,t):this.handleGeneralError("string"==typeof e?e:e.message||JSON.stringify(e))}cleanStack(e){return e.split("\n").filter(e=>!nY.some(t=>e.includes(t))).join("\n")}handleHttpError(e,t){if(304!==e.status){if(!navigator.onLine)return void this.handleGeneralError("No Internet Connection");switch(e.status){case 500:case 400:case 401:case 404:this.snackBar.openFromComponent(tY,{data:e});break;case 422:this.snackBar.openFromComponent(eY,{data:e});break;default:return void this.snackBar.openFromComponent(tY,{data:e})}}}handleGeneralError(e){this.snackBar.openFromComponent(tY,{data:{message:e}})}clearError(){this.snackBar.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(Tn(sR),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const{Octokit:sY}=i(60837);let oY="",aY="",lY="",uY="",cY=new sY,dY=(()=>{class e{constructor(e,t,i){this.errorHandlingService=e,this.apollo=t,this.logger=i,this.issuesCacheManager=new BP,this.issuesLastModifiedManager=new zP,this.issueQueryRefs=new Map}storeOAuthAccessToken(e){cY=new sY({auth:()=>`Token ${e}`,log:{debug:(e,...t)=>this.logger.debug("GithubService: "+e,...t),info:(e,...t)=>/304 in \d+ms$/.test(e)?void 0:this.logger.info("GithubService: "+e,...t),warn:(e,...t)=>this.logger.warn("GithubService: "+e,...t),error:(e,...t)=>this.logger.error("GithubService: "+e,...t)}})}storeOrganizationDetails(e,t){aY=e,uY=t}storePhaseDetails(e,t){lY=t,oY=e}fetchIssuesGraphqlByTeam(e,t,i){const n=i.convertToGraphqlFilter();return this.toFetchIssues(i).pipe(bh(e=>e),U(()=>this.fetchGraphqlList(dw,{owner:oY,name:lY,filter:Object.assign(Object.assign({},n),{labels:[...n.labels?n.labels:[],t]}),tutorial:e},e=>e.data.repository.label.issues.edges,GP)))}fetchIssuesGraphql(e){const t=e.convertToGraphqlFilter();return this.toFetchIssues(e).pipe(bh(e=>e),U(()=>this.fetchGraphqlList(hw,{owner:oY,name:lY,filter:t},e=>e.data.repository.issues.edges,GP)))}toFetchIssues(e){let t;return this.getIssuesAPICall(e,1).pipe(D(e=>(t=e,function(e){let t=1;return e.headers.link&&(t=+function(e){return e.split(",").map(e=>e.split(";").map((e,t)=>0===t?/[^_]page=(\d+)/.exec(e)[1]:1===t?/rel="(.+)"/.exec(e)[1]:void 0)).reduce((e,t)=>(e[t[1]]=t[0],e),{})}(e.headers.link).last||1),t}(e))),U(t=>{const i=[];for(let n=2;n<=t;n++)i.push(this.getIssuesAPICall(e,n));return 0===i.length?_h([]):fw(i)}),D(e=>{const i=[t,...e],n=i.reduce((e,t)=>e&&t.isCached,!0);return i.forEach((e,t)=>this.issuesCacheManager.set(t+1,e)),!n}))}isRepositoryPresent(t,i){return j(cY.repos.get({owner:t,repo:i,headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>404!==e.status),yg(e=>_h(!1)),yg(e=>Qb("Failed to fetch repo data.")))}createRepository(e){cY.repos.createForAuthenticatedUser({name:e})}createBranch(){return this.getDefaultBranch().pipe(U(e=>this.getBranchHeadInfo(e)),D(e=>e.data.object.sha),U(e=>this.createBranchFromCommit(e)),U(()=>this.isMainBranchPresent()),UP(e=>e,()=>new Error("Unable to create main branch.")))}createBranchFromCommit(e){return j(cY.git.createRef({owner:oY,repo:lY,ref:"refs/heads/main",sha:e}))}getDefaultBranch(){return j(cY.repos.get({owner:oY,repo:lY})).pipe(D(e=>e.data.default_branch))}getBranchHeadInfo(e){return j(cY.git.getRef({owner:oY,repo:lY,ref:`heads/${e}`}))}isMainBranchPresent(){return j(cY.git.getRef({owner:oY,repo:lY,ref:"heads/main"})).pipe(D(e=>404!==e.status),yg(()=>_h(!1)))}fetchIssueGraphql(e){if(void 0===this.issueQueryRefs.get(e)){const t=this.apollo.watchQuery({query:cw,variables:{owner:oY,name:lY,issueId:e}});this.issueQueryRefs.set(e,t)}const t=this.issueQueryRefs.get(e);return this.toFetchIssue(e).pipe(bh(e=>e),U(()=>j(t.refetch())),D(e=>new GP(e.data.repository.issue)),Tg(()=>new Nh({status:304})))}toFetchIssue(e){return j(cY.issues.get({owner:oY,repo:lY,issue_number:e,headers:{"If-Modified-Since":this.issuesLastModifiedManager.get(e)}})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),!0)),yg(e=>Qb("Failed to fetch issue.")))}fetchAllLabels(){return this.fetchGraphqlList(pw,{owner:oY,name:lY},e=>e.data.repository.labels.edges,$P).pipe(yg(e=>Qb("Failed to fetch labels.")))}createLabel(e,t){cY.issues.createLabel({owner:oY,repo:lY,name:e,color:t})}updateLabel(e,t){cY.issues.updateLabel({owner:oY,repo:lY,name:e,current_name:e,color:t})}closeIssue(e){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,state:"closed"})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))))}reopenIssue(e){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,state:"open"})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))))}createIssue(e,t,i){return j(cY.issues.create({owner:oY,repo:lY,title:e,body:t,labels:i})).pipe(D(e=>new WP(e.data)))}createIssueComment(e,t){return j(cY.issues.createComment({owner:oY,repo:lY,issue_number:e,body:t})).pipe(D(e=>e.data))}updateIssue(e,t,i,n,r){return j(cY.issues.update({owner:oY,repo:lY,issue_number:e,title:t,body:i,labels:n,assignees:r})).pipe(D(t=>(this.issuesLastModifiedManager.set(e,t.headers["last-modified"]),new WP(t.data))),yg(e=>Qb(e)))}updateIssueComment(e){return j(cY.issues.updateComment({owner:oY,repo:lY,comment_id:e.id,body:e.description})).pipe(D(e=>e.data))}uploadFile(e,t){return j(cY.repos.createOrUpdateFile({owner:oY,repo:lY,branch:"main",path:`files/${e}`,message:"upload file",content:t}))}fetchEventsForRepo(){return j(cY.issues.listEventsForRepo({owner:oY,repo:lY,headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch events for repo.")))}fetchDataFile(){return j(cY.repos.getContents({owner:aY,repo:uY,path:"data.csv",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>({data:atob(e.data.content)})),yg(e=>Qb("Failed to fetch data file.")))}fetchLatestRelease(){return j(cY.repos.getLatestRelease({owner:"CATcher-org",repo:"CATcher",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch latest release.")))}fetchSettingsFromRawUrl(){return j(fetch(function(e,t){return`https://raw.githubusercontent.com/${e}/${t}/master/settings.json`}(aY,uY))).pipe(U(e=>e.json()),yg(e=>Qb("Failed to fetch settings file.")))}fetchSettingsFile(){return j(cY.repos.getContents({owner:aY,repo:uY,path:"settings.json",headers:e.IF_NONE_MATCH_EMPTY})).pipe(D(e=>JSON.parse(atob(e.data.content))),yg(e=>(this.logger.error("GithubService: Failed to fetch settings file via REST API. Trying to fetch using raw.githubusercontent.com: ",e),this.fetchSettingsFromRawUrl())))}fetchAuthenticatedUser(){return j(cY.users.getAuthenticated()).pipe(D(e=>e.data),yg(e=>Qb("Failed to fetch authenticated user.")))}getRepoURL(){return oY.concat("/").concat(lY)}viewIssueInBrowser(e,t){e?window.open("https://github.com/".concat(this.getRepoURL()).concat("/issues/").concat(String(e))):this.errorHandlingService.handleError(new Error("Unable to open this issue in Browser")),t.stopPropagation()}reset(){this.logger.info("GithubService: Resetting issues cache"),this.issuesCacheManager.clear(),this.issuesLastModifiedManager.clear(),this.issueQueryRefs.clear()}getProfilesData(){return fetch(IP.clientDataUrl)}getIssuesAPICall(e,t){return j(cY.issues.listForRepo(Object.assign(Object.assign({},e),{owner:oY,repo:lY,sort:"created",direction:"desc",per_page:100,page:t,headers:{"If-None-Match":this.issuesCacheManager.getEtagFor(t)}}))).pipe(yg(e=>_h(this.issuesCacheManager.get(t))))}fetchGraphqlList(e,t,i,n){return j(this.withPagination(i)(e,t)).pipe(D(e=>e.reduce((e,t)=>e.concat(i(t)),[]).map(e=>new n(e.node))),Tg(()=>new Nh({status:304})))}withPagination(e){return(t,i={})=>(0,HP.mG)(this,void 0,void 0,function*(){const n=i.cursor||null;return this.apollo.watchQuery({query:t,variables:Object.assign(Object.assign({},i),{cursor:n})}).refetch().then(n=>(0,HP.mG)(this,void 0,void 0,function*(){const r=Array.isArray(n)?n:[n],s=e(n),o=0===s.length?null:s[s.length-1].cursor;if(s.length<100||!o)return r;const a=yield this.withPagination(e)(t,Object.assign(Object.assign({},i),{cursor:o}));return r.concat(a)}))})}}return e.IF_NONE_MATCH_EMPTY={"If-None-Match":""},e.\u0275fac=function(t){return new(t||e)(Tn(rY),Tn(dv),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class hY{constructor(e){Object.assign(this,e)}get tutorialClassId(){const[e,t]=this.id.split("-");return`${e}-${t}`}get teamId(){return this.id.split("-")[2]}}var pY=(()=>(function(e){e.Admin="Admin",e.Tutor="Tutor",e.Student="Student"}(pY||(pY={})),pY))();let mY=(()=>{class e{constructor(e){this.githubService=e}getDataFile(){return this.githubService.fetchDataFile().pipe(D(e=>this.constructData(e)),D(e=>(this.dataFile={teamStructure:this.extractTeamStructure(e)},e)))}constructData(t){const i={},n=t.data;return i[e.ROLES]=this.parseRolesData(n),i[e.TEAM_STRUCTURE]=this.parseTeamStructureData(n),i[e.STUDENTS_ALLOCATION]=this.parseStudentAllocation(n),i[e.TUTORS_ALLOCATION]=this.parseTutorAllocation(n),i[e.ADMINS_ALLOCATION]=this.parseAdminAllocation(n),i}parseAdminAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{t[e.ROLE]===pY.Admin.toLowerCase()&&(i[t[e.NAME].toLowerCase()]={})}),i}parseTutorAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Tutor.toLowerCase())return;const n=i[t[e.NAME].toLowerCase()]||{};n[t[e.TEAM]]="true",i[t[e.NAME].toLowerCase()]=n}),i}parseStudentAllocation(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Student.toLowerCase())return;const n={};n[e.TEAM_ID]=t[e.TEAM],i[t[e.NAME].toLowerCase()]=n}),i}parseTeamStructureData(t){const i={};return this.parseUsersData(t).forEach(t=>{if(t[e.ROLE]!==pY.Student.toLowerCase())return;const n=i[t[e.TEAM]]||{};n[t[e.NAME].toLowerCase()]=t[e.NAME],i[t[e.TEAM]]=n}),i}parseRolesData(t){const i={},n={},r={},s={};return this.parseUsersData(t).forEach(t=>{t[e.ROLE]===pY.Student.toLowerCase()?n[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===pY.Tutor.toLowerCase()?r[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===pY.Admin.toLowerCase()&&(s[t[e.NAME].toLowerCase()]="true")}),i[e.STUDENTS]=n,i[e.TUTORS]=r,i[e.ADMINS]=s,i}parseUsersData(e){const t=e.split("\n").filter(e=>e.trim()),i=t[0].split(",").map(e=>e.trim()),n=[];for(let r=1;re.trim()),s={};for(let t=0;t{const t=Object.values(n[e]).map(e=>({loginId:e,role:pY.Student}));i.set(e,new hY({id:e,teamMembers:t}))}),i}reset(){this.dataFile=void 0}}return e.ROLES="roles",e.TEAM_STRUCTURE="team-structure",e.STUDENTS_ALLOCATION="students-allocation",e.TUTORS_ALLOCATION="tutors-allocation",e.ADMINS_ALLOCATION="admins-allocation",e.NAME="name",e.TEAM="team",e.ROLE="role",e.TEAM_ID="teamId",e.STUDENTS="students",e.TUTORS="tutors",e.ADMINS="admins",e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fY=(()=>{class e{constructor(e,t,i){this.githubService=e,this.dataService=t,this.logger=i}getAuthenticatedUser(){return this.githubService.fetchAuthenticatedUser().pipe(D(e=>e))}createUserModel(e){return this.dataService.getDataFile().pipe(D(t=>(this.currentUser=this.createUser(t,e),this.currentUser)),bh(e=>null!==e),Tg(()=>new Error("Unauthorized user.")))}reset(){this.logger.info("UserService: Clearing current user"),this.currentUser=void 0}createUser(e,t){const i=t.toLowerCase(),n=this.parseUserRole(e,i);switch(n){case pY.Student:return{loginId:t,role:n,team:this.createTeamModel(e[mY.TEAM_STRUCTURE],e[mY.STUDENTS_ALLOCATION][i][mY.TEAM_ID])};case pY.Tutor:return{loginId:t,role:n,allocatedTeams:Object.keys(e[mY.TUTORS_ALLOCATION][i]).map(t=>this.createTeamModel(e[mY.TEAM_STRUCTURE],t))};case pY.Admin:return{loginId:t,role:n,allocatedTeams:Object.keys(e[mY.ADMINS_ALLOCATION][i]).map(t=>this.createTeamModel(e[mY.TEAM_STRUCTURE],t))};default:return null}}createTeamModel(e,t){const i=Object.values(e[t]).map(e=>({loginId:e,role:pY.Student}));return new hY({id:t,teamMembers:i})}parseUserRole(e,t){let i;return e[mY.ROLES][mY.STUDENTS]&&e[mY.ROLES][mY.STUDENTS][[t]]&&(i=pY.Student),e[mY.ROLES][mY.TUTORS]&&e[mY.ROLES][mY.TUTORS][[t]]&&(i=pY.Tutor),e[mY.ROLES][mY.ADMINS]&&e[mY.ROLES][mY.ADMINS][[t]]&&(i=pY.Admin),i}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(mY),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function gY(e,t){return t?i=>i.pipe(gY((i,n)=>j(e(i,n)).pipe(D((e,r)=>t(i,e,n,r))))):t=>t.lift(new _Y(e))}class _Y{constructor(e){this.project=e}call(e,t){return t.subscribe(new yY(e,this.project))}}class yY extends N{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new q(this),i=this.destination;i.add(t);const n=H(e,t);n!==t&&i.add(n)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class bY{constructor(e){Object.assign(this,e)}convertToGraphqlFilter(){return{assignee:this.assignee,createdBy:this.creator,labels:this.labels,mentioned:this.mentioned,milestone:this.milestone,since:this.since,states:["close"===this.state?rw.Closed:rw.Open]}}}let vY=(()=>{class e{constructor(t){this.data=new Map;const i=t.match(e.REGEX);if(this.originalStringWithoutHiddenData=t.replace(e.REGEX,"").trim(),null!==i)for(const e of i){let t=e.replace("\x3c!--","").trim();t=t.replace("--\x3e","").trim();const i=t.split(":").map(e=>e.trim());if(2!==i.length){this.originalStringWithoutHiddenData+=`\n${e}`;continue}const[n,r]=i;this.data.has(n)||this.data.set(n,r)}}static embedDataIntoString(e,t){let i=e;return t.forEach((e,t)=>{i+=`\n\x3c!--${t}: ${e}--\x3e`}),i}toString(){let e="";return this.data.forEach((t,i)=>{e+=`\x3c!--${i}: ${t}--\x3e`}),e}}return e.REGEX=//gm,e})();var wY=i(16738),kY=(()=>(function(e){e.phaseBugReporting="phaseBugReporting",e.phaseTeamResponse="phaseTeamResponse",e.phaseTesterResponse="phaseTesterResponse",e.phaseModeration="phaseModeration"}(kY||(kY={})),kY))();class SY{constructor(e){this.parser=e}findConformingComment(e){let t,i;for(const n of e)if(i=this.parser.run(n.body),!i.isError){this.parseResult=i.result,t=n;break}return void 0===t&&(this.parseFailure=!0,i&&(this.parseError=i.error)),t}}const{endOfInput:TY,sequenceOf:EY,startOfInput:xY,str:MY}=i(80930),CY="Your response not required for this bug as the team has accepted the bug as it is.",DY=EY([xY,MY(CY),TY]);class LY extends SY{constructor(e){super(DY),this.findConformingComment(e),!this.parseFailure&&(this.teamAccepted=!0)}}const{char:OY,choice:AY,coroutine:IY,everyCharUntil:RY,str:PY,whitespace:YY}=i(80930);function FY(e){return IY(function*(){yield PY("# Team's Response"),yield YY;const t=yield RY(PY(e));return t.trim()?t.trim():"No details provided by team."})}function jY(e){return IY(function*(){yield PY("- [");const t=yield AY([OY("x"),YY]);return yield PY("] "+e),"x"===t})}const{choice:qY,coroutine:NY,digits:HY,str:UY,whitespace:zY}=i(80930),BY="## Duplicate status (if any):",VY=FY(BY),$Y=NY(function*(){yield UY("Duplicate of #");const e=yield HY;return parseInt(e,10)}),WY=NY(function*(){const e=yield VY;return yield UY(BY),yield zY,{teamResponse:e,issueNumber:yield qY([$Y,UY("--")]).map(e=>"--"===e?null:e)}});class GY extends SY{constructor(e){super(WY);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body,createdAt:t.created_at,updatedAt:t.updated_at}),this.teamResponse=this.parseResult.teamResponse,this.duplicateOf=this.parseResult.issueNumber)}}class ZY{constructor(e,t){this.description=e,this.isChecked=t}setChecked(e){this.isChecked=e}toString(){return`- ${this.isChecked?"[x]":"[ ]"} ${this.description}`}}class QY{constructor(e,t,i,n,r){this.TITLE_PREFIX="## :question: ",this.DISAGREEMENT_PREFIX="**Reason for disagreement:** ",this.INITIAL_RESPONSE="[replace this with your explanation]",this.LINE_BREAK="
\n",this.title=e,this.description=t,this.disagreeCheckbox=new ZY(i,n),this.reasonForDisagreement=r}toString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.disagreeCheckbox.toString()+"\n\n",e+=this.DISAGREEMENT_PREFIX+this.reasonForDisagreement+"\n\n",e+=this.LINE_BREAK,e}isDisagree(){return this.disagreeCheckbox.isChecked}compareTo(e){return this.isDisagree()===e.isDisagree()?this.reasonForDisagreement.localeCompare(e.reasonForDisagreement):this.isDisagree()?1:-1}getTitleInMarkDown(){return`## ${this.title}`}getDisagreementWithoutDefaultResponse(){return this.reasonForDisagreement.replace(this.INITIAL_RESPONSE," ")}setDisagree(e){this.disagreeCheckbox.setChecked(e)}setReasonForDisagreement(e){this.reasonForDisagreement=e}}const{between:KY,coroutine:JY,everyCharUntil:XY,letters:eF,lookAhead:tF,optionalWhitespace:iF,pipeParsers:nF,possibly:rF,str:sF,whitespace:oF}=i(80930),aF="
",lF="Team chose to mark this issue as a duplicate of another issue (as explained in the _**Team's response**_ above)",uF=jY("I disagree");function cF(e){return KY(sF("[`"+e+"."))(sF("`]"))(eF)}const dF=JY(function*(){yield sF("**Reason for disagreement:** ");const e=yield XY(sF(aF));return yield sF(aF),e.trim()}),hF=JY(function*(){yield sF("status"),yield oF,yield sF(lF),yield oF;const e=yield uF;return yield oF,{disagreeCheckboxValue:e,reasonForDisagreement:yield dF}}),pF=JY(function*(){yield sF("## :question: Issue ");const e=yield eF;if(yield oF,"duplicate"===e){const t=yield hF;return yield iF,{title:e+" status",description:lF,teamChose:null,testerChose:null,disagreeCheckboxValue:t.disagreeCheckboxValue,reasonForDisagreement:t.reasonForDisagreement}}const t=yield tF(XY(uF)),i=function(e){const t=cF(e);return nF([sF("Team chose "),t])}(e),n=function(e){const t=cF(e);return nF([sF("Originally "),t])}(e),r=yield i;yield oF;const s=yield rF(n);yield iF;const o=yield uF;yield oF;const a=yield dF;return yield iF,{title:e,description:t.trim(),teamChose:r,testerChose:s,disagreeCheckboxValue:o,reasonForDisagreement:a}}),{coroutine:mF,many1:fF,str:gF,optionalWhitespace:_F,possibly:yF,whitespace:bF}=i(80930),vF="# Items for the Tester to Verify",wF=FY(vF),kF=mF(function*(){yield yF(gF("[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]")),yield _F;const e=yield wF;yield gF(vF),yield bF;const t=yield fF(pF);let i,n,r=!1;const s=[];for(const o of t)o.disagreeCheckboxValue&&(r=!0),"severity"===o.title?i=o.teamChose:"type"===o.title&&(n=o.teamChose),s.push(new QY("Issue "+o.title,o.description,"I disagree",o.disagreeCheckboxValue,o.reasonForDisagreement));return{teamResponse:e,testerResponses:s,testerDisagree:r,teamChosenSeverity:i,teamChosenType:n}});class SF extends SY{constructor(e){super(kF);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body}),this.teamResponse=this.parseResult.teamResponse,this.testerResponses=this.parseResult.testerResponses,this.testerDisagree=this.parseResult.testerDisagree,this.teamChosenSeverity=this.parseResult.teamChosenSeverity,this.teamChosenType=this.parseResult.teamChosenType)}}class TF{constructor(e,t){this.TODO_DESCRIPTION="Done",this.INITIAL_RESPONSE="[replace this with your explanation]",this.TITLE_PREFIX="## :question: ",this.LINE_BREAK="
\n",this.title=e,this.description=t,this.tutorResponse=this.INITIAL_RESPONSE,this.todo=new ZY(this.TODO_DESCRIPTION,!1)}isDone(){return this.todo.isChecked}toTutorResponseString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.todo.toString()+"\n\n",e+=this.tutorResponse+"\n\n",e+=this.LINE_BREAK,e}compareTo(e){return this.isDone()===e.isDone()?this.tutorResponse.localeCompare(e.tutorResponse):this.isDone()?1:-1}toString(){let e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.LINE_BREAK,e}setTutorResponse(e){this.tutorResponse=e}setIsDone(e){this.todo.setChecked(e)}}const{coroutine:EF,everyCharUntil:xF,optionalWhitespace:MF,str:CF}=i(80930),DF="
",LF=EF(function*(){yield CF("## :question: ");const e=yield xF(CF("### Team says:")),t=yield xF(CF(DF));return yield CF(DF),yield MF,new TF(e.trim(),t.trim())}),{coroutine:OF,everyCharUntil:AF,many1:IF,str:RF,whitespace:PF}=i(80930),YF="# Disputes",FF=FY(YF),jF=OF(function*(){yield RF("# Issue Description"),yield PF;const e=yield AF(RF("# Team's Response")),t=yield FF;yield RF(YF),yield PF;const i=yield IF(LF);return{description:e.trim(),teamResponse:t,issueDisputes:i}});class qF extends SY{constructor(e){super(jF);const t=jF.run(e.body);t.isError?this.parseFailure=!0:(this.parseResult=t.result,this.description=this.parseResult.description,this.teamResponse=this.parseResult.teamResponse,this.disputes=this.parseResult.issueDisputes)}}const{coroutine:NF,everyCharUntil:HF,lookAhead:UF,optionalWhitespace:zF,str:BF,whitespace:VF}=i(80930),$F="
",WF=jY("Done"),GF=NF(function*(){yield BF("## :question: ");const e=yield HF(BF("- [")),t=yield UF(HF(BF($F))),i=yield WF;yield VF;const n=yield HF(BF($F));yield BF($F),yield zF;const r=new TF(e.trim(),t.trim());return r.todo=new ZY("Done",i),r.tutorResponse=n.trim(),r}),{coroutine:ZF,many1:QF,str:KF,whitespace:JF}=i(80930),XF=ZF(function*(){return yield KF("# Tutor Moderation"),yield JF,{disputesToResolve:yield QF(GF)}});class ej extends SY{constructor(e){super(XF);const t=this.findConformingComment(e);this.parseFailure||(this.comment=Object.assign(Object.assign({},t),{description:t.body}),this.disputesToResolve=this.parseResult.disputesToResolve)}}class tj{constructor(e){this.globalId=e.id,this.id=+e.number,this.created_at=wY(e.created_at).format("lll"),this.title=e.title,this.hiddenDataInDescription=new vY(e.body),this.description=tj.updateDescription(this.hiddenDataInDescription.originalStringWithoutHiddenData),this.githubIssue=e,this.severity=e.findLabel($P.LABELS.severity),this.type=e.findLabel($P.LABELS.type),this.response=e.findLabel($P.LABELS.response),this.duplicated=!!e.findLabel($P.LABELS.duplicated,!1),this.status=e.findLabel($P.LABELS.status),this.pending=e.findLabel($P.LABELS.pending)}static formatText(e){return null===e?null:void 0!==e?e.split(/[\n\r]/gi).filter(e=>""!==e.trim()).length>0?`${e}\n\n`:e:void 0}static updateDescription(e){return tj.orDefaultString(tj.formatText(e),"No details provided by bug reporter.")}static updateTeamResponse(e){return tj.orDefaultString(tj.formatText(e),"No details provided by team.")}static orDefaultString(e,t){return e&&0!==e.length?e:t}static createPhaseBugReportingIssue(e){return new tj(e)}static createPhaseTeamResponseIssue(e,t){const i=new tj(e),n=new GY(e.comments);return i.githubComments=e.comments,i.teamAssigned=t,i.assignees=e.assignees.map(e=>e.login),i.teamResponseError=n.parseFailure,i.parseError=n.parseError,i.issueComment=n.comment,i.teamResponse=n.teamResponse,i.duplicateOf=n.duplicateOf,i.duplicated=null!=i.duplicateOf,i}static createPhaseTesterResponseIssue(e){const t=new tj(e),i=new SF(e.comments),n=new LY(e.comments);return t.githubComments=e.comments,t.testerResponseError=i.parseFailure&&n.parseFailure,t.parseError=i.parseError,t.teamAccepted=n.teamAccepted,t.issueComment=i.comment,t.teamResponse=i.teamResponse,t.testerResponses=i.testerResponses,t.testerDisagree=i.testerDisagree,t.teamChosenSeverity=i.teamChosenSeverity||null,t.teamChosenType=i.teamChosenType||null,t}static createPhaseModerationIssue(e,t){const i=new tj(e),n=new qF(e),r=new ej(e.comments);return i.githubComments=e.comments,i.teamAssigned=t,i.description=n.description,i.teamResponse=n.teamResponse,i.issueDisputes=n.disputes,r.disputesToResolve&&r.comment&&(i.issueDisputes=r.disputesToResolve.map((e,t)=>(e.description=n.disputes[t].description,e)),i.issueComment=r.comment),i}clone(e){switch(e){case kY.phaseBugReporting:return tj.createPhaseBugReportingIssue(this.githubIssue);case kY.phaseTeamResponse:return tj.createPhaseTeamResponseIssue(this.githubIssue,this.teamAssigned);case kY.phaseTesterResponse:return tj.createPhaseTesterResponseIssue(this.githubIssue);case kY.phaseModeration:return tj.createPhaseModerationIssue(this.githubIssue,this.teamAssigned);default:return tj.createPhaseBugReportingIssue(this.githubIssue)}}retainResponses(e,t){switch(this.issueComment=t.issueComment,this.githubComments=t.githubComments,e){case kY.phaseBugReporting:this.description=t.description;break;case kY.phaseTeamResponse:this.teamResponse=t.teamResponse;break;case kY.phaseTesterResponse:this.testerResponses=t.testerResponses,this.teamResponse=t.teamResponse;break;case kY.phaseModeration:this.issueDisputes=t.issueDisputes}}updateTesterResponse(e){const t=new SF([e]);this.issueComment=t.comment,this.teamResponse=t.teamResponse,this.testerResponses=t.testerResponses}updateDispute(e){const t=new ej([e]);this.issueComment=t.comment,this.issueDisputes=t.disputesToResolve.map((e,t)=>(e.description=this.issueDisputes[t].description,e))}createGithubIssueDescription(){return`${this.description}\n${this.hiddenDataInDescription.toString()}`}createGithubTeamResponse(){return`# Team's Response\n${this.teamResponse}\n## Duplicate status (if any):\n${this.duplicateOf?`Duplicate of #${this.duplicateOf}`:"--"}`}createGithubTutorResponse(){let e="# Tutor Moderation\n\n";if(void 0!==this.issueDisputes)for(const t of this.issueDisputes)e+=t.toTutorResponseString();return e}createGithubTesterResponse(){return`# Team's Response\n${this.teamResponse}\n# Items for the Tester to Verify\n${this.getTesterResponsesString(this.testerResponses)}`}numOfUnresolvedDisputes(){return this.issueDisputes?this.issueDisputes.reduce((e,t)=>e+Number(!t.isDone()),0):0}getTesterResponsesString(e){let t="";for(const i of e)t+=i.toString();return t}}const ij={"-":0,VeryLow:1,Low:2,Medium:3,High:4},nj={"-":0,DocumentationBug:1,FeatureFlaw:2,FunctionalityBug:3};var rj=(()=>(function(e){e.Incomplete="Incomplete",e.Done="Done"}(rj||(rj={})),rj))(),sj=(()=>(function(e){e.NoFilter="NoFilter",e.NoAccess="NoAccess",e.FilterByCreator="FilterByCreator",e.FilterByTeam="FilterByTeam",e.FilterByTeamAssigned="FilterByTeamAssigned"}(sj||(sj={})),sj))();const oj={phaseBugReporting:{Student:sj.FilterByCreator,Tutor:sj.NoFilter,Admin:sj.NoFilter},phaseTeamResponse:{Student:sj.FilterByTeam,Tutor:sj.FilterByTeamAssigned,Admin:sj.NoFilter},phaseTesterResponse:{Student:sj.NoFilter,Tutor:sj.NoAccess,Admin:sj.NoFilter},phaseModeration:{Student:sj.NoAccess,Tutor:sj.FilterByTeamAssigned,Admin:sj.NoFilter}},aj=IP.version;let lj=(()=>{class e{constructor(e){this.githubService=e,this.currentVersion=aj}isApplicationOutdated(){return this.latestVersion?_h(this.isOutdatedVersion(this.latestVersion,this.currentVersion)):this.githubService.fetchLatestRelease().pipe(D(e=>(this.latestVersion=e.tag_name.substring(1),this.latestReleaseUrl=e.html_url,this.isOutdatedVersion(this.latestVersion,this.currentVersion))))}isOutdatedVersion(e,t){return 1===this.compareVersions(e,t)}compareVersions(e,t){const i=e.split("."),n=t.split("."),r=Math.min(e.length,t.length),s=[],o=[];for(let a=0;ao[a])return 1;if(s[a]-1&&(this.count=i-1),t.subscribe(this._unsubscribeAndRecycle())}}}function dj(){return b(UP(e=>void 0!==e,()=>new Error("Session Data Unavailable")),UP(hj,()=>new Error("Session data does not define an 'openPhases' key")),UP(fj,()=>new Error("There are no accessible phases")),UP(pj,()=>new Error("Invalid Open Phases detected")),UP(mj,()=>new Error("Opened Phase has no repo defined")))}function hj(e){return null!=e.openPhases}function pj(e){return e.openPhases.reduce((e,t)=>e&&t in kY,!0)}function mj(e){return e.openPhases.reduce((t,i)=>t&&!!e[i],!0)}function fj(e){return 0!==e.openPhases.length}class gj{constructor(e,t,i,n){this.labelValue=t,this.labelColor=i,this.labelCategory=e,this.labelDefinition=n}getFormattedName(){return void 0===this.labelCategory||""===this.labelCategory?this.labelValue:this.labelCategory.concat(".",this.labelValue)}equals(e){return this.labelValue===e.labelValue&&this.labelColor===e.labelColor&&this.labelCategory===e.labelCategory}}const _j="ffffff",yj={severity:{VeryLow:new gj("severity","VeryLow","ffe0e0","

A flaw that is purely cosmetic and does not affect usage. For example,

  • typo issues
  • spacing issues
  • layout issues
  • color issues
  • font issues
in the docs or the UI that doesn't affect usage.

"),Low:new gj("severity","Low","ffcccc","

A flaw that is unlikely to affect normal operations of the product. Appears only in very rare situations and causes a minor inconvenience only.

"),Medium:new gj("severity","Medium","ff9999","

A flaw that causes occasional inconvenience to some users but they can continue to use the product.

"),High:new gj("severity","High","ff6666","

A flaw that affects most users and causes major problems for users.i.e., makes the product almost unusable for most users.

")},type:{DocumentationBug:new gj("type","DocumentationBug","d966ff",'

A flaw in the documentation e.g., a missing step, a wrong instruction, typos

'),FeatureFlaw:new gj("type","FeatureFlaw","d966ff","

Some functionality missing from a feature delivered in the current version in a way that the feature becomes less useful to the intended target user for normal usage. i.e., the feature is not 'complete'.\nIn other words, an acceptance-testing bug that falls within the scope of the current version features. These issues are counted against the product design aspect of the project.

"),FunctionalityBug:new gj("type","FunctionalityBug","9900cc","

A functionality does not work as specified/expected.

")},response:{Accepted:new gj("response","Accepted","00802b","

You accept it as a bug.

"),CannotReproduce:new gj("response","CannotReproduce","ffebcc","

You are unable to reproduce the behavior reported in the bug after multiple tries.

"),IssueUnclear:new gj("response","IssueUnclear","ffcc80","

The issue description is not clear.

"),NotInScope:new gj("response","NotInScope","ffcc80",'

It is a valid issue but not something the team should be penalized for e.g., it was not related to features delivered in this version.

'),Rejected:new gj("response","Rejected","ff9900","

What tester treated as a bug is in fact the expected behavior (from the user's point of view), or the tester was mistaken in some other way.

")},status:{Done:new gj("status","Done","a6a6a6"),Incomplete:new gj("status","Incomplete","000000")},others:{duplicate:new gj(void 0,"duplicate","0066ff")}};class bj{constructor(e,t){this.githubService=e,this.logger=t}static getRequiredLabelsAsArray(e){let t=[];return Object.values(e?this.allLabelArrays:this.testerLabelArrays).map(e=>t=t.concat(e)),t}static updateRequiredLabelColor(e,t){const i=bj.allLabelArrays[t.labelCategory];i&&(i.find(e=>e.labelValue===t.labelValue).labelColor=e)}syncLabels(e){return b(U(()=>this.synchronizeRemoteLabels(e)))}synchronizeRemoteLabels(e){return this.githubService.fetchAllLabels().pipe(D(e=>e.map(this.toLabel)),D(t=>(this.ensureRepoHasRequiredLabels(t,bj.getRequiredLabelsAsArray(e)),t)))}getLabelList(e){switch(e){case"severity":return bj.severityLabels;case"type":return bj.typeLabels;case"response":return bj.responseLabels}this.logger.info(`LabelService: Unfiltered Attribute ${e} in getLabelList`)}getLabelTitle(e){switch(e){case"severity":return"Severity";case"type":return"Bug Type";case"response":return"Response"}this.logger.info(`LabelService: Unfiltered Attribute ${e} in getLabelTitle`)}getColorOfLabel(e,t){if(""===t||!bj.allLabelArrays[e])return this.logger.info(`LabelService: Unfiltered Attribute, ${t}: ${e} in getColorOfLabel`),_j;const i=bj.allLabelArrays[e].find(e=>e.labelValue===t);return void 0===i||void 0===i.labelColor?_j:i.labelColor}getLabelDefinition(e,t){if(""===e||null===e||""===t||null===t)return null;const i=bj.getRequiredLabelsAsArray(!0).find(i=>i.labelValue===e&&i.labelCategory===t);return void 0===i||void 0===i.labelDefinition?null:i.labelDefinition}ensureRepoHasRequiredLabels(e,t){t.forEach(t=>{const i=e.filter(e=>e.getFormattedName()===t.getFormattedName());if(0===i.length)this.githubService.createLabel(t.getFormattedName(),t.labelColor);else{if(1!==i.length)throw new Error("Unexpected error: the repo has multiple labels with the same name "+t.getFormattedName());i[0].equals(t)||bj.updateRequiredLabelColor(i[0].labelColor,t)}})}toLabel(e){let t,i;const n=String(e.name);[t,i]=/\./g.test(n)?e.name.split("."):[void 0,n];const r=e.color,s=String(e.description);return new gj(t,i,r,s)}isDarkColor(e){const t="#"===e.charAt(0)?e.substring(1,7):e,i=[parseInt(t.substring(0,2),16)/255,parseInt(t.substring(2,4),16)/255,parseInt(t.substring(4,6),16)/255].map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*i[0]+.7152*i[1]+.0722*i[2]<.184}setLabelStyle(e,t="inline-flex"){let i;return i=this.isDarkColor(e)?_j:"000000",{"background-color":`#${e}`,"border-radius":"3px",cursor:"default",padding:"3px",color:`#${i}`,"font-weight":"410",display:t}}}bj.severityLabels=Object.values(yj.severity),bj.typeLabels=Object.values(yj.type),bj.responseLabels=Object.values(yj.response),bj.statusLabels=Object.values(yj.status),bj.otherLabels=Object.values(yj.others),bj.allLabelArrays={severity:bj.severityLabels,type:bj.typeLabels,response:bj.responseLabels,status:bj.statusLabels,others:bj.otherLabels},bj.testerLabelArrays={severity:bj.severityLabels,type:bj.typeLabels},bj.\u0275fac=function(e){return new(e||bj)(Tn(dY),Tn(iY))},bj.\u0275prov=fe({token:bj,factory:bj.\u0275fac,providedIn:"root"});let vj=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL))},e.\u0275cmp=Ve({type:e,selectors:[["app-session-fix-confirmation"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-button","","mat-raised-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1),Jo(),Ko(2,"div",1),Ko(3,"p"),Fa(4),Jo(),Ko(5,"p"),Fa(6,"in your Github Account?"),Jo(),Jo(),Ko(7,"div",2),Ko(8,"button",3),Fa(9,"No Thanks"),Jo(),Ko(10,"button",4),Fa(11,"Yes"),Jo(),Jo()),2&e&&(fs(1),qa("Hi ",t.data.user,""),fs(3),qa('Do you want CATcher to create a repository named "',t.data.repoName,'"'),fs(4),Zo("mat-dialog-close",!1),fs(2),Zo("mat-dialog-close",!0))},directives:[BL,VL,$L,oD,zL],styles:[""]}),e})(),wj=(()=>{class e{constructor(e,t,i){this.githubService=e,this.userService=t,this.repoCreationConfirmationDialog=i}requestRepoCreationPermissions(e,t){return b(U(i=>i||e!==kY.phaseBugReporting?_h(null):this.openRepoCreationConfirmation(t)))}openRepoCreationConfirmation(e){return this.repoCreationConfirmationDialog.open(vj,{data:{user:this.userService.currentUser.loginId,repoName:e}}).afterClosed()}verifyRepoCreationPermissions(e){return b(Ig(t=>{if(null!==t){if(!1===t)throw new Error("You cannot proceed without the required repository.");if(e!==kY.phaseBugReporting)throw new Error("Current Phase's Repository has not been opened.");if(this.userService.currentUser.role!==pY.Student)throw new Error("'Bug-Reporting Phase's repository initialisation is only available to Students.'")}}))}attemptRepoCreation(e){return b(U(t=>null===t?_h(null):(this.githubService.createRepository(e),new w(e=>{setTimeout(()=>e.next(!0),1e3)}))))}verifyRepoCreation(e,t){return b(U(i=>i?this.githubService.isRepositoryPresent(e,t):_h(!0)))}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(fY),Tn(HL))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kj={[kY.phaseBugReporting]:"Bug Reporting Phase",[kY.phaseTeamResponse]:"Team's Response Phase",[kY.phaseTesterResponse]:"Tester's Response Phase",[kY.phaseModeration]:"Moderation Phase"};let Sj=(()=>{class e{constructor(e,t,i){this.githubService=e,this.labelService=t,this.repoCreatorService=i,this.phaseRepoOwners={phaseBugReporting:"",phaseTeamResponse:"",phaseTesterResponse:"",phaseModeration:""}}setPhaseOwners(e,t){this.orgName=e,this.phaseRepoOwners.phaseBugReporting=t,this.phaseRepoOwners.phaseTeamResponse=e,this.phaseRepoOwners.phaseTesterResponse=t,this.phaseRepoOwners.phaseModeration=e}getPhaseOwner(e){return this.phaseRepoOwners[e]}fetchSessionData(){return this.githubService.fetchSettingsFile().pipe(D(e=>e))}storeSessionData(){return this.fetchSessionData().pipe(dj(),D(e=>{localStorage.setItem("sessionData",JSON.stringify(e)),this.updateSessionParameters(e)}))}setSessionData(){const e=JSON.parse(localStorage.getItem("sessionData"));this.updateSessionParameters(e)}githubRepoPermissionLevel(){return this.sessionData.openPhases.includes(kY.phaseModeration)?"repo":"public_repo"}verifySessionAvailability(e){return this.githubService.isRepositoryPresent(this.phaseRepoOwners[this.currentPhase],e[this.currentPhase])}updateSessionParameters(e){this.sessionData=e,this.currentPhase=kY[e.openPhases[0]],this.repoName=e[e.openPhases[0]],this.githubService.storePhaseDetails(this.phaseRepoOwners[this.currentPhase],this.repoName)}sessionSetup(){let e=!1;return this.fetchSessionData().pipe(dj(),U(e=>(this.updateSessionParameters(e),this.verifySessionAvailability(e))),this.repoCreatorService.requestRepoCreationPermissions(this.currentPhase,this.sessionData[this.currentPhase]),b(Ig(t=>{e=t||!1})),this.repoCreatorService.verifyRepoCreationPermissions(this.currentPhase),this.repoCreatorService.attemptRepoCreation(this.sessionData[this.currentPhase]),this.repoCreatorService.verifyRepoCreation(this.getPhaseOwner(this.currentPhase),this.sessionData[this.currentPhase]),UP(e=>e,()=>new Error("Session Availability Fix failed.")),this.labelService.syncLabels(this.isTeamOrModerationPhase()),function(e=-1){return t=>t.lift(new uj(e,t))}(1))}isTeamOrModerationPhase(){return this.currentPhase===kY.phaseTeamResponse||this.currentPhase===kY.phaseModeration}getPhaseDetail(){return this.orgName.concat("/").concat(this.repoName)}isValidRoute(e){return e.startsWith("/"+this.currentPhase)}reset(){this.currentPhase=null}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(bj),Tn(wj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Tj=(()=>{class e{constructor(e,t,i,n,r){this.githubService=e,this.userService=t,this.phaseService=i,this.dataService=n,this.logger=r,this.issueTeamFilter="All Teams",this.isLoading=new Gf(!1),this.issues$=new Gf(new Array)}startPollIssues(){void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=fS(0,e.POLL_INTERVAL).pipe(gY(()=>this.reloadAllIssues().pipe(yg(()=>rg),Yg(()=>this.isLoading.next(!1))))).subscribe())}stopPollIssues(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}pollIssue(t){return fS(0,e.POLL_INTERVAL).pipe(gY(()=>this.githubService.fetchIssueGraphql(t).pipe(D(e=>{const t=this.createIssueModel(e);return this.updateLocalStore(t),t}),yg(e=>this.getIssue(t)))))}reloadAllIssues(){return this.initializeData()}getIssue(e){return void 0===this.issues?this.getLatestIssue(e):_h(this.issues[e])}getLatestIssue(e){return this.githubService.fetchIssueGraphql(e).pipe(D(t=>(this.createAndSaveIssueModel(t),this.issues[e])),yg(t=>_h(this.issues[e])))}createIssue(e,t,i,n){const r=[this.createLabel("severity",i),this.createLabel("type",n)],s=new Map([["session",this.sessionId],["Version",`Desktop v${aj}`]]),o=vY.embedDataIntoString(t,s);return this.githubService.createIssue(e,o,r).pipe(D(e=>this.createIssueModel(e)))}updateIssue(e){return this.updateGithubIssue(e).pipe(D(t=>(t.comments=e.githubComments,this.createIssueModel(t))))}updateGithubIssue(e){const t=this.phaseService.currentPhase===kY.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),t).pipe(yg(e=>this.parseUpdateIssueResponseError(e)))}updateIssueWithComment(e,t){return this.githubService.updateIssueComment(t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}updateTesterResponse(e,t){const i=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),n=e.clone(this.phaseService.currentPhase);return n.status=rj.Done,fw([i,this.updateIssue(n)]).pipe(D(e=>{const[t,i]=e;return i.updateTesterResponse(t),i}))}updateTutorResponse(e,t){return fw([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createTeamResponse(e){const t=e.createGithubTeamResponse();return this.updateGithubIssue(e).pipe(U(i=>this.githubService.createIssueComment(e.id,t).pipe(D(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],i.comments=e.githubComments,this.createIssueModel(i))))))}createTutorResponse(e,t){return fw([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createGithubIssueDescription(e){return this.phaseService.currentPhase===kY.phaseModeration?`# Issue Description\n${e.createGithubIssueDescription()}\n# Team's Response\n${e.teamResponse}\n # Disputes\n\n${this.getIssueDisputeString(e.issueDisputes)}\n`:e.createGithubIssueDescription()}getIssueDisputeString(e){let t="";for(const i of e)t+=i.toString();return t}deleteIssue(e){return this.githubService.closeIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.deleteFromLocalStore(t),t}))}undeleteIssue(e){return this.githubService.reopenIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.updateLocalStore(t),t}))}deleteFromLocalStore(e){const t=e.id,i=(0,HP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=i,this.issues$.next(Object.values(this.issues))}updateLocalStore(e){this.issues=Object.assign(Object.assign({},this.issues),{[e.id]:e}),this.issues$.next(Object.values(this.issues))}hasTeamResponse(e){return!!this.issues[e].teamResponse}getDuplicateIssuesFor(e){return this.issues$.pipe(D(t=>t.filter(t=>t.duplicateOf===e.id)))}reset(e){e&&(this.sessionId=void 0),this.issues=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new Gf(!1)}initializeData(){const e=[];switch(oj[this.phaseService.currentPhase][this.userService.currentUser.role]){case sj.FilterByCreator:e.push(this.githubService.fetchIssuesGraphql(new bY({creator:this.userService.currentUser.loginId})));break;case sj.FilterByTeam:e.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",this.userService.currentUser.team.tutorialClassId),this.createLabel("team",this.userService.currentUser.team.teamId),new bY({})));break;case sj.FilterByTeamAssigned:this.userService.currentUser.allocatedTeams.forEach(t=>{e.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",t.tutorialClassId),this.createLabel("team",t.teamId),new bY({})))});break;case sj.NoFilter:e.push(this.githubService.fetchIssuesGraphql(new bY({})));break;default:return _h([])}return fw(e).pipe(D(e=>{const t=[];for(const n of e)for(const e of n)t.push(this.createIssueModel(e).id),this.createAndSaveIssueModel(e);const i=this.getOutdatedIssueIds(t);return this.deleteIssuesFromLocalStore(i),Object.values(this.issues)}))}createAndSaveIssueModel(e){const t=this.createIssueModel(e);return this.updateLocalStore(t),!0}deleteIssuesFromLocalStore(e){e.forEach(e=>{this.getIssue(e).subscribe(e=>this.deleteFromLocalStore(e))})}getOutdatedIssueIds(e){if(void 0===this.issues||!e.length)return[];const t=new Set(e);return Object.keys(this.issues).map(e=>+e).filter(e=>!t.has(e))}createLabelsForIssue(e){const t=[];if(this.phaseService.currentPhase!==kY.phaseBugReporting&&this.phaseService.currentPhase!==kY.phaseTesterResponse){const i=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial",`${i[0]}-${i[1]}`),this.createLabel("team",i[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}createLabel(e,t){return`${e}.${t}`}extractTeamIdFromGithubIssue(e){return e.findLabel($P.LABELS.tutorial).concat("-").concat(e.findLabel($P.LABELS.team))}createIssueModel(e){let t;switch(this.phaseService.currentPhase){case kY.phaseBugReporting:t=tj.createPhaseBugReportingIssue(e);break;case kY.phaseTeamResponse:t=tj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;case kY.phaseTesterResponse:t=tj.createPhaseTesterResponseIssue(e);break;case kY.phaseModeration:t=tj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;default:return}return t.parseError&&this.logger.error("IssueService: "+t.parseError),t}parseUpdateIssueResponseError(e){if(this.logger.error("IssueService: ",e),422!==e.code||!e.hasOwnProperty("message"))return Qb(e.response.data.message);const t=e.message.substring("Validation Failed:".length),i=JSON.parse(t);return["field","code","value"].every(e=>i.hasOwnProperty(e))&&"assignees"===i.field&&"invalid"===i.code?Qb(`Assignee ${i.value} has not joined your organization yet. Please remove them from the assignees list.`):Qb(e.response.data.message)}setIssueTeamFilter(e){e&&(this.issueTeamFilter=e)}setSessionId(e){this.sessionId=e}getIssueTeamFilter(){return this.issueTeamFilter}}return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(fY),Tn(Sj),Tn(mY),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ej=(()=>{class e{constructor(e,t){this.githubService=e,this.issueService=t}setLatestChangeEvent(){return this.githubService.fetchEventsForRepo().pipe(D(e=>(0===e.length||(this.setLastModifiedTime(e[0].created_at),this.setLastModifiedCommentTime(e[0].issue.updated_at)),e)))}reloadPage(){return this.githubService.fetchEventsForRepo().pipe(U(e=>{if(0===e.length)return _h(!1);const t=e[0];return t.created_at!==this.lastModified||t.issue.updated_at!==this.lastModifiedComment?(this.setLastModifiedTime(t.created_at),this.setLastModifiedCommentTime(t.issue.updated_at),this.issueService.reloadAllIssues().pipe(D(e=>!0))):_h(!1)}))}setLastModifiedTime(e){this.lastModified=e}setLastModifiedCommentTime(e){this.lastModifiedComment=e}reset(){this.setLastModifiedTime(void 0),this.setLastModifiedCommentTime(void 0)}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(Tj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var xj=(()=>(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(xj||(xj={})),xj))();let Mj=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.router=e,this.ngZone=t,this.githubService=i,this.userService=n,this.issueService=r,this.phaseService=s,this.dataService=o,this.githubEventService=a,this.titleService=l,this.logger=u,this.authStateSource=new Gf(xj.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new Gf(void 0),this.ENABLE_POPUP_MESSAGE="Please enable pop-ups in your browser"}storeNext(t){sessionStorage.setItem(e.SESSION_NEXT_KEY,t.url)}getNext(){return sessionStorage.getItem(e.SESSION_NEXT_KEY)}clearNext(){sessionStorage.removeItem(e.SESSION_NEXT_KEY)}storeOAuthAccessToken(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}reset(){this.logger.info("AuthService: Clearing access token and setting AuthState to NotAuthenticated."),this.accessToken.next(void 0),this.changeAuthState(xj.NotAuthenticated),this.ngZone.run(()=>this.router.navigate([""]))}logOut(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}setTitleWithPhaseDetail(){const e=i(4147),t=`${e.name} ${e.version} - ${this.phaseService.getPhaseDetail()}`;this.logger.info(`AuthService: Setting Title as ${t}`),this.titleService.setTitle(t)}setLandingPageTitle(){const e=i(4147),t=`${e.name} ${e.version}`;this.logger.info(`AuthService: Setting LandingPageTitle as ${t}`),this.titleService.setTitle(t)}isAuthenticated(){return this.authStateSource.getValue()===xj.Authenticated}changeAuthState(e){if(e===xj.Authenticated){const e=`${Date.now()}-${NP()}`;this.issueService.setSessionId(e),this.logger.info(`AuthService: Successfully authenticated with session: ${e}`)}this.authStateSource.next(e)}generateStateString(){this.state=NP(),sessionStorage.setItem("state",this.state)}isReturnedStateSame(e){return e===sessionStorage.getItem("state")}startOAuthProcess(){this.logger.info("AuthService: Starting authentication");const e=this.phaseService.githubRepoPermissionLevel();this.changeAuthState(xj.AwaitingAuthentication),this.generateStateString(),this.redirectToOAuthPage(encodeURI(`${IP.githubUrl}/login/oauth/authorize?client_id=${IP.clientId}&scope=${e},read:user&state=${this.state}`)),this.logger.info("AuthService: Redirecting for Github authentication")}redirectToOAuthPage(e){null!=e&&(window.location.href=e)}navigateToLandingPage(){const e=this.getNext();e&&this.phaseService.isValidRoute(e)?this.router.navigateByUrl(e):this.router.navigateByUrl(this.phaseService.currentPhase)}}return e.SESSION_NEXT_KEY="next",e.\u0275fac=function(t){return new(t||e)(Tn(fb),Tn(cc),Tn(dY),Tn(fY),Tn(Tj),Tn(Sj),Tn(mY),Tn(Ej),Tn(gh),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Cj={profileName:{required:!0,validate:e=>!!e},repoName:{required:!0,validate:e=>!!e.match(/\w+\/\w+/g)}},Dj=e=>((e,t)=>Object.entries(t).every(([t,i])=>!i.required||t in e&&i.validate(e[t])))(e,Cj),Lj=new Error("profiles.json is malformed");let Oj=(()=>{class e{constructor(e){this.githubService=e}fetchExternalProfiles(){return this.githubService.getProfilesData().then(e=>e.json()).then(e=>e.profiles||[]).then(e=>(this.validateProfiles(e),e))}validateProfiles(e){if(!e.every(Dj))throw Lj}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Aj=(()=>{class e{constructor(e){this.dialogRef=e}ngOnInit(){}onClick(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(Go(RL))},e.\u0275cmp=Ve({type:e,selectors:[["app-json-parse-error-dialog"]],decls:14,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","center",2,"max-width","390px"],["mat-dialog-actions","","align","center"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1,'Error in "profiles.json" format'),Jo(),Ko(2,"div",1),Ko(3,"p",2),Fa(4,' The format of the "profiles.json" file is not as required. You might not have included '),Ko(5,"code"),Fa(6,"profileName"),Jo(),Fa(7," and "),Ko(8,"code"),Fa(9,"repoName"),Jo(),Fa(10," keys. Please refer to our User Guide for the correct format. "),Jo(),Jo(),Ko(11,"div",3),Ko(12,"button",4),la("click",function(){return t.onClick()}),Fa(13,"Ok"),Jo(),Jo())},directives:[BL,VL,$L,oD],styles:[""]}),e})();function Ij(e,t){if(1&e){const e=na();Ko(0,"mat-option",7),la("click",function(){const t=Yt(e).$implicit;return pa().selectProfile(t)}),Fa(1),Jo()}if(2&e){const e=t.$implicit;Zo("value",e.profileName),fs(1),ja(e.profileName)}}let Rj=(()=>{class e{constructor(e,t,i){this.errorDialog=e,this.profileService=t,this.errorHandlingService=i,this.ANIMATION_DURATION=250,this.profiles=[],this.blankProfile={profileName:"",repoName:""},this.animationActivated=!1,this.selectedProfile=this.blankProfile,this.selectedProfileEmitter=new vu,this.profilesData={isDirectoryMessageVisible:!1,fileName:null,fileDirectory:null}}ngOnInit(){this.initProfiles()}fileSelectorInitiation(e){this.animationActivated=!0,setTimeout(()=>{this.animationActivated=!1,e.click()},this.ANIMATION_DURATION)}fileSelected(e){const t=e.target,i=t.files[0],n=new FileReader;n.onload=()=>{if(!(n.result instanceof ArrayBuffer))try{const{profiles:e}=JSON.parse(n.result);this.profileService.validateProfiles(e),this.profiles=e.concat(this.profiles).filter(e=>!!e),t.value=""}catch(e){this.openErrorDialog()}},n.readAsText(i)}initProfiles(){this.profileService.fetchExternalProfiles().then(e=>{this.profiles=this.profiles.concat(e).filter(e=>!!e)}).then(()=>this.setUrlEncodedProfile(this.profiles)).catch(e=>{e===Lj?this.openErrorDialog():this.errorHandlingService.handleError(e)})}openErrorDialog(){this.errorDialog.open(Aj)}selectProfile(e){e===this.blankProfile||Dj(e)?this.selectedProfileEmitter.emit(e):this.openErrorDialog()}setUrlEncodedProfile(e){if(!this.urlEncodedSessionName)return;const t=e.find(e=>e.profileName===this.urlEncodedSessionName);t?(this.selectedProfile.profileName=this.urlEncodedSessionName,this.selectProfile(t)):this.errorHandlingService.handleError(new Error("Invalid URL provided session"))}}return e.\u0275fac=function(t){return new(t||e)(Go(HL),Go(Oj),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-profiles"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{selectedProfileEmitter:"selectedProfileEmitter"},decls:12,vars:3,consts:[[1,"profile-field"],[3,"value"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["type","file","accept",".json",2,"display","none",3,"change"],["fileInput",""],["type","button","mat-icon-button","","disableRipple","true","matTooltip","Configure your custom settings",1,"profile-input",3,"click","mousedown","mouseleave"],[3,"value","click"]],template:function(e,t){if(1&e){const e=na();Ko(0,"mat-form-field",0),Ko(1,"mat-label"),Fa(2,"Select Session"),Jo(),Ko(3,"mat-select",1),Ko(4,"mat-option",2),la("click",function(){return t.selectProfile(t.blankProfile)}),Fa(5,"None"),Jo(),$o(6,Ij,2,2,"mat-option",3),Jo(),Jo(),Ko(7,"input",4,5),la("change",function(e){return t.fileSelected(e)}),Jo(),Ko(9,"button",6),la("click",function(){Yt(e);const i=Wo(8);return t.fileSelectorInitiation(i)})("mousedown",function(){return t.animationActivated=!0})("mouseleave",function(){return t.animationActivated=!1}),Ko(10,"mat-icon"),Fa(11,"folder_open"),Jo(),Jo()}2&e&&(fs(3),Zo("value",t.selectedProfile.profileName),fs(3),Zo("ngForOf",t.profiles),fs(4),Zo("@triggerFileInput",t.animationActivated?"pressed":"normal"))},directives:[NC,AC,PA,mM,md,oD,BA,cL],styles:[".profile-field[_ngcontent-%COMP%]{width:90%}.profile-input[_ngcontent-%COMP%]{width:10%;text-align:right}"],data:{animation:[rp("triggerFileInput",[lp("normal",ap({})),lp("pressed",ap({color:"orange"})),cp("normal => pressed",[sp("0.25s ease")]),cp("pressed => normal",[sp("0.25s ease")])])]}}),e})();function Pj(e,t){if(1&e&&(Ko(0,"button",9),Ko(1,"div"),Fa(2,"Submit"),Jo(),Jo()),2&e){const e=pa();Zo("disabled",e.profileForm.invalid||e.isSettingUpSession)}}function Yj(e,t){1&e&&(Ko(0,"div",10),Xo(1,"mat-spinner",11),Jo()),2&e&&(fs(1),Zo("diameter",47))}let Fj=(()=>{class e{constructor(e,t,i,n,r,s){this.formBuilder=e,this.logger=t,this.githubService=i,this.phaseService=n,this.authService=r,this.errorHandlingService=s,this.sessionEmitter=new vu}ngOnInit(){this.isSettingUpSession=!1,this.initProfileForm()}onProfileSelect(e){this.profileForm.get("session").setValue(e.repoName),this.sessionEmitter.emit(e.repoName)}setupSession(){if(this.profileForm.invalid)return;this.isSettingUpSession=!0;const e=this.profileForm.get("session").value,t=this.getOrgDetails(e),i=this.getDataRepoDetails(e);window.localStorage.setItem("org",t),window.localStorage.setItem("dataRepo",i),this.githubService.storeOrganizationDetails(t,i),this.logger.info(`SessionSelectionComponent: Selected Settings Repo: ${e}`),this.phaseService.storeSessionData().subscribe(()=>{try{this.authService.startOAuthProcess()}catch(e){this.errorHandlingService.handleError(e),this.authService.changeAuthState(xj.NotAuthenticated)}},e=>{this.errorHandlingService.handleError(e),this.isSettingUpSession=!1},()=>this.isSettingUpSession=!1)}getOrgDetails(e){return e.split("/")[0]}getDataRepoDetails(e){return e.split("/")[1]}initProfileForm(){this.profileForm=this.formBuilder.group({session:["",Cw.required]})}}return e.\u0275fac=function(t){return new(t||e)(Go(Wk),Go(iY),Go(dY),Go(Sj),Go(Mj),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-session-selection"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{sessionEmitter:"sessionEmitter"},decls:12,vars:4,consts:[[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[3,"formGroup","ngSubmit"],[1,"login-field",3,"urlEncodedSessionName","selectedProfileEmitter"],[1,"login-field"],["matInput","","placeholder","Settings Location (Org/Repo)","formControlName","session","required",""],["class","sign-in-button","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","spinner-centralize",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",1,"sign-in-button",3,"disabled"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(Ko(0,"mat-card",0),Ko(1,"mat-card-header",1),Ko(2,"mat-card-title",2),Fa(3," Select Your Session "),Jo(),Jo(),Ko(4,"form",3),la("ngSubmit",function(){return t.setupSession()}),Ko(5,"app-profiles",4),la("selectedProfileEmitter",function(e){return t.onProfileSelect(e)}),Jo(),Ko(6,"mat-card-content"),Ko(7,"mat-form-field",5),Xo(8,"input",6),Jo(),Ko(9,"mat-card-actions"),$o(10,Pj,3,1,"button",7),$o(11,Yj,2,1,"div",8),Jo(),Jo(),Jo(),Jo()),2&e&&(fs(4),Zo("formGroup",t.profileForm),fs(1),Zo("urlEncodedSessionName",t.urlEncodedSessionName),fs(5),Zo("ngIf",!t.isSettingUpSession),fs(1),Zo("ngIf",t.isSettingUpSession))},directives:[_D,yD,mD,Ok,Xw,Fk,Rj,pD,NC,SL,kw,Jw,qk,Hk,gD,gd,oD,gI],styles:[".login-field[_ngcontent-%COMP%]{width:100%}.sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}",".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e})(),jj=(()=>{class e{constructor(e,t,i,n,r,s,o){this.authService=e,this.phaseService=t,this.userService=i,this.errorHandlingService=n,this.githubEventService=r,this.logger=s,this.router=o}ngOnInit(){}onGithubWebsiteClicked(){window.open("https://github.com/","_blank"),window.location.reload()}logIntoAnotherAccount(){this.logger.info("ConfirmLoginComponent: Logging into another account"),this.authService.startOAuthProcess()}handleAuthSuccess(){this.authService.setTitleWithPhaseDetail(),this.authService.changeAuthState(xj.Authenticated),this.authService.navigateToLandingPage()}completeLoginProcess(){this.authService.changeAuthState(xj.AwaitingAuthentication),this.phaseService.setPhaseOwners(this.currentSessionOrg,this.username),this.userService.createUserModel(this.username).pipe(U(()=>this.phaseService.sessionSetup()),U(()=>this.githubEventService.setLatestChangeEvent())).subscribe(()=>{this.handleAuthSuccess()},e=>{this.authService.changeAuthState(xj.NotAuthenticated),this.errorHandlingService.handleError(e),this.logger.info(`ConfirmLoginComponent: Completion of login process failed with an error: ${e}`)})}}return e.\u0275fac=function(t){return new(t||e)(Go(Mj),Go(Sj),Go(fY),Go(rY),Go(Ej),Go(iY),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-auth-confirm-login"]],inputs:{username:"username",currentSessionOrg:"currentSessionOrg"},decls:10,vars:1,consts:[["mat-stroked-button","","color","primary",1,"sign-in-button",3,"click"],[1,"logo"],["src","./assets/images/github-logo.png","alt","github-logo",1,"github-logo"],[1,"mat-body-1",2,"margin-top","20px"],["href","https://github.com/",3,"click"]],template:function(e,t){1&e&&(Ko(0,"button",0),la("click",function(){return t.completeLoginProcess()}),Ko(1,"span",1),Xo(2,"img",2),Jo(),Ko(3,"span"),Fa(4),Jo(),Jo(),Ko(5,"div",3),Fa(6," To change account, please sign into the desired account from the "),Ko(7,"a",4),la("click",function(){return t.onGithubWebsiteClicked()}),Fa(8,"official Github website"),Jo(),Fa(9,".\n"),Jo()),2&e&&(fs(4),qa(" Continue as ",t.username," "))},directives:[oD],styles:[".sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}.logo[_ngcontent-%COMP%]{align-items:center;display:inline-flex;margin:0 3px 3px}.github-logo[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}"]}),e})();function qj(e,t){if(1&e&&(Ko(0,"div",1),Xo(1,"app-session-selection",2),Jo()),2&e){const e=pa();fs(1),Zo("urlEncodedSessionName",e.urlEncodedSessionName)}}function Nj(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"app-auth-confirm-login",10),Jo()),2&e){const e=pa(2);fs(1),Zo("username",e.currentUserName)("currentSessionOrg",e.currentSessionOrg)}}function Hj(e,t){1&e&&(Ko(0,"div",11),Xo(1,"mat-spinner",12),Jo()),2&e&&(fs(1),Zo("diameter",47))}function Uj(e,t){if(1&e){const e=na();Ko(0,"div",1),Ko(1,"mat-card",3),Ko(2,"mat-card-header",4),Ko(3,"mat-card-title",5),Fa(4," Confirm Login Account "),Jo(),Ko(5,"mat-card-subtitle"),Fa(6),Jo(),Jo(),Ko(7,"div",6),Ko(8,"button",7),la("click",function(){return Yt(e),pa().goToSessionSelect()}),Ko(9,"mat-icon"),Fa(10,"arrow_back_ios"),Jo(),Jo(),Jo(),$o(11,Nj,2,2,"div",8),$o(12,Hj,2,1,"div",9),Jo(),Jo()}if(2&e){const e=pa();fs(6),qa(" Session on ",e.currentSessionOrg," "),fs(2),Zo("disabled",e.isUserAuthenticating()),fs(3),Zo("ngIf",!e.isUserAuthenticating()),fs(1),Zo("ngIf",e.isUserAuthenticating())}}const zj=[{path:"",component:(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.appService=e,this.githubService=t,this.authService=i,this.userService=n,this.errorHandlingService=r,this.router=s,this.phaseService=o,this.ngZone=a,this.activatedRoute=l,this.logger=u}ngOnInit(){this.logger.startSession();const e=this.activatedRoute.snapshot.queryParamMap.get("code"),t=this.activatedRoute.snapshot.queryParamMap.get("state");this.authService.isAuthenticated()?this.router.navigate([this.phaseService.currentPhase]):(this.initAccessTokenSubscription(),this.initAuthStateSubscription(),this.createProfileFromUrlQueryParams(),e&&(this.authService.changeAuthState(xj.AwaitingAuthentication),this.restoreOrgDetailsFromLocalStorage(),this.logger.info("AuthComponent: Obtained authorisation code from Github"),this.fetchAccessToken(e,t)))}fetchAccessToken(e,t){this.authService.isReturnedStateSame(t)?(this.logger.info("AuthComponent: Retrieving access token from Github"),fetch(`${IP.accessTokenUrl}/${e}/client_id/${IP.clientId}`).then(e=>e.json()).then(e=>{if(e.error)throw new Error(e.error);this.authService.storeOAuthAccessToken(e.token),this.logger.info("AuthComponent: Sucessfully obtained access token")}).catch(e=>{this.logger.info(`AuthComponent: Error in data fetched from access token URL: ${e}`),this.errorHandlingService.handleError(e),this.authService.changeAuthState(xj.NotAuthenticated)})):this.logger.info(`AuthComponent: Received incorrect state ${t}, continue waiting for correct state`)}ngOnDestroy(){this.authStateSubscription&&this.authStateSubscription.unsubscribe(),this.accessTokenSubscription&&this.accessTokenSubscription.unsubscribe()}checkAppIsOutdated(){return this.appService.isApplicationOutdated().pipe(D(e=>{if(e)throw new Error("Please update to the latest version of CATcher.")}))}updateSession(e){this.sessionInformation=e}goToSessionSelect(){this.authService.changeAuthState(xj.NotAuthenticated)}isUserNotAuthenticated(){return this.authState===xj.NotAuthenticated}isUserAuthenticating(){return this.authState===xj.AwaitingAuthentication}isAwaitingOAuthUserConfirm(){return this.authState===xj.ConfirmOAuthUser}get currentSessionOrg(){return this.sessionInformation?this.getOrgDetails(this.sessionInformation):window.localStorage.getItem("org")}restoreOrgDetailsFromLocalStorage(){const e=window.localStorage.getItem("org"),t=window.localStorage.getItem("dataRepo");this.githubService.storeOrganizationDetails(e,t),this.phaseService.setSessionData()}getOrgDetails(e){return e.split("/")[0]}initAuthStateSubscription(){this.authStateSubscription=this.authService.currentAuthState.subscribe(e=>{this.ngZone.run(()=>{this.authState=e})})}initAccessTokenSubscription(){this.accessTokenSubscription=this.authService.accessToken.pipe(bh(e=>!!e),U(()=>this.userService.getAuthenticatedUser())).subscribe(e=>{this.ngZone.run(()=>{this.currentUserName=e.login,this.authService.changeAuthState(xj.ConfirmOAuthUser)})})}createProfileFromUrlQueryParams(){const e=this.activatedRoute.snapshot.queryParamMap;e.has("session")&&(this.urlEncodedSessionName=e.get("session"))}}return e.\u0275fac=function(t){return new(t||e)(Go(lj),Go(dY),Go(Mj),Go(fY),Go(rY),Go(fb),Go(Sj),Go(cc),Go(W_),Go(iY))},e.\u0275cmp=Ve({type:e,selectors:[["app-auth"]],decls:2,vars:2,consts:[["class","login-page",4,"ngIf"],[1,"login-page"],[3,"urlEncodedSessionName"],[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[2,"position","absolute","top","15px","left","15px"],["mat-icon-button","",1,"mat-primary",3,"disabled","click"],[4,"ngIf"],["class","spinner-centralize",4,"ngIf"],[3,"username","currentSessionOrg"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&($o(0,qj,2,1,"div",0),$o(1,Uj,13,4,"div",0)),2&e&&(Zo("ngIf",t.isUserNotAuthenticated()),fs(1),Zo("ngIf",t.isUserAuthenticating()||t.isAwaitingOAuthUserConfirm()))},directives:[gd,Fj,_D,yD,mD,fD,oD,cL,jj,gI],styles:[".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e})()}];let Bj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(zj)],Lb]}),e})(),Vj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Bj,DP,Dd]]}),e})(),$j=(()=>{class e{constructor(e,t){this.auth=e,this.router=t}canActivate(e,t){return this.auth.isAuthenticated()?(this.auth.clearNext(),!0):(this.auth.storeNext(t),this.router.navigate([""]),!1)}canLoad(e,t){return!!this.auth.isAuthenticated()||(this.router.navigate([""]),!1)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Mj),Tn(fb))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DP,iw.forChild()]]}),e})(),Gj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,xP,Lb]]}),e})();function Zj(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o}function Qj(e,t){return function(i,n){t(i,n,e)}}const Kj=["searchSelectInput"],Jj=["innerSelectSearch"];function Xj(e,t){if(1&e){const e=na();Ko(0,"mat-checkbox",9),la("change",function(t){return Yt(e),pa()._emitSelectAllBooleanToParent(t.checked)}),Jo()}if(2&e){const e=pa();Zo("color",null==e.matFormField?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toogleAllCheckboxTooltipPosition)}}function eq(e,t){1&e&&Xo(0,"mat-spinner",10)}function tq(e,t){1&e&&ga(0,1,["*ngIf","clearIcon; else defaultIcon"])}function iq(e,t){1&e&&(Ko(0,"mat-icon"),Fa(1,"close"),Jo())}function nq(e,t){if(1&e){const e=na();Ko(0,"button",11),la("click",function(){return Yt(e),pa()._reset(!0)}),$o(1,tq,1,0,"ng-content",12),$o(2,iq,2,0,"ng-template",null,13,qu),Jo()}if(2&e){const e=Wo(3),t=pa();fs(1),Zo("ngIf",t.clearIcon)("ngIfElse",e)}}function rq(e,t){if(1&e&&(Ko(0,"div",14),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.noEntriesFoundLabel,"\n")}}const sq=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],oq=function(e,t){return{"mat-select-search-inner-multiple":e,"mat-select-search-inner-toggle-all":t}};let aq=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","ngxMatSelectSearchClear",""]]}),e})();var lq;let uq=lq=class{constructor(e,t,i,n=null,r,s=null){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=s,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new vu,this.onTouched=e=>{},this._options$=new Gf(null),this.optionsList$=this._options$.pipe(ag(e=>e?e.changes.pipe(D(e=>e.toArray()),mg(e.toArray())):_h(null))),this.optionsLength$=this.optionsList$.pipe(D(e=>e?e.length:0)),this._formControl=new kk(""),this._showNoEntriesFound$=Xf([this._formControl.valueChanges,this.optionsLength$]).pipe(D(([e,t])=>this.noEntriesFoundLabel&&e&&t===this.getOptionsLengthOffset())),this._onDestroy=new x}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}ngOnInit(){const e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(UC(1),yS(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(dg(1)).pipe(yS(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe(yS(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe(yS(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const t=this._options.toArray(),i=t[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(e,i)||!n.activeItem||!t.find(e=>this.matSelect.compareWith(e,n.activeItem)))&&n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),e=i})})}),this._showNoEntriesFound$.pipe(yS(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(yS(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(yS(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&1===e.key.length||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||32===e.keyCode||this.preventHomeEndKeyPropagation&&(36===e.keyCode||35===e.keyCode))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&13===e.keyCode&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&27===e.keyCode&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(38===e.keyCode||40===e.keyCode){const e=this.matSelect._getAriaActiveDescendant(),t=this._options.toArray().findIndex(t=>t.id===e);if(-1!==t){const e=this._options.toArray()[t];this.liveAnnouncer.announce(e.viewValue+" "+this.getAriaIndex(t)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(e){return 0===this.getOptionsLengthOffset()?e+1:e}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(bh(e=>e!==this._lastExternalInputValue),Ig(()=>this._lastExternalInputValue=void 0),yS(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);const i=this.matSelect.options.map(e=>e.value);this.previousSelectedValues.forEach(n=>{!e.some(e=>this.matSelect.compareWith(e,n))&&!i.some(e=>this.matSelect.compareWith(e,n))&&(e.push(n),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const e=this.getMatOptionHeight(),t=this.matSelect._keyManager.activeItemIndex||0,i=fM(t,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+t,r=this.matSelect.panel.nativeElement.scrollTop,s=this.innerSelectSearch.nativeElement.offsetHeight,o=Math.floor((256-s)/e),a=Math.round((r+s)/e)-1;a>=n?this.matSelect.panel.nativeElement.scrollTop=n*e:a+o<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*e-(256-s))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e,t=this.innerSelectSearch.nativeElement;for(;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};uq.\u0275fac=function(e){return new(e||uq)(Go(PA),Go(ql),Go(QS),Go(mM,8),Go(FT),Go(NC,8))},uq.\u0275cmp=Ve({type:uq,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){if(1&e&&Ru(i,aq,5),2&e){let e;Au(e=Pu())&&(t.clearIcon=e.first)}},viewQuery:function(e,t){if(1&e&&(Iu(Kj,7,pl),Iu(Jj,7,pl)),2&e){let e;Au(e=Pu())&&(t.searchSelectInput=e.first),Au(e=Pu())&&(t.innerSelectSearch=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&xa("mat-select-search-inside-mat-option",t.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[sl([{provide:bw,useExisting:ae(()=>lq),multi:!0}])],ngContentSelectors:[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(e,t){1&e&&(fa(sq),Xo(0,"input",0),Ko(1,"div",1,2),$o(3,Xj,1,5,"mat-checkbox",3),Ko(4,"input",4,5),la("keydown",function(e){return t._handleKeydown(e)})("keyup",function(e){return t._handleKeyup(e)})("blur",function(){return t.onBlur()}),Jo(),$o(6,eq,1,0,"mat-spinner",6),$o(7,nq,4,2,"button",7),ga(8),Jo(),$o(9,rq,2,1,"div",8),_u(10,"async")),2&e&&(fs(1),Zo("ngClass",mu(11,oq,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),fs(2),Zo("ngIf",t._isToggleAllCheckboxVisible()),fs(1),Zo("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),Bo("aria-label",t.ariaLabel),fs(2),Zo("ngIf",t.searching),fs(1),Zo("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),fs(2),Zo("ngIf",yu(10,9,t._showNoEntriesFound$)))},directives:[hd,gd,kw,Jw,Pk,LD,BA,gI,oD,cL],pipes:[Cd],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),uq.ctorParameters=()=>[{type:PA,decorators:[{type:Ln,args:[PA]}]},{type:ql},{type:QS},{type:mM,decorators:[{type:On},{type:Ln,args:[mM]}]},{type:FT},{type:NC,decorators:[{type:On},{type:Ln,args:[NC]}]}],Zj([Nu()],uq.prototype,"placeholderLabel",void 0),Zj([Nu()],uq.prototype,"type",void 0),Zj([Nu()],uq.prototype,"noEntriesFoundLabel",void 0),Zj([Nu()],uq.prototype,"indexAndLengthScreenReaderText",void 0),Zj([Nu()],uq.prototype,"clearSearchInput",void 0),Zj([Nu()],uq.prototype,"searching",void 0),Zj([Nu()],uq.prototype,"disableInitialFocus",void 0),Zj([Nu()],uq.prototype,"enableClearOnEscapePressed",void 0),Zj([Nu()],uq.prototype,"preventHomeEndKeyPropagation",void 0),Zj([Nu()],uq.prototype,"disableScrollToActiveOnOptionsChanged",void 0),Zj([Nu()],uq.prototype,"ariaLabel",void 0),Zj([Nu()],uq.prototype,"showToggleAllCheckbox",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxChecked",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxIndeterminate",void 0),Zj([Nu()],uq.prototype,"toggleAllCheckboxTooltipMessage",void 0),Zj([Nu()],uq.prototype,"toogleAllCheckboxTooltipPosition",void 0),Zj([Nu()],uq.prototype,"hideClearSearchButton",void 0),Zj([Nu()],uq.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),Zj([Hu()],uq.prototype,"toggleAll",void 0),Zj([sn("searchSelectInput",{read:pl,static:!0})],uq.prototype,"searchSelectInput",void 0),Zj([sn("innerSelectSearch",{read:pl,static:!0})],uq.prototype,"innerSelectSearch",void 0),Zj([rn(aq,{static:!1})],uq.prototype,"clearIcon",void 0),Zj([Uu("class.mat-select-search-inside-mat-option")],uq.prototype,"isInsideMatOption",null),uq=lq=Zj([Qj(0,Ln(PA)),Qj(3,On()),Qj(3,Ln(mM)),Qj(5,On()),Qj(5,Ln(NC))],uq);let cq=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,$k,aD,AD,dL,_I,WA]]}),e})(),dq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[DP,Wj,aI,cq,iw.forChild()]]}),e})(),hq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,DP]]}),e})(),pq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})(),mq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild(),cq]]}),e})(),fq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd]]}),e})(),gq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd]]}),e})(),_q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})(),yq=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,DP,dq,hq,iw.forChild()]]}),e})();const bq={[kY.phaseBugReporting]:{[pY.Student]:{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}},[kY.phaseTeamResponse]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1}},[kY.phaseTesterResponse]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!0,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!0,isTutorResponseEditable:!1}},[kY.phaseModeration]:{[pY.Student]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1},[pY.Tutor]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0},[pY.Admin]:{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0}}};let vq=(()=>{class e{constructor(e,t){this.userService=e,this.phaseService=t}isIssueCreatable(){return this.askForPermission("User","isIssueCreatable")}isIssueDeletable(){return this.askForPermission("User","isIssueDeletable")}isIssueTitleEditable(){return this.askForPermission("User","isIssueTitleEditable")}isIssueDescriptionEditable(){return this.askForPermission("User","isIssueDescriptionEditable")}isIssueLabelsEditable(){return this.askForPermission("User","isIssueLabelsEditable")}isTesterResponseEditable(){return this.askForPermission("User","isTesterResponseEditable")}isTeamResponseEditable(){return this.askForPermission("User","isTeamResponseEditable")}isTutorResponseEditable(){return this.askForPermission("User","isTutorResponseEditable")}isIssueEditable(){return this.isIssueTitleEditable()||this.isIssueDescriptionEditable()||this.isIssueLabelsEditable()||this.isTeamResponseEditable()||this.isTesterResponseEditable()||this.isTutorResponseEditable()}askForPermission(e,t){switch(e){case"Phase":return bq[this.phaseService.currentPhase][t];case"User":return bq[this.phaseService.currentPhase][this.userService.currentUser.role][t];default:return!1}}}return e.\u0275fac=function(t){return new(t||e)(Tn(fY),Tn(Sj))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function wq(e,t){1&e&&(Ko(0,"div",2),Xo(1,"mat-spinner",3),Jo()),2&e&&(fs(1),Zo("diameter",47))}function kq(e,t){if(1&e){const e=na();Ko(0,"app-issue-description",13),la("changeEditState",function(t){return Yt(e),pa(2).updateDescriptionEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("isEditing",e.isIssueDescriptionEditing)("issue",e.issue)}}function Sq(e,t){if(1&e){const e=na();Ko(0,"app-team-response",14),la("updateEditState",function(t){return Yt(e),pa(2).updateTeamResponseEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTeamResponseEditing)}}function Tq(e,t){if(1&e){const e=na();Ko(0,"app-new-team-response",4),la("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}2&e&&Zo("issue",pa(2).issue)}function Eq(e,t){1&e&&Xo(0,"app-parse-error",15),2&e&&Zo("phase","Team Response")}function xq(e,t){if(1&e){const e=na();Ko(0,"app-tester-response",14),la("updateEditState",function(t){return Yt(e),pa(2).updateTesterResponseEditState(t)})("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTesterResponseEditing)}}function Mq(e,t){1&e&&Xo(0,"app-parse-error",15),2&e&&Zo("phase","Tester Response")}function Cq(e,t){1&e&&Xo(0,"app-team-accepted")}function Dq(e,t){if(1&e){const e=na();Ko(0,"app-issue-dispute",16),la("issueUpdated",function(t){return Yt(e),pa(2).updateIssue(t)})("updateEditState",function(t){return Yt(e),pa(2).updateTutorResponseEditState(t)}),Jo()}if(2&e){const e=pa(2);Zo("issue",e.issue)("isEditing",e.isTutorResponseEditing)}}function Lq(e,t){if(1&e){const e=na();Ko(0,"app-issue-label",19),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo()}2&e&&Zo("issue",pa(3).issue)}function Oq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-issue-label",20),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Aq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-issue-label",21),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Iq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-assignee-component",22),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)("team",e.issue.teamAssigned)}}function Rq(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Xo(2,"app-duplicated-issues-component",23),Xo(3,"br"),Jo()),2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Pq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-duplicate-of-component",4),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function Yq(e,t){1&e&&(Ko(0,"div",24),Fa(1," * Need your resolution. An issue cannot have both duplicated issues and duplicated status. "),Jo())}function Fq(e,t){if(1&e){const e=na();Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"app-unsure-checkbox",4),la("issueUpdated",function(t){return Yt(e),pa(3).updateIssue(t)}),Jo(),Jo()}if(2&e){const e=pa(3);fs(2),Zo("issue",e.issue)}}function jq(e,t){if(1&e&&(Ko(0,"div"),$o(1,Lq,1,1,"app-issue-label",17),$o(2,Oq,3,1,"div",1),$o(3,Aq,3,1,"div",1),$o(4,Iq,3,2,"div",1),$o(5,Rq,4,1,"div",1),_u(6,"async"),$o(7,Pq,3,1,"div",1),_u(8,"async"),$o(9,Yq,2,0,"div",18),_u(10,"async"),_u(11,"async"),$o(12,Fq,3,1,"div",1),Jo()),2&e){const e=pa(2);fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.SEVERITY_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TYPE_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.RESPONSE_LABEL)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.ASSIGNEE)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&0!==yu(6,8,e.issueService.getDuplicateIssuesFor(e.issue)).length),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&(e.issue.duplicateOf||0===yu(8,10,e.issueService.getDuplicateIssuesFor(e.issue)).length)),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.DUPLICATE)&&0!==yu(10,12,e.issueService.getDuplicateIssuesFor(e.issue)).length&&(e.issue.duplicateOf||0===yu(11,14,e.issueService.getDuplicateIssuesFor(e.issue)).length)),fs(3),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.UNSURE_CHECKBOX))}}function qq(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-issue-title",4),la("issueUpdated",function(t){return Yt(e),pa().updateIssue(t)}),Jo(),Xo(2,"mat-divider"),Ko(3,"div",5),Ko(4,"div",6),$o(5,kq,1,2,"app-issue-description",7),$o(6,Sq,1,2,"app-team-response",8),$o(7,Tq,1,1,"app-new-team-response",9),$o(8,Eq,1,1,"app-parse-error",10),$o(9,xq,1,2,"app-tester-response",8),$o(10,Mq,1,1,"app-parse-error",10),$o(11,Cq,1,0,"app-team-accepted",1),$o(12,Dq,1,2,"app-issue-dispute",11),Jo(),Ko(13,"div",12),$o(14,jq,13,16,"div",1),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("issue",e.issue),fs(4),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_POST)),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TEAM_RESPONSE)&&e.issue.teamResponse),fs(1),Zo("ngIf",e.hasNoTeamResponse()),fs(1),Zo("ngIf",e.hasTeamResponseParseError()),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.testerResponses&&0!==e.issue.testerResponses.length),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.testerResponseError),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.issue.teamAccepted),fs(1),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.ISSUE_DISPUTE)),fs(2),Zo("ngIf",e.isComponentVisible(e.issueComponentsEnum.NEW_TEAM_RESPONSE)&&e.issue.teamResponse||e.isComponentVisible(e.issueComponentsEnum.TESTER_RESPONSE)&&e.userService.currentUser.role===e.userRole.Student||e.isComponentVisible(e.issueComponentsEnum.ISSUE_DISPUTE)||!e.isComponentVisible(e.issueComponentsEnum.TEAM_RESPONSE))}}var Nq=(()=>(function(e){e[e.TESTER_POST=0]="TESTER_POST",e[e.TEAM_RESPONSE=1]="TEAM_RESPONSE",e[e.NEW_TEAM_RESPONSE=2]="NEW_TEAM_RESPONSE",e[e.TESTER_RESPONSE=3]="TESTER_RESPONSE",e[e.ISSUE_DISPUTE=4]="ISSUE_DISPUTE",e[e.SEVERITY_LABEL=5]="SEVERITY_LABEL",e[e.TYPE_LABEL=6]="TYPE_LABEL",e[e.RESPONSE_LABEL=7]="RESPONSE_LABEL",e[e.ASSIGNEE=8]="ASSIGNEE",e[e.DUPLICATE=9]="DUPLICATE",e[e.UNSURE_CHECKBOX=10]="UNSURE_CHECKBOX"}(Nq||(Nq={})),Nq))();let Hq=(()=>{class e{constructor(e,t,i,n,r,s){this.errorHandlingService=e,this.permissions=t,this.userService=i,this.issueService=n,this.phaseService=r,this.router=s,this.isIssueLoading=!0,this.isTutorResponseEditing=!1,this.isIssueDescriptionEditing=!1,this.isTeamResponseEditing=!1,this.isTesterResponseEditing=!1,this.issueComponentsEnum=Nq,this.userRole=pY}ngOnInit(){this.getAndPollIssue(this.issueId)}ngOnChanges(e){e.issueId.firstChange||(this.stopPolling(),this.isIssueLoading=!0,this.getAndPollIssue(e.issueId.currentValue))}ngOnDestroy(){this.stopPolling()}isComponentVisible(e){return this.issueComponents.includes(e)}isEditing(){return this.isIssueDescriptionEditing||this.isTutorResponseEditing||this.isTeamResponseEditing}updateIssue(e){this.issue=e,this.issueService.updateLocalStore(e)}updateDescriptionEditState(e){this.isIssueDescriptionEditing=e}updateTeamResponseEditState(e){this.isTeamResponseEditing=e}updateTesterResponseEditState(e){this.isTesterResponseEditing=e}updateTutorResponseEditState(e){this.isTutorResponseEditing=e}hasNoTeamResponse(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&!this.issue.teamResponse&&!this.issue.status}hasTeamResponseParseError(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&this.issue.teamResponseError&&!!this.issue.status}getAndPollIssue(e){this.issueService.getIssue(e).subscribe(t=>{this.isIssueLoading=!1,this.issue=t,this.pollIssue(e)},e=>{this.router.navigateByUrl(this.phaseService.currentPhase).then(()=>{this.errorHandlingService.handleError(new Error("Invalid URL provided!"))})})}pollIssue(e){this.issueSubscription=this.issueService.pollIssue(e).subscribe(e=>{const t=e.clone(this.phaseService.currentPhase);this.isIssueLoading||(this.isIssueDescriptionEditing||this.isTeamResponseEditing||!this.issue.teamResponse&&t.teamResponse||this.isTesterResponseEditing||this.isTutorResponseEditing)&&t.retainResponses(this.phaseService.currentPhase,this.issue),this.issue=t,this.isIssueLoading=!1},t=>{this.errorHandlingService.handleError(t,()=>this.pollIssue(e))})}stopPolling(){this.issueSubscription&&this.issueSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Go(rY),Go(vq),Go(fY),Go(Tj),Go(Sj),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-view-issue"]],inputs:{issueId:"issueId",issueComponents:"issueComponents"},features:[ct],decls:2,vars:2,consts:[["class","centralize",4,"ngIf"],[4,"ngIf"],[1,"centralize"],[3,"diameter"],[3,"issue","issueUpdated"],[1,"row"],[1,"column","left"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated",4,"ngIf"],[3,"issue","isEditing","updateEditState","issueUpdated",4,"ngIf"],[3,"issue","issueUpdated",4,"ngIf"],[3,"phase",4,"ngIf"],[3,"issue","isEditing","issueUpdated","updateEditState",4,"ngIf"],[1,"column","right"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated"],[3,"issue","isEditing","updateEditState","issueUpdated"],[3,"phase"],[3,"issue","isEditing","issueUpdated","updateEditState"],["attributeName","severity",3,"issue","issueUpdated",4,"ngIf"],["style","margin-top: 15px; color: red",4,"ngIf"],["attributeName","severity",3,"issue","issueUpdated"],["attributeName","type",3,"issue","issueUpdated"],["attributeName","response",3,"issue","issueUpdated"],[3,"issue","team","issueUpdated"],[3,"issue"],[2,"margin-top","15px","color","red"]],template:function(e,t){1&e&&($o(0,wq,2,1,"div",0),$o(1,qq,15,10,"div",1)),2&e&&(Zo("ngIf",t.isIssueLoading),fs(1),Zo("ngIf",!t.isIssueLoading))},styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})(),Uq=(()=>{class e{constructor(e,t,i){this.componentFactoryResolver=e,this.injector=t,this.document=i,this.isLoading=new Gf(!1),this.spinnerContainerRef=null,this.spinnerComponentRef=null,this.animationMode="indeterminate",this.spinnerTheme="primary",this.classList=[],this.spinnerFactory=this.componentFactoryResolver.resolveComponentFactory(gI),this.isLoading.pipe(wS()).subscribe(([e,t])=>this.onIsLoadingChange(e,t))}ngOnDestroy(){this.isLoading.complete(),this.detachSpinnerFromDom(),this.spinnerContainerRef=null}addAnimationMode(e){return this.animationMode=e,this}addSpinnerOptions(e){return this.options=e,this}addViewContainerRef(e){return void 0===e||(this.spinnerContainerRef=e),this}addTheme(e){return this.spinnerTheme=e,this}addCssClasses(e){return this.classList=[],this.classList.push(...e),this}showLoader(){this.isLoading.next(!0)}hideLoader(){this.isLoading.next(!1)}onIsLoadingChange(e,t){if(e!==t)return t?this.attachSpinnerToDom():this.detachSpinnerFromDom()}attachSpinnerToDom(){if(null!==this.spinnerComponentRef)return;const e=this.getInjector(),t=this.createSpinner(e);this.isAttachableToDocument()?t.location.nativeElement instanceof Node&&this.document.body.appendChild(t.location.nativeElement):this.spinnerContainerRef.insert(t.hostView),t.changeDetectorRef.detectChanges(),this.spinnerComponentRef=t}detachSpinnerFromDom(){null!==this.spinnerComponentRef&&(this.isAttachableToDocument()?this.spinnerComponentRef.location.nativeElement instanceof Node&&this.document.body.removeChild(this.spinnerComponentRef.location.nativeElement):this.spinnerContainerRef.remove(),this.spinnerComponentRef.destroy(),this.spinnerComponentRef=null)}getInjector(){return this.isAttachableToDocument()?this.injector:this.spinnerContainerRef.injector}isAttachableToDocument(){return null===this.spinnerContainerRef}createSpinner(e){const t=this.spinnerFactory.create(e);this.options&&(t.instance.diameter=this.options.diameter,t.instance.strokeWidth=this.options.strokeWidth),t.instance.mode=this.animationMode,t.instance.color=this.spinnerTheme;const i=t.injector.get(gl);for(const n of this.classList)i.addClass(t.location.nativeElement,n);return t}}return e.\u0275fac=function(t){return new(t||e)(Tn(ul),Tn(Do),Tn(zc))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zq=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this.data=t,this._sanitizer=i,this.labelName=t.header,this.labelDefinitionHtmlTemplate=i.bypassSecurityTrustHtml(t.body)}onNoClick(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh))},e.\u0275cmp=Ve({type:e,selectors:[["app-label-definition-popup"]],decls:8,vars:2,consts:[[1,"modalPopup"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),Ko(3,"div",2),Xo(4,"div",3),Jo(),Ko(5,"div",4),Ko(6,"button",5),la("click",function(){return t.onNoClick()}),Fa(7,"Close"),Jo(),Jo(),Jo()),2&e&&(fs(2),ja(t.labelName),fs(2),Zo("innerHTML",t.labelDefinitionHtmlTemplate,Gr))},directives:[BL,VL,$L,oD],styles:[".modalPopup[_ngcontent-%COMP%]{min-width:800px}"]}),e})();function Bq(e,t){if(1&e&&(Ko(0,"p"),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),qa(" ",e," ")}}let Vq=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}onNoClick(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL))},e.\u0275cmp=Ve({type:e,selectors:[["app-user-confirmation"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Ko(0,"h1",0),Fa(1,"Warning"),Jo(),Ko(2,"div",1),$o(3,Bq,2,1,"p",2),Jo(),Ko(4,"div",3),Ko(5,"button",4),la("click",function(){return t.onNoClick()}),Fa(6),Jo(),Ko(7,"button",5),Fa(8),Jo(),Jo()),2&e&&(fs(3),Zo("ngForOf",t.data.messages),fs(3),ja(t.data.noMessage),fs(1),Zo("mat-dialog-close",!0),fs(1),ja(t.data.yesMessage))},directives:[BL,VL,md,$L,oD,zL],styles:[""]}),e})(),$q=(()=>{class e{constructor(e){this.dialog=e}openUserConfirmationModal(e,t,i){return this.dialog.open(Vq,{data:{messages:e,yesMessage:t,noMessage:i}})}openLabelDefinitionDialog(e,t){return this.dialog.open(zq,{data:{header:e,body:t}})}checkIfFieldIsModified(e,t,i,n){const r=n[t]||"";return e.get(i).value!==r}performActionIfModified(e,t,i){e?t():i()}}return e.\u0275fac=function(t){return new(t||e)(Tn(HL))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Wq=["loadingSpinnerContainer"];function Gq(e,t){if(1&e){const e=na();Ko(0,"button",7),la("click",function(){return Yt(e),pa(2).changeToEditMode()}),Fa(1," Edit "),Jo()}}function Zq(e,t){1&e&&(Ko(0,"button",8),Fa(1," New Issue "),Jo()),2&e&&Zo("routerLink","/"+pa(2).phaseService.currentPhase+"/issues/new")}function Qq(e,t){if(1&e&&(Ko(0,"div",2),Ko(1,"h1",3),Fa(2),Ko(3,"span",4),Fa(4),Jo(),Jo(),Ko(5,"div",2),$o(6,Gq,2,0,"button",5),$o(7,Zq,2,1,"button",6),Jo(),Jo()),2&e){const e=pa();fs(2),qa(" ",e.issue.title," "),fs(2),qa("#",e.issue.id,""),fs(2),Zo("ngIf",e.permissions.isIssueTitleEditable()),fs(1),Zo("ngIf",e.permissions.isIssueCreatable())}}function Kq(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title is required. "),Jo())}function Jq(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot exceed 256 characters. "),Jo())}function Xq(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa(2);fs(1),qa(" ",256-(null==e.issueTitleForm.get("title").value?null:e.issueTitleForm.get("title").value.length)," characters remaining. ")}}function eN(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"form",9,10),la("ngSubmit",function(){Yt(e);const t=Wo(2);return pa().updateTitle(t)}),Ko(3,"mat-form-field",11),Xo(4,"input",12),$o(5,Kq,2,0,"mat-error",1),$o(6,Jq,2,0,"mat-error",1),$o(7,Xq,2,1,"mat-hint",1),Jo(),Ko(8,"button",13),Fa(9," Save "),ia(10,null,14),Jo(),Ko(12,"button",15),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(13," Cancel "),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("formGroup",e.issueTitleForm),fs(4),Zo("ngIf",e.issueTitleForm.get("title").hasError("required")),fs(1),Zo("ngIf",e.issueTitleForm.get("title").hasError("maxlength")),fs(1),Zo("ngIf",(null==e.issueTitleForm.get("title").value?null:e.issueTitleForm.get("title").value.length)>=206),fs(1),Zo("disabled",e.issueTitleForm.invalid||e.isSavePending),fs(4),Zo("disabled",e.isSavePending)}}let tN=(()=>{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.permissions=n,this.phaseService=r,this.dialogService=s,this.loadingService=o,this.isEditing=!1,this.isSavePending=!1,this.issueUpdated=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}ngOnInit(){this.issueTitleForm=this.formBuilder.group({title:new kk("",[Cw.required,Cw.maxLength(256)])}),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}changeToEditMode(){this.isEditing=!0,this.issueTitleForm.setValue({title:this.issue.title||""})}cancelEditMode(){this.isEditing=!1}updateTitle(e){if(this.issueTitleForm.invalid)return;this.showSpinner();const t=this.issue.clone(this.phaseService.currentPhase);t.title=this.issueTitleForm.get("title").value,this.issueService.updateIssue(t).pipe(Yg(()=>{this.isEditing=!1})).subscribe(t=>{this.issueUpdated.emit(t),e.resetForm(),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.issueTitleForm,"title","title",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(vq),Go(Sj),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-title"]],viewQuery:function(e,t){if(1&e&&Iu(Wq,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},features:[sl([Uq])],decls:2,vars:2,consts:[["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"mat-display-1","title"],[2,"color","#a3aab1"],["mat-stroked-button","","color","primary","class","title-button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","class","title-button",3,"routerLink",4,"ngIf"],["mat-stroked-button","","color","primary",1,"title-button",3,"click"],["mat-stroked-button","","color","primary",1,"title-button",3,"routerLink"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[2,"width","80%"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],["type","submit","mat-stroked-button","","color","primary",1,"title-button",3,"disabled"],["loadingSpinnerContainer",""],["type","button","mat-stroked-button","","color","warn",1,"title-button",3,"disabled","click"]],template:function(e,t){1&e&&($o(0,Qq,8,4,"div",0),$o(1,eN,14,6,"div",1)),2&e&&(Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[gd,oD,_b,Ok,Xw,Fk,NC,kw,SL,Jw,qk,Hk,zk,xC,OC],styles:[".row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.title[_ngcontent-%COMP%]{margin:0 0 16px;overflow-wrap:anywhere}.title-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin:5px;float:right}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e})();var iN=i(69114);function nN(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function rN(e){return e.replace(/\n/g,"
")}class sN{getHtmlString(){return`<${this.TAG} style="${this.STYLES.join(";")}">${nN(this.content)}`}}class oN extends sN{constructor(e){super(),this.TYPE="ADDITION",this.TAG="ins",this.STYLES=["background: #d4fcbc","text-decoration: none"],this.content=e}}class aN extends sN{constructor(e){super(),this.TYPE="NO_CHANGE",this.TAG="span",this.STYLES=[],this.content=e}}class lN extends sN{constructor(e){super(),this.TYPE="REMOVAL",this.TAG="del",this.STYLES=["background: #fbb"],this.content=e}}class uN{constructor(e,t){this.changes=[],this.outdatedContent=e,this.updatedContent=t;const i=new iN.diff_match_patch,n=i.diff_main(e,t);i.diff_cleanupSemantic(n);for(const r of n)this.changes.push(-1===r[0]?new lN(r[1]):1===r[0]?new oN(r[1]):new aN(r[1]))}getHtmlDiffString(){let e="";for(const t of this.changes)e+=t.getHtmlString();return rN(e)}getHtmlUpdatedString(){return rN(nN(this.updatedContent))}}function cN(e,t){if(1&e){const e=na();Ko(0,"mat-slide-toggle",11),la("change",function(){return Yt(e),pa().handleChangeShowDiff()}),Fa(1," Show Difference "),Jo()}2&e&&Zo("checked",pa().showDiff)}function dN(e,t){1&e&&Xo(0,"div",13),2&e&&Zo("innerHTML",pa(2).diffHtml,Gr)}function hN(e,t){1&e&&Xo(0,"div",13),2&e&&Zo("innerHTML",pa(2).updatedHtml,Gr)}function pN(e,t){if(1&e&&(Ko(0,"div",10),$o(1,dN,1,1,"div",12),$o(2,hN,1,1,"div",12),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.showDiff),fs(1),Zo("ngIf",!e.showDiff)}}let mN=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isOnPreview=!1,this.isReady=!1,this.showDiff=!0,this.diffHtml=this.sanitizer.bypassSecurityTrustHtml(t.getHtmlDiffString()),this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(t.getHtmlUpdatedString()),this.isReady=!0}close(){this.dialogRef.close()}handleChangeShowDiff(){this.showDiff=!this.showDiff}handleTabChange(e){this.isOnPreview=1===e.index}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh),Go(bj),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-conflict-dialog"]],decls:16,vars:4,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["style","display: inline-block; margin-left: 50px","color","primary",3,"checked","change",4,"ngIf"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"full-width"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview Updated Content"],[1,"tab-content"],["color","primary",2,"display","inline-block","margin-left","50px",3,"checked","change"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),$o(3,cN,2,1,"mat-slide-toggle",2),Ko(4,"button",3),la("click",function(){return t.close()}),Ko(5,"mat-icon"),Fa(6,"close"),Jo(),Jo(),Jo(),Ko(7,"div",4),Ko(8,"div",5),Ko(9,"mat-tab-group",6),la("selectedTabChange",function(e){return t.handleTabChange(e)}),Ko(10,"mat-tab",7),$o(11,pN,3,2,"div",8),Jo(),Ko(12,"mat-tab",9),Ko(13,"div",10),Ko(14,"markdown"),Fa(15),Jo(),Jo(),Jo(),Jo(),Jo(),Jo()),2&e&&(fs(2),ja("The content you are editing has changed"),fs(1),Zo("ngIf",!t.isOnPreview),fs(8),Zo("ngIf",t.isReady),fs(4),ja(t.data.updatedContent))},directives:[BL,gd,oD,cL,VL,dP,tP,tw,VI],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.full-width[_ngcontent-%COMP%]{min-width:80vh;width:100%}"]}),e})();class fN extends Error{constructor(){super("Invalid link!"),Object.setPrototypeOf(this,fN.prototype)}}let gN=(()=>{class e{constructor(e){this.errorHandlingService=e}onClick(e){const t=e.target;t instanceof HTMLAnchorElement&&t.href.startsWith(t.baseURI)&&(this.errorHandlingService.handleError(new fN),e.preventDefault(),e.stopPropagation())}}return e.\u0275fac=function(t){return new(t||e)(Go(rY))},e.\u0275dir=Ke({type:e,selectors:[["","disableInternalLink",""]],hostBindings:function(e,t){1&e&&la("click",function(e){return t.onClick(e)})}}),e})();class _N{constructor(e,t,i=0){this.historyArray=new Array(e),this.firstEntryIndex=0,this.lastEntryIndex=-1,this.currIndex=-1,this.getState=t,this.isSaved=!1,this.saveRunning=!1,this.intervalTime=i}static isUndo(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&"KeyZ"===e.code&&!e.shiftKey:e.ctrlKey&&"KeyZ"===e.code&&!e.shiftKey}static isRedo(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&e.shiftKey&&"KeyZ"===e.code:e.ctrlKey&&e.shiftKey&&"KeyZ"===e.code||e.ctrlKey&&"KeyY"===e.code}updateBeforeChange(e){if(-1===this.currIndex)return this.addEntry(null!=e?e:this.getState(),!1);this.createDelayedSave()}createDelayedSave(){this.saveRunning||(this.isSaved=!1,this.saveRunning=!0,this.timeout=setTimeout(()=>{this.addEntry(this.getState(),!!this.intervalTime)},this.intervalTime))}addEntry(e,t=!0){this.isSaved=t;const i=this.incrementIndex(this.currIndex);i===this.firstEntryIndex&&-1!==this.currIndex&&(this.firstEntryIndex=this.incrementIndex(this.firstEntryIndex)),this.lastEntryIndex=i,this.currIndex=i,this.historyArray[this.currIndex]=e,this.saveRunning=!1}incrementIndex(e){return(e+1)%this.historyArray.length}decrementIndex(e){return(e-1+this.historyArray.length)%this.historyArray.length}forceSave(e,t=!1,i=!0){clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(null!=e?e:this.getState(),i),this.isSaved=i}wrapSave(e,t=!0){clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(this.getState(),!1),e(),this.addEntry(this.getState(),!0)}undo(){return this.forceSave(void 0,!0),this.currIndex===this.firstEntryIndex||-1===this.currIndex?null:(this.currIndex=this.decrementIndex(this.currIndex),this.historyArray[this.currIndex])}redo(){return this.forceSave(void 0,!0),this.currIndex===this.lastEntryIndex?null:(this.currIndex=this.incrementIndex(this.currIndex),this.historyArray[this.currIndex])}}const yN=["mp4","mov"],bN=["gif","jpeg","jpg","png","docx","gz","log","pdf","pptx","txt","xlsx","zip",...yN],vN="We don't support that file type. Try again with "+bN.join(", ")+".",wN=(e,t)=>`Oops, ${e} is too big. Keep it under ${t}MiB.`;let kN=(()=>{class e{constructor(e){this.githubService=e}uploadFile(e,t){let i;i=e instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(e)):e;const n=this.getFileExtension(t);if(bN.includes(n.toLowerCase())){i=i.split(",")[1];const e=NP(),t=()=>this.githubService.uploadFile(`${e}.${n}`,i);return t().pipe(yg(e=>404!==e.status?Qb(e):_h(!1)),U(e=>e?_h(e):this.githubService.createBranch().pipe(U(t))))}return Qb(vN)}getFileExtension(e){return e.split(".").pop()}isVideoFile(e){const t=this.getFileExtension(e);return yN.includes(t.toLowerCase())}isSupportedFileType(e){const t=this.getFileExtension(e);return bN.includes(t.toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)(Tn(dY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const SN=["gif","jpeg","jpg","png"];function TN(e,t,i,n){const r=n.nativeElement.selectionEnd,s=`[Uploading ${e}...]`,o=i.value.indexOf(s),a=o+s.length,l=o+t.length,u=r>o-1&&r<=a?l:r ",multiline:!0,surroundWithNewlines:!0},code:{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"},link:{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},image:{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},"unordered-list":{prefix:"- ",multiline:!0,unorderedList:!0},"ordered-list":{prefix:"1. ",multiline:!0,orderedList:!0},"task-list":{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0},mention:{prefix:"@",prefixSpace:!0},ref:{prefix:"#",prefixSpace:!0},strikethrough:{prefix:"~~",suffix:"~~",trimFirst:!0}};class IN extends HTMLElement{constructor(){super();const e=e=>{const t=ON.get(this);!t||(e.preventDefault(),oH(this,t))};this.addEventListener("keydown",LN(e)),this.addEventListener("click",e)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","button")}click(){const e=ON.get(this);!e||oH(this,e)}}class RN extends IN{constructor(){super(...arguments),EN.add(this)}connectedCallback(){const e=parseInt(this.getAttribute("level")||"3",10);MN(this,EN,"m",xN).call(this,e)}static get observedAttributes(){return["level"]}attributeChangedCallback(e,t,i){if("level"!==e)return;const n=parseInt(i||"3",10);MN(this,EN,"m",xN).call(this,n)}}EN=new WeakSet,xN=function(e){if(e<1||e>6)return;const t=`${"#".repeat(e)} `;ON.set(this,{prefix:t})},window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=RN,window.customElements.define("md-header",RN));class PN extends IN{connectedCallback(){ON.set(this,{prefix:"**",suffix:"**",trimFirst:!0})}}window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=PN,window.customElements.define("md-bold",PN));class YN extends IN{connectedCallback(){ON.set(this,{prefix:"_",suffix:"_",trimFirst:!0})}}window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=YN,window.customElements.define("md-italic",YN));class FN extends IN{connectedCallback(){ON.set(this,{prefix:"> ",multiline:!0,surroundWithNewlines:!0})}}window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=FN,window.customElements.define("md-quote",FN));class jN extends IN{connectedCallback(){ON.set(this,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"})}}window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=jN,window.customElements.define("md-code",jN));class qN extends IN{connectedCallback(){ON.set(this,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=qN,window.customElements.define("md-link",qN));class NN extends IN{connectedCallback(){ON.set(this,{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}window.customElements.get("md-image")||(window.MarkdownImageButtonElement=NN,window.customElements.define("md-image",NN));class HN extends IN{connectedCallback(){ON.set(this,{prefix:"- ",multiline:!0,unorderedList:!0})}}window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=HN,window.customElements.define("md-unordered-list",HN));class UN extends IN{connectedCallback(){ON.set(this,{prefix:"1. ",multiline:!0,orderedList:!0})}}window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=UN,window.customElements.define("md-ordered-list",UN));class zN extends IN{connectedCallback(){ON.set(this,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0})}}window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=zN,window.customElements.define("md-task-list",zN));class BN extends IN{connectedCallback(){ON.set(this,{prefix:"@",prefixSpace:!0})}}window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=BN,window.customElements.define("md-mention",BN));class VN extends IN{connectedCallback(){ON.set(this,{prefix:"#",prefixSpace:!0})}}window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=VN,window.customElements.define("md-ref",VN));class $N extends IN{connectedCallback(){ON.set(this,{prefix:"~~",suffix:"~~",trimFirst:!0})}}function WN(e){const{target:t,currentTarget:i}=e;if(!(t instanceof Element))return;const n=t.closest("[data-md-button]");if(!n||n.closest("markdown-toolbar")!==i)return;const r=n.getAttribute("data-md-button"),s=AN[r];!s||(e.preventDefault(),oH(t,s))}function GN(e){e.addEventListener("keydown",JN),e.setAttribute("tabindex","0"),e.addEventListener("focus",KN,{once:!0})}function ZN(e){e.removeEventListener("keydown",JN),e.removeAttribute("tabindex"),e.removeEventListener("focus",KN)}window.customElements.get("md-strikethrough")||(window.MarkdownStrikethroughButtonElement=$N,window.customElements.define("md-strikethrough",$N));let QN=(()=>{class e extends HTMLElement{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.hasAttribute("data-no-focus")||GN(this),this.addEventListener("keydown",LN(WN)),this.addEventListener("click",WN)}attributeChangedCallback(e,t,i){"data-no-focus"===e&&(null===i?GN(this):ZN(this))}disconnectedCallback(){ZN(this)}get field(){const e=this.getAttribute("for");if(!e)return null;const t="getRootNode"in this?this.getRootNode():document;let i;return(t instanceof Document||t instanceof ShadowRoot)&&(i=t.getElementById(e)),i instanceof HTMLTextAreaElement?i:null}}return e.observedAttributes=["data-no-focus"],e})();function KN({target:e}){if(!(e instanceof Element))return;e.removeAttribute("tabindex");let t="0";for(const i of DN(e))i.setAttribute("tabindex",t),"0"===t&&(i.focus(),t="-1")}function JN(e){const t=e.key;if("ArrowRight"!==t&&"ArrowLeft"!==t&&"Home"!==t&&"End"!==t)return;const i=e.currentTarget;if(!(i instanceof HTMLElement))return;const n=DN(i),r=n.indexOf(e.target),s=n.length;if(-1===r)return;let o=0;"ArrowLeft"===t&&(o=r-1),"ArrowRight"===t&&(o=r+1),"End"===t&&(o=s-1),o<0&&(o=s-1),o>s-1&&(o=0);for(let a=0;a1}function eH(e,t){return Array(t+1).join(e)}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=QN,window.customElements.define("markdown-toolbar",QN));let tH=null;function iH(e){const t=e.value.slice(0,e.selectionStart),i=e.value.slice(e.selectionEnd),n=t.match(/\n*$/),r=i.match(/^\n*/),s=n?n[0].length:0,o=r?r[0].length:0;let a,l;return t.match(/\S/)&&s<2&&(a=eH("\n",2-s)),i.match(/\S/)&&o<2&&(l=eH("\n",2-o)),null==a&&(a=""),null==l&&(l=""),{newlinesToAppend:a,newlinesToPrepend:l}}function nH(e){const t=e.split("\n"),i=/^\d+\.\s+/,n=t.every(e=>i.test(e));let r=t;return n&&(r=t.map(e=>e.replace(i,""))),{text:r.join("\n"),processed:n}}function rH(e){const t=e.split("\n"),i=t.every(e=>e.startsWith("- "));let n=t;return i&&(n=t.map(e=>e.slice("- ".length,e.length))),{text:n.join("\n"),processed:i}}function sH(e,t){return t?"- ":`${e+1}. `}function oH(e,t){const i=e.closest("markdown-toolbar");if(!(i instanceof QN))return;const n=Object.assign(Object.assign({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),t),r=i.field;r&&(r.focus(),function(e,t){const i=e.value.slice(e.selectionStart,e.selectionEnd);let n;n=t.orderedList||t.unorderedList?function(e,t){const i=e.selectionStart===e.selectionEnd;let n=e.selectionStart,r=e.selectionEnd;!function(e){const t=e.value.split("\n");let i=0;for(let n=0;n=i&&e.selectionStart=i&&e.selectionEnd`${sH(i,t.unorderedList)}${e}`),c=u.reduce((e,i,n)=>e+sH(n,t.unorderedList).length,0),d=u.reduce((e,i,n)=>e+sH(n,!t.unorderedList).length,0);if(o.processed)return i?(n=Math.max(n-sH(0,t.unorderedList).length,0),r=n):(n=e.selectionStart,r=e.selectionEnd-c),{text:l,selectionStart:n,selectionEnd:r};const{newlinesToAppend:h,newlinesToPrepend:p}=iH(e),m=h+u.join("\n")+p;return i?(n=Math.max(n+sH(0,t.unorderedList).length+h.length,0),r=n):a.processed?(n=Math.max(e.selectionStart+h.length,0),r=e.selectionEnd+h.length+c-d):(n=Math.max(e.selectionStart+h.length,0),r=e.selectionEnd+h.length+c),{text:m,selectionStart:n,selectionEnd:r}}(e,t):t.multiline&&XN(i)?function(e,t){const{prefix:i,suffix:n,surroundWithNewlines:r}=t;let s=e.value.slice(e.selectionStart,e.selectionEnd),o=e.selectionStart,a=e.selectionEnd;const l=s.split("\n");if(l.every(e=>e.startsWith(i)&&e.endsWith(n)))s=l.map(e=>e.slice(i.length,e.length-n.length)).join("\n"),a=o+s.length;else if(s=l.map(e=>i+e+n).join("\n"),r){const{newlinesToAppend:t,newlinesToPrepend:i}=iH(e);o+=t.length,a=o+s.length,s=t+s+i}return{text:s,selectionStart:o,selectionEnd:a}}(e,t):function(e,t){let i,n;const{prefix:r,suffix:s,blockPrefix:o,blockSuffix:a,replaceNext:l,prefixSpace:u,scanFor:c,surroundWithNewlines:d}=t,h=e.selectionStart,p=e.selectionEnd;let m=e.value.slice(e.selectionStart,e.selectionEnd),f=XN(m)&&o.length>0?`${o}\n`:r,g=XN(m)&&a.length>0?`\n${a}`:s;if(u){const t=e.value[e.selectionStart-1];0!==e.selectionStart&&null!=t&&!t.match(/\s/)&&(f=` ${f}`)}m=function(e,t,i,n=!1){if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){let i=t;for(;e[i]&&null!=e[i-1]&&!e[i-1].match(/\s/);)i--;return i}(e.value,e.selectionStart),e.selectionEnd=function(e,t,i){let n=t;const r=i?/\n/:/\s/;for(;e[n]&&!e[n].match(r);)n++;return n}(e.value,e.selectionEnd,n);else{const n=e.selectionStart-t.length,r=e.selectionEnd+i.length,s=e.value.slice(n,e.selectionStart)===t,o=e.value.slice(e.selectionEnd,r)===i;s&&o&&(e.selectionStart=n,e.selectionEnd=r)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,f,g,t.multiline);let _=e.selectionStart,y=e.selectionEnd;const b=l.length>0&&g.indexOf(l)>-1&&m.length>0;if(d){const t=iH(e);i=t.newlinesToAppend,n=t.newlinesToPrepend,f=i+r,g+=n}if(m.startsWith(f)&&m.endsWith(g)){const e=m.slice(f.length,m.length-g.length);if(h===p){let t=h-f.length;t=Math.max(t,_),t=Math.min(t,_+e.length),_=y=t}else y=_+e.length;return{text:e,selectionStart:_,selectionEnd:y}}if(b){if(c.length>0&&m.match(c))return g=g.replace(l,m),_=y=_+f.length,{text:f+g,selectionStart:_,selectionEnd:y};{const e=f+m+g;return _=_+f.length+m.length+g.indexOf(l),y=_+l.length,{text:e,selectionStart:_,selectionEnd:y}}}{let e=f+m+g;_=h+f.length,y=p+f.length;const i=m.match(/^\s*|\s*$/g);if(t.trimFirst&&i){const t=i[0]||"",n=i[1]||"";e=t+f+m.trim()+g+n,_+=t.length,y-=n.length}return{text:e,selectionStart:_,selectionEnd:y}}}(e,t),function(e,{text:t,selectionStart:i,selectionEnd:n}){const r=e.selectionStart,s=e.value.slice(0,r),o=e.value.slice(e.selectionEnd);if(null===tH||!0===tH){e.contentEditable="true";try{tH=document.execCommand("insertText",!1,t)}catch(a){tH=!1}e.contentEditable="false"}if(tH&&!e.value.slice(0,e.selectionStart).endsWith(t)&&(tH=!1),!tH){try{document.execCommand("ms-beginUndoUnit")}catch(a){}e.value=s+t+o;try{document.execCommand("ms-endUndoUnit")}catch(a){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=i&&null!=n?e.setSelectionRange(i,n):e.setSelectionRange(r,e.selectionEnd)}(e,n)}(r,n))}let aH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-markdown-toolbar"]],inputs:{forTextAreaId:"forTextAreaId"},decls:42,vars:1,consts:[["matTooltip","Add bold text","mat-icon-button","","color","accent"],["matTooltip","Add italic text","mat-icon-button","","color","accent"],["matTooltip","Add heading text","mat-icon-button","","color","accent"],["matTooltip","Add a quote","mat-icon-button","","color","accent"],["matTooltip","Add code","mat-icon-button","","color","accent"],["matTooltip","Add a link","mat-icon-button","","color","accent"],["matTooltip","Add a image via link","mat-icon-button","","color","accent"],["matTooltip","Add a bulleted list","mat-icon-button","","color","accent"],["matTooltip","Add a numbered list","mat-icon-button","","color","accent"],["matTooltip","Add a task list","mat-icon-button","","color","accent"]],template:function(e,t){1&e&&(Ko(0,"markdown-toolbar"),Ko(1,"md-bold"),Ko(2,"button",0),Ko(3,"mat-icon"),Fa(4,"format_bold"),Jo(),Jo(),Jo(),Ko(5,"md-italic"),Ko(6,"button",1),Ko(7,"mat-icon"),Fa(8,"format_italic"),Jo(),Jo(),Jo(),Ko(9,"md-header"),Ko(10,"button",2),Ko(11,"mat-icon"),Fa(12,"title"),Jo(),Jo(),Jo(),Ko(13,"md-quote"),Ko(14,"button",3),Ko(15,"mat-icon"),Fa(16,"format_quote"),Jo(),Jo(),Jo(),Ko(17,"md-code"),Ko(18,"button",4),Ko(19,"mat-icon"),Fa(20,"code"),Jo(),Jo(),Jo(),Ko(21,"md-link"),Ko(22,"button",5),Ko(23,"mat-icon"),Fa(24,"link"),Jo(),Jo(),Jo(),Ko(25,"md-image"),Ko(26,"button",6),Ko(27,"mat-icon"),Fa(28,"image"),Jo(),Jo(),Jo(),Ko(29,"md-unordered-list"),Ko(30,"button",7),Ko(31,"mat-icon"),Fa(32,"format_list_bulleted"),Jo(),Jo(),Jo(),Ko(33,"md-ordered-list"),Ko(34,"button",8),Ko(35,"mat-icon"),Fa(36,"format_list_numbered"),Jo(),Jo(),Jo(),Ko(37,"md-task-list"),Ko(38,"md-header"),Ko(39,"button",9),Ko(40,"mat-icon"),Fa(41,"task"),Jo(),Jo(),Jo(),Jo(),Jo()),2&e&&Bo("for",t.forTextAreaId)},directives:[oD,BA,cL],styles:[""]}),e})();const lH=["dropArea"],uH=["commentTextArea"],cH=["markdownArea"];function dH(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Description required. "),Jo())}function hH(e,t){if(1&e&&(Ko(0,"mat-error"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" Description cannot exceed ",e.maxLength," characters. ")}}function pH(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.maxLength-(null==e.commentField.value?null:e.commentField.value.length)," character(s) remaining. ")}}function mH(e,t){1&e&&(Ko(0,"span"),Fa(1," Attach files by dragging & dropping or select them by clicking here. "),Jo())}function fH(e,t){if(1&e&&(Ko(0,"span",17),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.uploadErrorMessage," ")}}function gH(e,t){1&e&&Xo(0,"markdown",18,19),2&e&&Zo("data",pa().commentField.value)}function _H(e,t){1&e&&(Ko(0,"div"),Fa(1,"Nothing to preview."),Jo())}let yH=(()=>{class e{constructor(e,t,i){this.uploadService=e,this.errorHandlingService=t,this.logger=i,this.SUPPORTED_FILE_TYPES=bN,this.placeholderText="No details provided.",this.isFormPendingChange=new vu,this.submitButtonTextChange=new vu,this.dragActiveCounter=0,this.maxLength=4e4}formatFileUploadingButtonText(e){return e+" (Waiting for File Upload to finish...)"}ngOnInit(){if(void 0!==this.initialDescription&&this.commentField.setValue(this.initialDescription),void 0===this.commentField||void 0===this.commentForm||void 0===this.id)throw new Error("Comment Editor's compulsory properties are not defined.");this.initialSubmitButtonText=this.submitButtonText,this.commentField.setValidators([Cw.maxLength(this.maxLength)]),this.history=new _N(75,()=>({text:this.commentTextArea.nativeElement.value,selectStart:this.commentTextArea.nativeElement.selectionStart,selectEnd:this.commentTextArea.nativeElement.selectionEnd}),500)}onKeyPress(e){if(_N.isUndo(e))return e.preventDefault(),void this.undo();if(_N.isRedo(e))return this.redo(),void e.preventDefault();if(this.isControlKeyPressed(e)&&!e.shiftKey)switch(e.code){case"KeyB":e.preventDefault(),this.history.wrapSave(()=>this.insertOrRemoveCharsFromHighlightedText("**"));break;case"KeyI":e.preventDefault(),this.history.wrapSave(()=>this.insertOrRemoveCharsFromHighlightedText("_"));break;default:return}}onDragEnter(e){e.preventDefault(),e.stopPropagation(),this.dragActiveCounter++,this.dropArea.nativeElement.classList.add(this.commentField.disabled?"highlight-drag-box-disabled":"highlight-drag-box")}disableCaretMovement(e){e.preventDefault()}enableFileDrop(e){e.preventDefault()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle(),this.commentField.disabled)return;const t=e.dataTransfer.files;if(!(void 0===t||t.length<=0)){this.commentTextArea.nativeElement.focus();for(let e=0;e{this.logger.info(`CommentEditorComponent: File ${e+1} of ${t.length}. Begin uploading ${t[e].name}.`),this.readAndUploadFile(t[e])},250*e)}}onDragExit(e){e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle()}onFileInputUpload(e,t){e.preventDefault(),e.stopPropagation();const i=t.files;i.length>0&&(this.readAndUploadFile(i[0]),t.value="")}updateParentFormsSubmittability(e,t){this.isFormPendingChange.emit(e),this.submitButtonTextChange.emit(t)}readAndUploadFile(e){this.uploadErrorMessage=null;const t=new FileReader,i=e.name,n=function(e,t,i){const n=t.value,r=e.split(".").pop();let s;s=SN.includes(r.toLowerCase())?`![Uploading ${e}...]\n`:`[Uploading ${e}...]\n`;const o=i.nativeElement.selectionEnd,a=n.indexOf("\n",o),l=o+s.length;if(-1===a)t.setValue(""===t.value?s:`${t.value}\n${s}`);else{const e=n.slice(0,a+1),i=n.slice(a);t.setValue(`${e+s+i}`)}return i.nativeElement.setSelectionRange(l,l),s}(i,this.commentField,this.commentTextArea);if(e.size>=11534336)return void this.handleUploadError(wN("file",10),n);if(this.uploadService.isVideoFile(i)&&e.size>=6291456)return void this.handleUploadError(wN("video",5),n);if(!this.uploadService.isSupportedFileType(i))return void this.handleUploadError(vN,n);this.lastUploadingTime=(new Date).getTime().toString();const r=this.lastUploadingTime;this.updateParentFormsSubmittability(!0,this.formatFileUploadingButtonText(this.initialSubmitButtonText)),t.onload=()=>{this.uploadService.uploadFile(t.result,i).subscribe(e=>{this.uploadService.isVideoFile(i)?function(e,t,i,n){TN(e,`
video:${t}
`,i,n)}(i,e.data.content.download_url,this.commentField,this.commentTextArea):function(e,t,i,n){TN(e,`[${e}](${t})`,i,n)}(i,e.data.content.download_url,this.commentField,this.commentTextArea),this.history.forceSave()},e=>{this.handleUploadError(e,n),r===this.lastUploadingTime&&this.updateParentFormsSubmittability(!1,this.initialSubmitButtonText)},()=>{r===this.lastUploadingTime&&this.updateParentFormsSubmittability(!1,this.initialSubmitButtonText)})},t.readAsDataURL(e)}onPaste(e){this.history.forceSave(null,!0,!1);const t=e.clipboardData.items;let i=null;for(const n of t)if(0===n.type.indexOf("image")){i=n.getAsFile(),e.stopPropagation();break}i&&this.readAndUploadFile(i)}handleBeforeInputChange(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.updateBeforeChange()}}handleInputChange(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.createDelayedSave()}}undo(){const e=this.history.undo();null!==e&&(this.commentField.setValue(e.text),this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}redo(){const e=this.history.redo();null!==e&&(this.commentTextArea.nativeElement.value=e.text,this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}get isInErrorState(){return!!this.uploadErrorMessage}handleUploadError(e,t){e instanceof Nh?(this.errorHandlingService.handleError(e),this.uploadErrorMessage="Something went wrong while uploading your file. Please try again."):this.uploadErrorMessage=e,this.commentField.setValue(this.commentField.value.replace(t,"")),this.history.forceSave()}removeHighlightBorderStyle(){this.dragActiveCounter--,0===this.dragActiveCounter&&(this.dropArea.nativeElement.classList.remove("highlight-drag-box"),this.dropArea.nativeElement.classList.remove("highlight-drag-box-disabled"))}isControlKeyPressed(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey:e.ctrlKey}insertOrRemoveCharsFromHighlightedText(e){const t=this.commentTextArea.nativeElement.selectionStart,i=this.commentTextArea.nativeElement.selectionEnd,n=this.commentTextArea.nativeElement.value,r=n.slice(t,i),s=r.trim(),o=r.trimRight().length-s.length,a=r.trimLeft().length-s.length;this.hasCharsBeforeAndAfterHighlight(t,i,n,e)?this.removeCharsBeforeAndAfterHighlightedText(t,i,n,r,e):this.hasCharsInTrimmedHighlight(r,e)?this.removeCharsFromHighlightedText(t,i,n,s,e,o,a):this.insertCharsToHighlightedText(t,i,n,s,e,o,a)}hasCharsBeforeAndAfterHighlight(e,t,i,n){const r=i.slice(e-n.length,e)===n,s=i.slice(t,t+n.length)===n;return r&&s}hasCharsInTrimmedHighlight(e,t){const i=e.trim(),n=i.slice(0,t.length)===t,r=i.slice(-t.length)===t;return n&&r}removeCharsBeforeAndAfterHighlightedText(e,t,i,n,r){this.commentField.setValue(i.slice(0,e-r.length)+n+i.slice(t+r.length)),this.commentTextArea.nativeElement.setSelectionRange(e-r.length,t-r.length)}removeCharsFromHighlightedText(e,t,i,n,r,s,o){this.commentField.setValue(i.slice(0,e)+" ".repeat(s)+n.slice(r.length,-r.length)+" ".repeat(o)+i.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+s,t-2*r.length-o)}insertCharsToHighlightedText(e,t,i,n,r,s,o){this.commentField.setValue(i.slice(0,e)+" ".repeat(s)+r+n+r+" ".repeat(o)+i.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+r.length+s,t+r.length-o)}}return e.\u0275fac=function(t){return new(t||e)(Go(kN),Go(rY),Go(iY))},e.\u0275cmp=Ve({type:e,selectors:[["app-comment-editor"]],viewQuery:function(e,t){if(1&e&&(Iu(lH,7),Iu(uH,7),Iu(cH,5)),2&e){let e;Au(e=Pu())&&(t.dropArea=e.first),Au(e=Pu())&&(t.commentTextArea=e.first),Au(e=Pu())&&(t.markdownArea=e.first)}},inputs:{commentField:"commentField",commentForm:"commentForm",id:"id",initialDescription:"initialDescription",isFormPending:"isFormPending",submitButtonText:"submitButtonText"},outputs:{isFormPendingChange:"isFormPendingChange",submitButtonTextChange:"submitButtonTextChange"},decls:23,vars:15,consts:[[2,"min-height","350px",3,"formGroup"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Write"],[1,"tab-content",3,"dragleave","dragenter","drop","dragover"],["dropArea",""],[3,"forTextAreaId"],["appearance","outline",2,"width","100%"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","10","cdkAutosizeMaxRows","20",1,"text-input-area",3,"id","formControlName","placeholder","maxlength","paste","keydown","beforeinput","input","dragover"],["commentTextArea","","autosize","cdkTextareaAutosize"],[4,"ngIf"],[1,"drag-and-drop"],["class","error",4,"ngIf"],["type","file",1,"file",3,"disabled","accept","change"],["fileInput",""],["label","Preview"],[1,"tab-content",2,"min-height","228px"],["disableInternalLink","",3,"data",4,"ngIf"],[1,"error"],["disableInternalLink","",3,"data"],["markdownArea",""]],template:function(e,t){if(1&e){const e=na();Ko(0,"form",0),Ko(1,"mat-tab-group",1),la("selectedTabChange",function(){Yt(e);const i=Wo(9);return t.commentField.setValue(i.value)}),Ko(2,"mat-tab",2),Ko(3,"div",3,4),la("dragleave",function(e){return t.onDragExit(e)})("dragenter",function(e){return t.onDragEnter(e)})("drop",function(e){return t.onDrop(e)})("dragover",function(e){return t.enableFileDrop(e)}),Xo(5,"app-markdown-toolbar",5),Ko(6,"mat-form-field",6),Xo(7,"mat-label"),Ko(8,"textarea",7,8),la("paste",function(e){return t.onPaste(e)})("keydown",function(e){return t.onKeyPress(e)})("beforeinput",function(e){return t.handleBeforeInputChange(e)})("input",function(e){return t.handleInputChange(e)})("dragover",function(e){return t.disableCaretMovement(e)}),Jo(),$o(11,dH,2,0,"mat-error",9),$o(12,hH,2,1,"mat-error",9),$o(13,pH,2,1,"mat-hint",9),Ko(14,"div",10),$o(15,mH,2,0,"span",9),$o(16,fH,2,1,"span",11),Ko(17,"input",12,13),la("change",function(i){Yt(e);const n=Wo(18);return t.onFileInputUpload(i,n)}),Jo(),Jo(),Jo(),Jo(),Jo(),Ko(19,"mat-tab",14),Ko(20,"div",15),$o(21,gH,2,1,"markdown",16),$o(22,_H,2,0,"div",9),Jo(),Jo(),Jo(),Jo()}2&e&&(Zo("formGroup",t.commentForm),fs(5),Zo("forTextAreaId",t.id),fs(3),_a("id",t.id),_a("formControlName",t.id),_a("placeholder",t.placeholderText),_a("maxlength",t.maxLength),fs(3),Zo("ngIf",t.commentField.errors&&t.commentField.errors.required&&t.commentField.touched),fs(1),Zo("ngIf",t.commentField.errors&&t.commentField.errors.maxLength),fs(1),Zo("ngIf",(null==t.commentField.value?null:t.commentField.value.length)>=t.maxLength-50),fs(2),Zo("ngIf",!t.isInErrorState),fs(1),Zo("ngIf",t.isInErrorState),fs(1),Zo("disabled",t.commentField.disabled)("accept",t.SUPPORTED_FILE_TYPES),fs(4),Zo("ngIf",""!==t.commentField.value),fs(1),Zo("ngIf",""===t.commentField.value))},directives:[Ok,Xw,Fk,dP,tP,aH,NC,AC,SL,_L,kw,Jw,qk,zk,gd,xC,OC,tw,gN],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px}.highlight-drag-box[_ngcontent-%COMP%]{border-style:dashed;border-color:#98fb98;border-width:2px}.highlight-drag-box-disabled[_ngcontent-%COMP%]{border-style:dashed;border-color:#fb2a5c;border-width:2px}.drag-and-drop[_ngcontent-%COMP%]{color:#586069;font-size:13px;line-height:16px;position:relative;border-top-style:dashed;border-top-color:#3f51b5;border-top-width:2px;margin-top:5px;padding-top:5px}.error[_ngcontent-%COMP%]{color:#b22222}.file[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}"]}),e})();const bH=["loadingSpinnerContainer"];function vH(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1," Edit "),Jo()}}function wH(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"markdown",10),Jo()),2&e){const e=pa();fs(1),Zo("data",e.issue.description)}}function kH(e,t){if(1&e){const e=na();Ko(0,"button",17),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Description "),Jo()}2&e&&Zo("disabled",pa(2).isSavePending)}function SH(e,t){if(1&e&&(Ko(0,"button",18),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.issueDescriptionForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function TH(e,t){if(1&e&&(Ko(0,"button",19),Ko(1,"mat-button-content"),Fa(2),ia(3,null,20),Jo(),Jo()),2&e){const e=pa(2);Zo("disabled",e.issueDescriptionForm.invalid||e.isSavePending),fs(2),qa(" ",e.submitButtonText," ")}}function EH(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",11),la("isFormPendingChange",function(t){return Yt(e),pa().isSavePending=t})("submitButtonTextChange",function(t){return Yt(e),pa().submitButtonText=t}),Jo(),Ko(2,"div",12),$o(3,kH,2,1,"button",13),Ko(4,"button",14),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(5," Cancel "),Jo(),$o(6,SH,2,2,"button",15),$o(7,TH,5,2,"button",16),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("id","description")("commentField",e.issueDescriptionForm.get("description"))("commentForm",e.issueDescriptionForm)("isFormPending",e.isSavePending)("submitButtonText",e.submitButtonText),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("disabled",e.isSavePending),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict)}}let xH=(()=>{class e{constructor(e,t,i,n,r,s,o,a){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.dialog=n,this.phaseService=r,this.permissions=s,this.dialogService=o,this.loadingService=a,this.isSavePending=!1,this.issueUpdated=new vu,this.changeEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}ngOnInit(){this.issueDescriptionForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save",this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addTheme("warn").addCssClasses(["mat-progress-spinner"])}changeToEditMode(){this.changeEditState.emit(!0),this.issueDescriptionForm.setValue({description:this.issue.description||""})}updateDescription(e){this.issueDescriptionForm.invalid||(this.showSpinner(),this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>e.description===this.issue.description),U(e=>e||"Overwrite"===this.submitButtonText?this.issueService.updateIssue(this.getUpdatedIssue()):(this.conflict=new uN(this.issue.description,this.issueService.issues[this.issue.id].description),this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again.")))).subscribe(t=>{this.issueUpdated.emit(t),this.resetToDefault(),e.resetForm(),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()}))}viewChanges(){this.dialog.open(mN,{data:this.conflict,autoFocus:!1})}resetToDefault(){this.submitButtonText="Save",this.conflict=void 0,this.changeEditState.emit(!1)}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.issueDescriptionForm,"description","description",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);return e.description=tj.updateDescription(this.issueDescriptionForm.get("description").value),e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(HL),Go(Sj),Go(vq),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-description"]],viewQuery:function(e,t){if(1&e&&Iu(bH,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue",descriptionTitle:"descriptionTitle",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",changeEditState:"changeEditState"},features:[sl([Uq])],decls:13,vars:6,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action additional-editor-style","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action","additional-editor-style",3,"disabled"],["loadingSpinnerContainer",""]],template:function(e,t){if(1&e){const e=na();Ko(0,"h3",0),Fa(1),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.updateDescription(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"span"),Ko(7,"strong"),Fa(8," Tester "),Jo(),Fa(9),Jo(),$o(10,vH,2,0,"button",5),Jo(),$o(11,wH,2,1,"div",6),$o(12,EH,8,9,"div",7),Jo(),Jo()}2&e&&(fs(1),ja(t.descriptionTitle),fs(1),Zo("formGroup",t.issueDescriptionForm),fs(7),qa(" posted on ",t.issue.created_at,". "),fs(1),Zo("ngIf",t.permissions.isIssueDescriptionEditable()&&!t.isEditing),fs(1),Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,oD,tw,gN,yH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e})();function MH(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function CH(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"markdown",10),Jo()),2&e){const e=pa();fs(1),Zo("data",e.issue.teamResponse)}}function DH(e,t){if(1&e){const e=na();Ko(0,"button",17),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa(2).isSavePending)}function LH(e,t){if(1&e&&(Ko(0,"button",18),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.responseForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function OH(e,t){if(1&e&&(Ko(0,"button",19),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.responseForm.invalid||e.isSavePending),fs(1),qa(" ",e.submitButtonText," ")}}function AH(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",11),la("isFormPendingChange",function(t){return Yt(e),pa().isSavePending=t})("submitButtonTextChange",function(t){return Yt(e),pa().submitButtonText=t}),Jo(),Ko(2,"div",12),$o(3,DH,2,1,"button",13),$o(4,LH,2,2,"button",14),$o(5,OH,2,2,"button",15),Ko(6,"button",16),la("click",function(){return Yt(e),pa().openCancelDialogIfModified()}),Fa(7," Cancel "),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(1),Zo("id","description")("commentField",e.responseForm.get("description"))("commentForm",e.responseForm)("isFormPending",e.isSavePending)("submitButtonText",e.submitButtonText),fs(2),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("disabled",e.isSavePending)}}let IH=(()=>{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.permissions=n,this.dialog=r,this.phaseService=s,this.dialogService=o,this.isSavePending=!1,this.issueUpdated=new vu,this.updateEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"}ngOnInit(){this.responseForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save"}changeToEditMode(){this.updateEditState.emit(!0),this.responseForm.setValue({description:this.issue.teamResponse||""})}updateResponse(e){if(this.responseForm.invalid)return;this.isSavePending=!0;const t=this.getUpdatedIssue(),i=Object.assign(Object.assign({},t.issueComment),{description:t.createGithubTeamResponse()});this.isSafeToUpdate().pipe(U(e=>e||"Overwrite"===this.submitButtonText?this.issueService.updateIssueWithComment(t,i):this.isUpdatingDeletedResponse()?this.issueService.createTeamResponse(t):(this.conflict=new uN(this.issue.teamResponse,this.issueService.issues[this.issue.id].teamResponse),this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isSavePending=!1)).subscribe(t=>{this.issueUpdated.emit(t),this.resetToDefault(),e.resetForm()},e=>{this.errorHandlingService.handleError(e)})}isSafeToUpdate(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>e.teamResponse===this.issue.teamResponse))}isUpdatingDeletedResponse(){return this.issue.teamResponse&&!this.issueService.issues[this.issue.id].teamResponse}canEditIssue(){return this.permissions.isTeamResponseEditable()}resetToDefault(){this.submitButtonText="Save",this.conflict=void 0,this.updateEditState.emit(!1)}viewChanges(){this.dialog.open(mN,{data:this.conflict,autoFocus:!1})}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}openCancelDialogIfModified(){const e=this.dialogService.checkIfFieldIsModified(this.responseForm,"teamResponse","description",this.issue);this.dialogService.performActionIfModified(e,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);return e.teamResponse=tj.updateTeamResponse(this.responseForm.get("description").value),e.status||(e.status=""===e.teamResponse?rj.Incomplete:rj.Done),e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(vq),Go(HL),Go(Sj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-team-response"]],inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},decls:13,vars:4,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"]],template:function(e,t){if(1&e){const e=na();Ko(0,"h3",0),Fa(1,"Team's Response"),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.updateResponse(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"span"),Ko(7,"strong"),Fa(8," Team "),Jo(),Fa(9," responded. "),Jo(),$o(10,MH,2,0,"button",5),Jo(),$o(11,CH,2,1,"div",6),$o(12,AH,8,9,"div",7),Jo(),Jo()}2&e&&(fs(2),Zo("formGroup",t.responseForm),fs(8),Zo("ngIf",t.canEditIssue()&&!t.isEditing),fs(1),Zo("ngIf",!t.isEditing),fs(1),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,oD,tw,gN,yH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}"]}),e})();var RH=(()=>(function(e){e.ID="id",e.TITLE="title",e.TEAM_ASSIGNED="teamAssigned",e.TYPE="type",e.SEVERITY="severity",e.RESPONSE="response",e.TESTER_DISAGREE="testerDisagree",e.ASSIGNEE="assignees",e.DUPLICATED_ISSUES="duplicatedIssues",e.TODO="Todo Remaining",e.ACTIONS="actions"}(RH||(RH={})),RH))();function PH(e,t,i,n){const r=e.toLowerCase();return n.slice().filter(e=>{for(const n of t)switch(n){case RH.ASSIGNEE:if(FH(e.assignees,r))return!0;break;case RH.DUPLICATED_ISSUES:if(jH(i,e.id,r))return!0;break;default:if(qH(e,n,r))return!0}return!1})}function YH(e,t){return-1!==e.indexOf(t)}function FH(e,t){return e.some(e=>YH(e.toLowerCase(),t))}function jH(e,t,i){return function(e,t){return 0!==e.filter(e=>`#${String(e.id)}`.includes(t)).length}(e.issues$.getValue().filter(e=>e.duplicateOf===t),i)}function qH(e,t,i){return YH(String(e[t]).toLowerCase(),i)}function NH(e,t){if(1&e){const e=na();Ko(0,"button",6),la("click",function(){return Yt(e),pa().openSelector()}),Ko(1,"mat-icon",7),Fa(2," edit "),Jo(),Jo()}}function HH(e,t){if(1&e&&(Ko(0,"mat-option",8),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),ja(e)}}function UH(e,t){1&e&&(Ko(0,"p",9),Fa(1,"-"),Jo())}function zH(e,t){if(1&e&&(Ko(0,"mat-list-item",12),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),ja(e)}}function BH(e,t){if(1&e&&(Ko(0,"mat-list",10),$o(1,zH,2,1,"mat-list-item",11),Jo()),2&e){const e=pa();fs(1),Zo("ngForOf",e.issue.assignees)}}let VH=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.permissions=n,this.isInEditMode=!1,this.isEditable=!0,this.issueUpdated=new vu}ngOnInit(){this.teamMembers=this.team.teamMembers.map(e=>e.loginId),this.assignees=this.issue.assignees.map(e=>e)}openSelector(){this.isInEditMode=!0,this.assigneeSelection.open()}handleEditMode(e){e||(this.isInEditMode=!1)}updateAssignee(){const e=this.issue.clone(this.phaseService.currentPhase),t=e.assignees;e.assignees=this.assignees,this.issueService.updateIssue(e).subscribe(e=>{this.issueUpdated.emit(e),this.issueService.getDuplicateIssuesFor(this.issue).pipe(Og()).subscribe(e=>{e.forEach(e=>{const t=e.clone(this.phaseService.currentPhase);t.assignees=this.assignees,this.issueService.updateIssue(t)})})},e=>{this.errorHandlingService.handleError(e),this.assignees=t})}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-assignee-component"]],viewQuery:function(e,t){if(1&e&&Iu(PA,7),2&e){let e;Au(e=Pu())&&(t.assigneeSelection=e.first)}},inputs:{issue:"issue",team:"team",isEditable:"isEditable"},outputs:{issueUpdated:"issueUpdated"},decls:9,vars:7,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"click",4,"ngIf"],["placeholder","-","multiple","",1,"no-arrow",3,"ngModel","openedChange","closed","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["style","padding-top: 0","dense","",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"value"],[2,"margin-top","5px"],["dense","",2,"padding-top","0"],["style","font-size: 1em",4,"ngFor","ngForOf"],[2,"font-size","1em"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"span",0),Fa(2," Assignees "),Jo(),$o(3,NH,3,0,"button",1),Ko(4,"mat-select",2),la("openedChange",function(e){return t.handleEditMode(e)})("closed",function(){return t.updateAssignee()})("ngModelChange",function(e){return t.assignees=e}),Xo(5,"mat-select-trigger"),$o(6,HH,2,2,"mat-option",3),Jo(),$o(7,UH,2,0,"p",4),$o(8,BH,2,1,"mat-list",5),Jo()),2&e&&(fs(3),Zo("ngIf",t.permissions.isIssueLabelsEditable()&&t.isEditable&&!t.issue.duplicateOf),fs(1),Ea("display",t.isInEditMode?"block":"none"),Zo("ngModel",t.assignees),fs(2),Zo("ngForOf",t.teamMembers),fs(1),Zo("ngIf",0===t.issue.assignees.length),fs(1),Zo("ngIf",t.issue.assignees.length>0))},directives:[gd,PA,Jw,Lk,IA,md,oD,cL,mM,$O,ZO],styles:[".no-arrow .mat-select-arrow{visibility:hidden}mat-list-item div.mat-list-item-content{padding-left:0}\n"],encapsulation:2}),e})();function $H(e,t){if(1&e&&(Ko(0,"div",9),Xo(1,"div",12),Jo()),2&e){const e=pa();fs(1),Zo("innerHTML",e.updatedHtml,Gr)}}function WH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Type "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.type))),fs(1),qa(" ",e.data.type||"-"," ")}}function GH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Severity "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.severity))),fs(1),qa(" ",e.data.severity||"-"," ")}}function ZH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"span",13),Fa(3," Response "),Jo(),Ko(4,"p",14),Fa(5),Jo(),Jo()),2&e){const e=pa();fs(4),Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel(e.data.response))),fs(1),qa(" ",e.data.response||"-"," ")}}function QH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Xo(2,"app-assignee-component",15),Jo()),2&e){const e=pa();fs(2),Zo("issue",e.data)("team",e.data.teamAssigned)("isEditable",!1)}}function KH(e,t){if(1&e&&(Ko(0,"div"),Xo(1,"mat-divider"),Ko(2,"div"),Ko(3,"span",13),Fa(4,"A Duplicate Of:"),Jo(),Ko(5,"p",16),Fa(6),_u(7,"async"),Jo(),Jo(),Jo()),2&e){const e=pa();fs(6),qa(" ","#"+e.data.duplicateOf+": "+yu(7,1,e.issueService.getIssue(e.data.duplicateOf)).title," ")}}let JH=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isOnPreview=!1,this.isReady=!1,this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(rN(nN(t.teamResponse))),this.isReady=!0}close(){this.dialogRef.close()}handleTabChange(e){this.isOnPreview=1===e.index}}return e.\u0275fac=function(t){return new(t||e)(Go(RL),Go(YL),Go(uh),Go(bj),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-conflict-dialog"]],decls:21,vars:8,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"column","left"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Updated Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview"],[1,"tab-content"],[1,"column","right"],[4,"ngIf"],[3,"innerHTML"],[1,"mat-title"],[3,"ngStyle"],[3,"issue","team","isEditable"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"h1",1),Fa(2),Jo(),Ko(3,"button",2),la("click",function(){return t.close()}),Ko(4,"mat-icon"),Fa(5,"close"),Jo(),Jo(),Jo(),Ko(6,"div",3),Ko(7,"div",4),Ko(8,"mat-tab-group",5),la("selectedTabChange",function(e){return t.handleTabChange(e)}),Ko(9,"mat-tab",6),$o(10,$H,2,1,"div",7),Jo(),Ko(11,"mat-tab",8),Ko(12,"div",9),Ko(13,"markdown"),Fa(14),Jo(),Jo(),Jo(),Jo(),Jo(),Ko(15,"div",10),$o(16,WH,6,2,"div",11),$o(17,GH,6,2,"div",11),$o(18,ZH,6,2,"div",11),$o(19,QH,3,3,"div",11),$o(20,KH,8,3,"div",11),Jo(),Jo()),2&e&&(fs(2),ja("A new response was submitted by another user"),fs(8),Zo("ngIf",t.isReady),fs(4),ja(t.data.teamResponse),fs(2),Zo("ngIf",t.data.type),fs(1),Zo("ngIf",t.data.severity),fs(1),Zo("ngIf",t.data.response),fs(1),Zo("ngIf",t.data.assignees),fs(1),Zo("ngIf",t.data.duplicateOf))},directives:[BL,oD,cL,VL,dP,tP,gd,tw,ZL,Sd,VH],pipes:[Cd],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.column.left[_ngcontent-%COMP%]{min-width:60vh;width:100%}.column.right[_ngcontent-%COMP%]{max-width:15%;min-width:20vh;width:100%}.column[_ngcontent-%COMP%]{padding:10px}"]}),e})();function XH(e,t){if(1&e){const e=na();Ko(0,"button",9),la("click",function(){Yt(e);const t=pa().$implicit;return pa().openModalPopup(t)}),Ko(1,"mat-icon",10),Fa(2,"info"),Jo(),Jo()}}const eU=function(){return{background:"transparent"}},tU=function(e){return{color:e}};function iU(e,t){if(1&e&&(Ko(0,"div",5),Ko(1,"mat-option",6),Ko(2,"mat-icon",7),Fa(3,"stop"),Jo(),Ko(4,"span"),Fa(5),Jo(),Jo(),$o(6,XH,3,0,"button",8),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("value",e.labelValue)("ngStyle",hu(5,eU)),fs(1),Zo("ngStyle",pu(6,tU,"#"+e.labelColor)),fs(3),qa(" ",e.labelValue,""),fs(1),Zo("ngIf",i.hasLabelDefinition(e))}}function nU(e,t){if(1&e&&(Ko(0,"mat-error"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",e.labelService.getLabelTitle(e.attributeName)," required. ")}}let rU=(()=>{class e{constructor(e,t){this.labelService=e,this.dialogService=t}ngOnInit(){this.selectedColor=this.labelService.getColorOfLabel(this.attributeName,this.initialValue),this.labelList=this.labelService.getLabelList(this.attributeName),this.dropdownControl=this.dropdownForm.get(this.attributeName)}setSelectedLabelColor(e,t){this.selectedColor=this.labelService.getColorOfLabel(e,t)}openModalPopup(e){this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelService.getLabelDefinition(e.labelValue,e.labelCategory))}hasLabelDefinition(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}get dropdownTextColor(){return this.labelService.isDarkColor(this.selectedColor)?"white-text":"black-text"}}return e.\u0275fac=function(t){return new(t||e)(Go(bj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-label-dropdown"]],inputs:{attributeName:"attributeName",initialValue:"initialValue",dropdownForm:"dropdownForm"},decls:7,vars:8,consts:[[3,"formGroup"],[2,"width","100%"],["required","","disableOptionCentering","",3,"ngClass","formControlName","placeholder","ngStyle","selectionChange"],["mat-menu-item","","class","labelLine",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",1,"labelLine"],[3,"value","ngStyle"],[3,"ngStyle"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(Ko(0,"form",0),Ko(1,"mat-form-field",1),Ko(2,"mat-select",2),la("selectionChange",function(e){return t.setSelectedLabelColor(t.attributeName,e.value)}),Ko(3,"mat-select-trigger"),Fa(4),Jo(),$o(5,iU,7,8,"div",3),Jo(),$o(6,nU,2,1,"mat-error",4),Jo(),Jo()),2&e&&(Zo("formGroup",t.dropdownForm),fs(2),_a("formControlName",t.attributeName),_a("placeholder",t.labelService.getLabelTitle(t.attributeName)),Zo("ngClass",t.dropdownTextColor)("ngStyle",t.labelService.setLabelStyle(t.selectedColor,"inline-block")),fs(2),qa(" ",t.dropdownControl.value," "),fs(1),Zo("ngForOf",t.labelList),fs(1),Zo("ngIf",t.dropdownControl.errors&&t.dropdownControl.errors.required&&t.dropdownControl.touched))},directives:[Ok,Xw,Fk,NC,PA,Hk,hd,Jw,qk,Sd,IA,md,gd,sA,mM,cL,xC],styles:[".white-text .mat-select-value-text{color:#fff!important} .black-text .mat-select-value-text{color:#000!important}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 20%}"]}),e})();function sU(e,t){1&e&&(Ko(0,"mat-icon",5),Fa(1,"cancel"),Jo())}const oU=function(e){return[e]};function aU(e,t){if(1&e){const e=na();Ko(0,"mat-chip",2),la("removed",function(){const t=Yt(e).$implicit;return pa().removeDuplicateStatus(t)}),Ko(1,"a",3),Fa(2),Jo(),$o(3,sU,2,0,"mat-icon",4),Jo()}if(2&e){const e=t.$implicit,i=pa();Zo("matTooltip",e.title),fs(1),Zo("routerLink",pu(4,oU,"../"+e.id)),fs(1),qa(" #",e.id," "),fs(1),Zo("ngIf",i.permissions.isTeamResponseEditable()||i.permissions.isTutorResponseEditable())}}let lU=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.permissions=n}ngOnInit(){this.duplicatedIssues=this.issueService.getDuplicateIssuesFor(this.issue)}removeDuplicateStatus(e){const t=this.getUpdatedIssueWithRemovedDuplicate(e);this.issueService.updateIssueWithComment(t,t.issueComment).subscribe(e=>this.issueService.updateLocalStore(e),e=>this.errorHandlingService.handleError(e))}getUpdatedIssueWithRemovedDuplicate(e){const t=e.clone(this.phaseService.currentPhase);return t.duplicated=!1,t.duplicateOf=null,t.issueComment.description=t.createGithubTeamResponse(),t}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-duplicated-issues-component"]],inputs:{issue:"issue"},decls:6,vars:3,consts:[[1,"mat-title"],["style","cursor: pointer","matTooltipPosition","above",3,"matTooltip","removed",4,"ngFor","ngForOf"],["matTooltipPosition","above",2,"cursor","pointer",3,"matTooltip","removed"],[1,"no-underline","link-grey-dark",3,"routerLink"],["matChipRemove","",4,"ngIf"],["matChipRemove",""]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"span",0),Fa(2," Duplicated Issues "),Jo(),Ko(3,"mat-chip-list"),$o(4,aU,4,6,"mat-chip",1),_u(5,"async"),Jo(),Jo()),2&e&&(fs(4),Zo("ngForOf",yu(5,1,t.duplicatedIssues)))},directives:[VD,md,qD,BA,yb,gd,cL,ND],pipes:[Cd],styles:[""],encapsulation:2}),e})();function uU(e,t){if(1&e&&(Ko(0,"span",30),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa(2);fs(1),qa(" (",t.getDisabledDupOptionErrorText(e),") ")}}function cU(e,t){if(1&e&&(Ko(0,"mat-option",26),Ko(1,"span",27),Fa(2),Jo(),Ko(3,"span",28),Fa(4),Jo(),$o(5,uU,2,1,"span",29),Jo()),2&e){const e=t.$implicit,i=pa(2);Zo("disabled",i.dupIssueOptionIsDisabled(e))("value",e.id),fs(2),qa(" #",e.id,": "),fs(2),ja(e.title),fs(1),Zo("ngIf",i.dupIssueOptionIsDisabled(e))}}function dU(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Need to specify the duplicated issue. "),Jo())}function hU(e,t){if(1&e){const e=na();Ko(0,"div",6),Ko(1,"div"),Ko(2,"mat-checkbox",21),la("change",function(t){return Yt(e),pa().handleChangeOfDuplicateCheckbox(t)}),Fa(3," A Duplicate Of: "),Jo(),Ko(4,"mat-form-field",22),Ko(5,"mat-select",23),Ko(6,"mat-option"),Xo(7,"ngx-mat-select-search",24),Jo(),$o(8,cU,6,5,"mat-option",25),_u(9,"async"),Jo(),$o(10,dU,2,0,"mat-error",13),Jo(),Jo(),Jo()}if(2&e){const e=pa();fs(4),Ea("visibility",e.duplicated.value?"visible":"hidden"),fs(3),Zo("formControl",e.searchFilterCtrl),fs(1),Zo("ngForOf",yu(9,5,e.filteredDuplicateIssueList)),fs(2),Zo("ngIf",e.duplicateOf.errors&&e.duplicateOf.errors.required&&e.duplicateOf.touched)}}function pU(e,t){if(1&e&&(Ko(0,"div",6),Xo(1,"app-duplicated-issues-component",31),Jo()),2&e){const e=pa();fs(1),Zo("issue",e.issue)}}function mU(e,t){if(1&e&&(Ko(0,"mat-option",32),Fa(1),Jo()),2&e){const e=t.$implicit;Zo("value",e),fs(1),ja(e)}}function fU(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Assignee(s) required. "),Jo())}function gU(e,t){if(1&e){const e=na();Ko(0,"button",33),la("click",function(){return Yt(e),pa().viewUpdatedResponse()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa().isFormPending)}function _U(e,t){if(1&e&&(Ko(0,"button",34),Fa(1),Jo()),2&e){const e=pa();Zo("disabled",e.newTeamResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function yU(e,t){if(1&e&&(Ko(0,"button",35),Fa(1),Jo()),2&e){const e=pa();Zo("disabled",e.newTeamResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function bU(e,t){if(1&e){const e=na();Ko(0,"button",36),la("click",function(){return Yt(e),pa().refresh()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa().isFormPending)}let vU=(()=>{class e{constructor(e,t,i,n,r,s){this.issueService=e,this.formBuilder=t,this.labelService=i,this.errorHandlingService=n,this.dialog=r,this.phaseService=s,this.searchFilterCtrl=new kk,this.filteredDuplicateIssueList=new TS(1),this.isFormPending=!1,this.issueUpdated=new vu,this._onDestroy=new x}ngOnInit(){this.teamMembers=this.issue.teamAssigned.teamMembers.map(e=>e.loginId),this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Og()).subscribe(e=>this.filteredDuplicateIssueList.next(e)),this.searchFilterCtrl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>this.filterIssues()),this.newTeamResponseForm=this.formBuilder.group({description:[""],severity:[this.issue.severity,Cw.required],type:[this.issue.type,Cw.required],response:[this.issue.response,Cw.required],assignees:[this.issue.assignees.map(e=>e.toLowerCase())],duplicated:[!1],duplicateOf:[""]}),this.duplicated.valueChanges.subscribe(e=>{e?(this.duplicateOf.setValidators(Cw.required),this.responseTag.setValidators(null)):(this.duplicateOf.setValidators(null),this.responseTag.setValidators(Cw.required)),this.duplicateOf.updateValueAndValidity(),this.responseTag.updateValueAndValidity()}),this.submitButtonText="Submit"}filterIssues(){this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(e=>this.filteredDuplicateIssueList.next(e))}changeFilter(e,t){return e.pipe(Og(),D(e=>PH(t,[RH.ID,RH.TITLE],this.issueService,e)))}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}submitNewTeamResponse(e){if(this.newTeamResponseForm.invalid)return;this.isFormPending=!0;const t=this.getUpdatedIssue();this.isSafeToSubmit().pipe(U(e=>{const i=t.createGithubTeamResponse();return e?this.issueService.createTeamResponse(t):"Overwrite"===this.submitButtonText?this.issueService.updateIssueWithComment(t,{id:this.issueService.issues[this.issue.id].issueComment.id,description:i}):(this.conflict=new uN(" ",this.issueService.issues[this.issue.id].teamResponse),this.submitButtonText="Overwrite",this.viewUpdatedResponse(),Qb("A response has been submitted. Please verify the changes and try again."))}),Yg(()=>this.isFormPending=!1)).subscribe(t=>{this.issueUpdated.emit(t),e.resetForm()},e=>{this.errorHandlingService.handleError(e)})}isSafeToSubmit(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>!e.teamResponse))}getUpdatedIssue(){const e=this.issue.clone(this.phaseService.currentPhase);if(e.duplicated=this.duplicated.value,e.duplicateOf=this.duplicateOf.value,e.duplicated){const t=this.issueService.issues[e.duplicateOf];e.severity=t.severity,e.type=t.type,e.assignees=t.assignees,e.response=t.response}else e.severity=this.severity.value,e.type=this.type.value,e.assignees=this.assignees.value,e.response=this.responseTag.value;return e.status=rj.Done,e.teamResponse=tj.updateTeamResponse(this.description.value),e}dupIssueOptionIsDisabled(e){return e.duplicated||!!e.duplicateOf}getDisabledDupOptionErrorText(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}handleChangeOfDuplicateCheckbox(e){e.checked?(this.responseTag.setValue(""),this.assignees.setValue([]),this.responseTag.markAsUntouched()):(this.duplicateOf.setValue(""),this.duplicateOf.markAsUntouched())}viewUpdatedResponse(){this.dialog.open(JH,{data:this.issueService.issues[this.issue.id],autoFocus:!1})}refresh(){this.issueUpdated.emit(this.issueService.issues[this.issue.id])}getDupIssueList(){return this.issueService.issues$.pipe(D(e=>e.filter(e=>this.issue.id!==e.id)))}get description(){return this.newTeamResponseForm.get("description")}get severity(){return this.newTeamResponseForm.get("severity")}get type(){return this.newTeamResponseForm.get("type")}get assignees(){return this.newTeamResponseForm.get("assignees")}get responseTag(){return this.newTeamResponseForm.get("response")}get duplicated(){return this.newTeamResponseForm.get("duplicated")}get duplicateOf(){return this.newTeamResponseForm.get("duplicateOf")}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(bj),Go(rY),Go(HL),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-new-team-response"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:29,vars:26,consts:[[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["class","container",4,"ngIf","ngIfElse"],["displayDuplicates",""],[1,"container"],[1,"left-half"],["attributeName","severity",3,"initialValue","dropdownForm"],[1,"right-half"],["attributeName","type",3,"initialValue","dropdownForm"],["placeholder","Assignees","formControlName","assignees","multiple",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["attributeName","response",3,"initialValue","dropdownForm"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["type","submit","class","editor-action","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",3,"disabled","click",4,"ngIf"],["formControlName","duplicated",2,"display","inline-block","width","20%",3,"change"],[2,"display","inline-block","width","50%"],["formControlName","duplicateOf","placeholder","Duplicate of"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"disabled","value",4,"ngFor","ngForOf"],[3,"disabled","value"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","color: #f44336",4,"ngIf"],[1,"mat-caption",2,"color","#f44336"],[3,"issue"],[3,"value"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",1,"editor-action",3,"disabled","click"]],template:function(e,t){if(1&e){const e=na();Ko(0,"form",0,1),la("ngSubmit",function(){Yt(e);const i=Wo(1);return t.submitNewTeamResponse(i)}),Ko(2,"div",2),Ko(3,"div",3),Ko(4,"span"),Fa(5," Post your team's response here. "),Jo(),Jo(),Ko(6,"div"),$o(7,hU,11,7,"div",4),_u(8,"async"),$o(9,pU,2,1,"ng-template",null,5,qu),Ko(11,"div",6),Ko(12,"div",7),Xo(13,"app-label-dropdown",8),Jo(),Ko(14,"div",9),Xo(15,"app-label-dropdown",10),Jo(),Jo(),Ko(16,"div",6),Ko(17,"mat-form-field",7),Ko(18,"mat-select",11),$o(19,mU,2,2,"mat-option",12),Jo(),$o(20,fU,2,0,"mat-error",13),Jo(),Ko(21,"div",9),Xo(22,"app-label-dropdown",14),Jo(),Jo(),Ko(23,"app-comment-editor",15),la("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),Jo(),Ko(24,"div",16),$o(25,gU,2,1,"button",17),$o(26,_U,2,2,"button",18),$o(27,yU,2,2,"button",19),$o(28,bU,2,1,"button",20),Jo(),Jo(),Jo(),Jo()}if(2&e){const e=Wo(10);Zo("formGroup",t.newTeamResponseForm),fs(7),Zo("ngIf",0===yu(8,24,t.issueService.getDuplicateIssuesFor(t.issue)).length)("ngIfElse",e),fs(4),Ea("display",t.duplicated.value?"none":"grid"),fs(2),Zo("initialValue",t.issue.severity)("dropdownForm",t.newTeamResponseForm),fs(2),Zo("initialValue",t.issue.type)("dropdownForm",t.newTeamResponseForm),fs(1),Ea("display",t.duplicated.value?"none":"grid"),fs(3),Zo("ngForOf",t.teamMembers),fs(1),Zo("ngIf",t.assignees.errors&&t.assignees.errors.required&&t.assignees.touched),fs(2),Zo("initialValue",t.issue.response)("dropdownForm",t.newTeamResponseForm),fs(1),Zo("id","description")("commentField",t.newTeamResponseForm.get("description"))("commentForm",t.newTeamResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),fs(2),Zo("ngIf",t.conflict),fs(1),Zo("ngIf",t.conflict),fs(1),Zo("ngIf",!t.conflict),fs(1),Zo("ngIf",t.conflict)}},directives:[Ok,Xw,Fk,gd,rU,NC,PA,Jw,qk,md,yH,LD,mM,uq,Pk,xC,lU,oD,BA],pipes:[Cd],styles:[".left-half[_ngcontent-%COMP%]{grid-column:1;padding-right:5px}.right-half[_ngcontent-%COMP%]{grid-column:2;padding-left:5px}.container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}"]}),e})(),wU=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-parse-error"]],inputs:{phase:"phase"},decls:7,vars:2,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),Ko(2,"span"),Ko(3,"strong"),Fa(4),Jo(),Jo(),Jo(),Ko(5,"div",2),Fa(6),Jo(),Jo()),2&e&&(fs(4),qa("Error in parsing ",t.phase,""),fs(2),qa("No valid ",t.phase," was found. Please contact the teaching team for assistance."))},styles:[".timeline-header[_ngcontent-%COMP%]{background-color:#f7d2d2;border-bottom:1px solid #ebc0c0;border-top-left-radius:3px;border-top-right-radius:3px;color:#586069;height:35px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between}.timeline-comment[_ngcontent-%COMP%]{overflow:auto;border:1px solid #ebc0c0;background-color:#fff;border-radius:3px;margin-bottom:30px;white-space:pre-line}.comment[_ngcontent-%COMP%]{padding:15px}"]}),e})();function kU(e,t){1&e&&(Ko(0,"mat-chip",19),Fa(1," No Changes "),Jo())}function SU(e,t){if(1&e&&(Ko(0,"div",20),Ko(1,"mat-checkbox",21),Fa(2," I disagree "),Jo(),Jo()),2&e){const e=pa().index,t=pa();fs(1),Zo("disabled",!0)("checked",t.data.updatedResponses[e].isDisagree())}}function TU(e,t){1&e&&(Ko(0,"div",22),Ko(1,"i",23),Fa(2,"add_box"),Jo(),Ko(3,"ins",24),Fa(4," I disagree "),Jo(),Jo())}function EU(e,t){1&e&&(Ko(0,"div",22),Ko(1,"i",25),Fa(2,"indeterminate_check_box"),Jo(),Ko(3,"del",26),Fa(4,"I disagree"),Jo(),Jo())}function xU(e,t){if(1&e&&Xo(0,"div",28),2&e){const e=pa(2).index;Zo("innerHTML",pa().diffHtmls[e],Gr)}}function MU(e,t){if(1&e&&Xo(0,"div",28),2&e){const e=pa(2).index;Zo("innerHTML",pa().updatedHtmls[e],Gr)}}function CU(e,t){if(1&e&&(Ko(0,"div",18),$o(1,xU,1,1,"div",27),$o(2,MU,1,1,"div",27),Jo()),2&e){const e=pa(2);fs(1),Zo("ngIf",e.showDiff),fs(1),Zo("ngIf",!e.showDiff)}}function DU(e,t){if(1&e&&(Ko(0,"mat-expansion-panel",7),Ko(1,"mat-expansion-panel-header"),Ko(2,"mat-panel-title",8),Ko(3,"div",9),Fa(4,"?"),Jo(),Xo(5,"markdown",10),Jo(),Ko(6,"mat-panel-description"),Ko(7,"mat-chip-list"),$o(8,kU,2,0,"mat-chip",11),Jo(),Jo(),Jo(),Xo(9,"br"),Xo(10,"markdown",10),Xo(11,"br"),$o(12,SU,3,2,"div",12),$o(13,TU,5,0,"div",13),$o(14,EU,5,0,"div",13),Ko(15,"mat-tab-group",14),Ko(16,"mat-tab",15),$o(17,CU,3,2,"div",16),Jo(),Ko(18,"mat-tab",17),Ko(19,"div",18),Ko(20,"markdown"),Fa(21),Jo(),Jo(),Jo(),Jo(),Jo()),2&e){const e=t.$implicit,i=t.index,n=pa();Zo("expanded",n.panelOpenStates[i]),fs(5),Zo("data",n.data.updatedResponses[i].getTitleInMarkDown()),fs(3),Zo("ngIf",0===n.data.outdatedResponses[i].compareTo(n.data.updatedResponses[i])),fs(2),Zo("data",n.data.updatedResponses[i].description),fs(2),Zo("ngIf",n.data.updatedResponses[i].isDisagree()===n.data.outdatedResponses[i].isDisagree()||!n.showDiff),fs(1),Zo("ngIf",!n.data.outdatedResponses[i].isDisagree()&&n.data.updatedResponses[i].isDisagree()&&n.showDiff),fs(1),Zo("ngIf",n.data.outdatedResponses[i].isDisagree()&&!n.data.updatedResponses[i].isDisagree()&&n.showDiff),fs(3),Zo("ngIf",n.isReady),fs(4),ja(e.updatedContent)}}let LU=(()=>{class e{constructor(e,t,i,n,r){this.dialogRef=e,this.data=t,this.sanitizer=i,this.labelService=n,this.issueService=r,this.isReady=!1,this.showDiff=!0,this.conflicts=[],this.diffHtmls=[],this.updatedHtmls=[],this.panelOpenStates=[];for(let s=0;s{class e{constructor(e){this.ngControl=e}set disableControl(e){var t,i;e?null===(t=this.ngControl.control)||void 0===t||t.disable():null===(i=this.ngControl.control)||void 0===i||i.enable()}}return e.\u0275fac=function(t){return new(t||e)(Go(Qw))},e.\u0275dir=Ke({type:e,selectors:[["","disableControl",""]],inputs:{disableControl:"disableControl"}}),e})();function AU(e,t){1&e&&(Ko(0,"span"),Fa(1," Please verify the following item(s). "),Jo())}function IU(e,t){1&e&&(Ko(0,"span"),Ko(1,"strong"),Fa(2,"Tester"),Jo(),Fa(3," responded. "),Jo())}function RU(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function PU(e,t){1&e&&Xo(0,"markdown",12),2&e&&Zo("data",pa(2).$implicit.reasonForDisagreement)}function YU(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",18),la("isFormPendingChange",function(t){return Yt(e),pa(3).isFormPending=t})("submitButtonTextChange",function(t){return Yt(e),pa(3).submitButtonText=t}),Jo(),Jo()}if(2&e){const e=pa(2).index,t=pa();fs(1),Zo("commentField",t.testerResponseForm.get(t.getTesterResponseFormId(e)))("id",t.getTesterResponseFormId(e))("commentForm",t.testerResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText)}}function FU(e,t){if(1&e&&(Ko(0,"div"),Ko(1,"div"),Ko(2,"p",16),Fa(3,"Reason for Disagreement:"),Jo(),$o(4,PU,1,1,"markdown",17),Jo(),$o(5,YU,2,5,"div",4),Jo()),2&e){const e=pa(2);fs(4),Zo("ngIf",!e.isEditing),fs(1),Zo("ngIf",e.isEditing)}}function jU(e,t){if(1&e){const e=na();Ko(0,"div",9),Ko(1,"div",10),Ko(2,"div",11),Fa(3,"?"),Jo(),Xo(4,"markdown",12),Jo(),Xo(5,"br"),Xo(6,"markdown",12),Xo(7,"br"),Ko(8,"div"),Ko(9,"mat-radio-group",13),la("change",function(t){const i=Yt(e).index;return pa().handleChangeOfDisagreeRadioButton(t,i)}),Ko(10,"mat-radio-button",14),Fa(11," I Agree "),Jo(),Ko(12,"mat-radio-button",14),Fa(13," I Disagree "),Jo(),Jo(),Jo(),$o(14,FU,6,2,"div",4),Xo(15,"br"),Xo(16,"markdown",15),Xo(17,"br"),Jo()}if(2&e){const e=t.$implicit,i=t.index,n=pa();fs(4),Zo("data",e.getTitleInMarkDown()),fs(2),Zo("data",e.description),fs(3),Zo("disableControl",!n.isEditing)("id",n.getDisagreeRadioFormId(i))("formControlName",n.getDisagreeRadioFormId(i)),fs(1),Zo("value",!1),fs(2),Zo("value",!0),fs(2),Zo("ngIf",n.testerResponseForm.get(n.getDisagreeRadioFormId(i)).value)}}function qU(e,t){if(1&e){const e=na();Ko(0,"button",24),la("click",function(){return Yt(e),pa(2).viewChanges()}),Fa(1," View Updated Response "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function NU(e,t){if(1&e&&(Ko(0,"button",25),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.testerResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function HU(e,t){if(1&e&&(Ko(0,"button",26),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.testerResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function UU(e,t){if(1&e){const e=na();Ko(0,"button",27),la("click",function(){return Yt(e),pa(2).openCancelDialogIfModified()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function zU(e,t){if(1&e&&(Ko(0,"div",19),$o(1,qU,2,1,"button",20),$o(2,NU,2,2,"button",21),$o(3,HU,2,2,"button",22),$o(4,UU,2,1,"button",23),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.isNewResponse())}}let BU=(()=>{class e{constructor(e,t,i,n,r,s,o){this.formBuilder=e,this.issueService=t,this.userService=i,this.errorHandlingService=n,this.dialog=r,this.phaseService=s,this.dialogService=o,this.isFormPending=!1,this.issueUpdated=new vu,this.updateEditState=new vu,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing",this.responseRadioIdentifier="response-radio",this.responseTextIdentifier="tester-response"}ngOnInit(){this.resetForm(),this.submitButtonText=this.isNewResponse()?"Submit":"Save",setTimeout(()=>{this.updateEditState.emit(this.isNewResponse())})}ngOnChanges(e){!this.isEditing&&e.issue&&e.issue.previousValue!==e.issue.currentValue&&this.resetForm()}submitTesterResponseForm(){this.testerResponseForm.invalid||(this.isFormPending=!0,this.isSafeToSubmit().pipe(U(e=>e||this.isUpdatingDeletedResponse()||"Overwrite"===this.submitButtonText?this.issueService.updateTesterResponse(this.issue,Object.assign(Object.assign({},this.issue.issueComment),{description:this.getTesterResponseFromForm()})):(this.submitButtonText="Overwrite",this.viewChanges(),Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isFormPending=!1)).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()},e=>{this.errorHandlingService.handleError(e)}))}isSafeToSubmit(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>!!e.testerResponses&&e.testerResponses.reduce((e,t,i)=>e&&0===t.compareTo(this.issue.testerResponses[i]),!0)))}isUpdatingDeletedResponse(){return this.issue.testerResponses&&!this.issueService.issues[this.issue.id].testerResponses}viewChanges(){this.dialog.open(LU,{data:{outdatedResponses:this.issue.testerResponses,updatedResponses:this.issueService.issues[this.issue.id].testerResponses},autoFocus:!1})}changeToEditMode(){this.updateEditState.emit(!0)}openCancelDialogIfModified(){const e=this.issue.testerResponses.filter((e,t)=>this.isResponseDisagreed(t)).map((e,t)=>this.getTesterResponseText(t)!==(e.reasonForDisagreement||"")).reduce((e,t)=>e||t,!1),t=this.issue.testerResponses.map((e,t)=>this.isResponseDisagreed(t)!==e.isDisagree()).reduce((e,t)=>e||t,!1);this.dialogService.performActionIfModified(e||t,()=>this.openCancelDialog(),()=>this.cancelEditMode())}openCancelDialog(){this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(e=>{e&&this.cancelEditMode()})}cancelEditMode(){this.issueService.getIssue(this.issue.id).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()})}resetToDefault(){this.submitButtonText="Save",this.updateEditState.emit(!1),this.resetForm()}handleChangeOfDisagreeRadioButton(e,t){const i=this.testerResponseForm.get(this.getTesterResponseFormId(t));this.isResponseDisagreed(t)?i.enable():i.disable()}trackDisagreeList(e,t){return t[e]}isNewResponse(){return!this.issue.status&&this.userService.currentUser.role===pY.Student}createFormGroup(){const e={};for(let t=0;t{const i=this.isResponseDisagreed(t),n=i?this.getTesterResponseText(t)||e.reasonForDisagreement:e.INITIAL_RESPONSE;return e.setDisagree(i),e.setReasonForDisagreement(n),e}),e.createGithubTesterResponse()}getTesterResponseFormId(e){return`${this.responseTextIdentifier}-${e}`}getTesterResponseText(e){return this.testerResponseForm.get(this.getTesterResponseFormId(e)).value}getDisagreeRadioFormId(e){return`${this.responseRadioIdentifier}-${e}`}isResponseDisagreed(e){return this.testerResponseForm.get(this.getDisagreeRadioFormId(e)).value}get conflict(){return"Overwrite"===this.submitButtonText}}return e.\u0275fac=function(t){return new(t||e)(Go(Wk),Go(Tj),Go(fY),Go(rY),Go(HL),Go(Sj),Go($q))},e.\u0275cmp=Ve({type:e,selectors:[["app-tester-response"]],viewQuery:function(e,t){if(1&e&&Iu(yH,5),2&e){let e;Au(e=Pu())&&(t.commentEditor=e.first)}},inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},features:[ct],decls:12,vars:7,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],[1,"timeline-comment"],[1,"timeline-header"],[4,"ngIf"],["mat-button","","style","float: right",3,"click",4,"ngIf"],["class","container",4,"ngFor","ngForOf","ngForTrackBy"],["class","editor-actions",4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"container"],[2,"display","flex","align-items","center"],[1,"question-mark"],["disableInternalLink","",3,"data"],["aria-label","Select Agree or Disagree to Team's Response",2,"display","inline-block","width","20%",3,"disableControl","id","formControlName","change"],[3,"value"],["data","-------------------"],[2,"font-weight","500"],["disableInternalLink","",3,"data",4,"ngIf"],[3,"commentField","id","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn",3,"disabled","click",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-stroked-button","","color","primary",3,"disabled"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"h3",0),Fa(1,"Tester's Response"),Jo(),Ko(2,"form",1),la("ngSubmit",function(){return t.submitTesterResponseForm()}),Ko(3,"div",2),Ko(4,"div",3),$o(5,AU,2,0,"span",4),$o(6,IU,4,0,"span",4),$o(7,RU,2,0,"button",5),Jo(),Ko(8,"div"),$o(9,jU,18,8,"div",6),Xo(10,"mat-divider"),$o(11,zU,5,4,"div",7),Jo(),Jo(),Jo()),2&e&&(fs(2),Zo("formGroup",t.testerResponseForm),fs(3),Zo("ngIf",t.isNewResponse()),fs(1),Zo("ngIf",!t.isNewResponse()),fs(1),Zo("ngIf",!t.isEditing),fs(2),Zo("ngForOf",t.issue.testerResponses)("ngForTrackBy",t.trackDisagreeList),fs(2),Zo("ngIf",t.isEditing))},directives:[Ok,Xw,Fk,gd,md,ZL,oD,tw,gN,MI,OU,Jw,qk,OI,yH],styles:[".container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}"]}),e})(),VU=(()=>{class e{constructor(){}ngOnInit(){this.message=CY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-team-accepted"]],decls:8,vars:1,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(Ko(0,"div",0),Ko(1,"div",1),Ko(2,"span"),Ko(3,"strong"),Fa(4,"Team"),Jo(),Fa(5," responded"),Jo(),Jo(),Ko(6,"div",2),Fa(7),Jo(),Jo()),2&e&&(fs(7),ja(t.message))},styles:[""]}),e})();function $U(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){return Yt(e),pa().changeToEditMode()}),Fa(1,"Edit"),Jo()}}function WU(e,t){1&e&&Xo(0,"markdown",12),2&e&&Zo("data",pa().$implicit.tutorResponse)}function GU(e,t){if(1&e){const e=na();Ko(0,"div"),Ko(1,"app-comment-editor",18),la("isFormPendingChange",function(t){return Yt(e),pa(2).isFormPending=t})("submitButtonTextChange",function(t){return Yt(e),pa(2).submitButtonText=t}),Jo(),Jo()}if(2&e){const e=pa().index,t=pa();fs(1),Zo("commentField",t.tutorResponseForm.get(t.getTutorResponseFormId(e)))("commentForm",t.tutorResponseForm)("id",t.getTutorResponseFormId(e))("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText)}}function ZU(e,t){if(1&e&&(Ko(0,"div",9),Ko(1,"div",10),Ko(2,"div",11),Fa(3,"?"),Jo(),Xo(4,"markdown",12),Jo(),Xo(5,"br"),Xo(6,"markdown",12),Xo(7,"br"),Ko(8,"div"),Ko(9,"mat-checkbox",13),Fa(10," Done "),Jo(),Jo(),Xo(11,"br"),Ko(12,"div"),Xo(13,"markdown",14),$o(14,WU,1,1,"markdown",15),Jo(),$o(15,GU,2,5,"div",16),Xo(16,"br"),Xo(17,"markdown",17),Xo(18,"br"),Jo()),2&e){const e=t.$implicit,i=t.index,n=pa();fs(4),Zo("data",n.getItemTitleText(e.title)),fs(2),Zo("data",e.description),fs(3),Zo("id",n.getTodoFormId(i))("formControlName",n.getTodoFormId(i))("disableControl",!n.isEditing),fs(5),Zo("ngIf",!n.isEditing),fs(1),Zo("ngIf",n.isEditing)}}function QU(e,t){if(1&e){const e=na();Ko(0,"button",24),la("click",function(){return Yt(e),pa(2).viewInGithub()}),Fa(1," View Updated Response On Github "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function KU(e,t){if(1&e&&(Ko(0,"button",25),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.tutorResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function JU(e,t){if(1&e&&(Ko(0,"button",26),Fa(1),Jo()),2&e){const e=pa(2);Zo("disabled",e.tutorResponseForm.invalid||e.isFormPending),fs(1),qa(" ",e.submitButtonText," ")}}function XU(e,t){if(1&e){const e=na();Ko(0,"button",27),la("click",function(){return Yt(e),pa(2).cancelEditMode()}),Fa(1," Cancel "),Jo()}2&e&&Zo("disabled",pa(2).isFormPending)}function ez(e,t){if(1&e&&(Ko(0,"div",19),$o(1,QU,2,1,"button",20),$o(2,KU,2,2,"button",21),$o(3,JU,2,2,"button",22),$o(4,XU,2,1,"button",23),Jo()),2&e){const e=pa();fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.conflict),fs(1),Zo("ngIf",e.conflict),fs(1),Zo("ngIf",!e.isNewResponse())}}let tz=(()=>{class e{constructor(e,t,i,n,r,s){this.formBuilder=e,this.issueService=t,this.userService=i,this.errorHandlingService=n,this.githubService=r,this.phaseService=s,this.isFormPending=!1,this.issueUpdated=new vu,this.updateEditState=new vu}ngOnInit(){this.resetForm(),this.submitButtonText=this.isNewResponse()?"Submit":"Save",setTimeout(()=>{this.updateEditState.emit(this.isNewResponse())})}ngOnChanges(e){!this.isEditing&&e.issue&&e.issue.previousValue!==e.issue.currentValue&&this.resetForm()}submitTutorResponseForm(e){this.tutorResponseForm.invalid||(this.isFormPending=!0,this.issue.pending=""+this.getNumOfPending(),this.isSafeToSubmitTutorResponse().pipe(U(e=>e||this.isUpdatingDeletedResponse()?this.issue.issueComment&&!this.isUpdatingDeletedResponse()?this.updateTutorResponse():this.createTutorResponse():(this.submitButtonText="Overwrite",Qb("The content you are editing has changed. Please verify the changes and try again."))),Yg(()=>this.isFormPending=!1)).subscribe(e=>{this.issueUpdated.emit(e),this.resetToDefault()},e=>{this.errorHandlingService.handleError(e)}))}updateTutorResponse(){return this.issueService.updateTutorResponse(this.issue,Object.assign(Object.assign({},this.issue.issueComment),{description:this.getTutorResponseFromForm()}))}createTutorResponse(){const e=this.getTutorResponseFromForm();return this.issueService.createTutorResponse(this.issue,e)}isSafeToSubmitTutorResponse(){return this.issueService.getLatestIssue(this.issue.id).pipe(D(e=>{if(e.issueComment&&!!e.issueComment==!!this.issue.issueComment){for(let t=0;t{this.issueUpdated.emit(e),this.resetToDefault()})}trackDisputeList(e,t){return t[e]}isNewResponse(){return!this.issue.issueComment}resetForm(){this.tutorResponseForm=this.formBuilder.group(this.createFormGroup())}getItemTitleText(e){return"## "+e}getNumOfPending(){let e=this.issue.issueDisputes.length;for(const t of this.issue.issueDisputes)t.isDone()&&e--;return e}createFormGroup(){const e={};for(let t=0;t{class e{constructor(e,t,i,n,r,s,o){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.labelService=n,this.permissions=r,this.dialogService=s,this.loadingService=o,this.issueUpdated=new vu}showSpinner(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}hideSpinner(){this.loadingService.hideLoader(),this.isSavePending=!1}ngOnInit(){this.labelValues=this.labelService.getLabelList(this.attributeName),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}ngOnChanges(){this.labelColor=this.labelService.getColorOfLabel(this.attributeName,this.issue[this.attributeName])}updateLabel(e){this.showSpinner();const t=this.issue.clone(this.phaseService.currentPhase);t[this.attributeName]=e,this.issueService.updateIssue(t).subscribe(e=>{this.issueUpdated.emit(e),this.labelColor=this.labelService.getColorOfLabel(this.attributeName,e[this.attributeName]),this.hideSpinner()},e=>{this.errorHandlingService.handleError(e),this.hideSpinner()}),this.issueService.getDuplicateIssuesFor(this.issue).pipe(Og()).subscribe(t=>{t.forEach(t=>{const i=t.clone(this.phaseService.currentPhase);i[this.attributeName]=e,this.issueService.updateIssue(i)})})}openDefinitionPage(e){this.labelDefinition=this.labelService.getLabelDefinition(e.labelValue,e.labelCategory),this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelDefinition)}hasLabelDefinition(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj),Go(bj),Go(vq),Go($q),Go(Uq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-label"]],viewQuery:function(e,t){if(1&e&&Iu(iz,5,Kl),2&e){let e;Au(e=Pu())&&(t.loadingSpinnerContainer=e.first)}},inputs:{issue:"issue",attributeName:"attributeName"},outputs:{issueUpdated:"issueUpdated"},features:[sl([Uq]),ct],decls:8,vars:5,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["labelList",""],["mat-menu-item","","class","labelLine",3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],["mat-icon-button","",2,"float","right",3,"matMenuTriggerFor"],["style","font-size: 20px; margin-bottom: 7px; color: #586069",4,"ngIf"],["loadingSpinnerContainer",""],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",1,"labelLine",3,"ngStyle"],[1,"labelInfo","option",3,"disabled","click"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(Ko(0,"span",0),Fa(1),Jo(),$o(2,rz,4,2,"button",1),Ko(3,"mat-menu",null,2),$o(5,lz,7,8,"div",3),Jo(),Ko(6,"p",4),Fa(7),Jo()),2&e&&(fs(1),qa(" ",t.labelService.getLabelTitle(t.attributeName)," "),fs(1),Zo("ngIf",t.permissions.isIssueLabelsEditable()&&!t.issue.duplicateOf),fs(3),Zo("ngForOf",t.labelValues),fs(1),Zo("ngStyle",t.labelService.setLabelStyle(t.labelColor)),fs(1),ja(t.issue[t.attributeName]||"-"))},directives:[gd,uA,md,Sd,oD,mA,cL,sA],styles:[".no-arrow[_ngcontent-%COMP%] .mat-select-arrow[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle}.option[_ngcontent-%COMP%]{background-color:Transparent;border:none;outline:none;margin-right:30px}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr}.labelInfo[_ngcontent-%COMP%]{font-size:1em;text-align:left}"]}),e})();function cz(e,t){if(1&e){const e=na();Ko(0,"button",7),la("click",function(){return Yt(e),pa().openSelection()}),Ko(1,"mat-icon",8),Fa(2," edit "),Jo(),Jo()}2&e&&Ea("visibility",pa().issue.duplicated?"inherit":"hidden")}function dz(e,t){if(1&e&&(Ko(0,"span",14),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();fs(1),qa(" (",t.getDisabledDupOptionErrorText(e),") ")}}const hz=function(e){return{width:e}};function pz(e,t){if(1&e&&(Ko(0,"mat-option",9),Ko(1,"div",10),Ko(2,"span",11),Fa(3),Jo(),Ko(4,"span",12),Fa(5),Jo(),Jo(),$o(6,dz,2,1,"span",13),Jo()),2&e){const e=t.$implicit,i=pa();Zo("matTooltip",e.title)("matTooltipDisabled",!i.isTooltipNecessary(e))("matTooltipPosition","left")("disabled",i.dupIssueOptionIsDisabled(e))("value",e.id),fs(1),Zo("ngStyle",pu(9,hz,i.dupIssueOptionIsDisabled(e)?"150px":"auto")),fs(2),qa(" #",e.id,": "),fs(2),ja(e.title),fs(1),Zo("ngIf",i.dupIssueOptionIsDisabled(e))}}function mz(e,t){if(1&e&&(Ko(0,"span",15),Fa(1),_u(2,"async"),Jo()),2&e){const e=pa();fs(1),qa(" ",e.issue.duplicateOf?"#"+e.issue.duplicateOf+": "+yu(2,1,e.issueService.getIssue(e.issue.duplicateOf)).title:"Not specified"," ")}}function fz(e,t){1&e&&(Ko(0,"span",15),Fa(1," - "),Jo())}let gz=(()=>{class e{constructor(e,t,i,n){this.issueService=e,this.permissions=t,this.errorHandlingService=i,this.phaseService=n,this.isEditing=!1,this.searchFilterCtrl=new kk,this.filteredDuplicateIssueList=new TS(1),this.issueUpdated=new vu,this._onDestroy=new x,this.MAX_TITLE_LENGTH_FOR_DUPLICATE_ISSUE=17,this.MAX_TITLE_LENGTH_FOR_NON_DUPLICATE_ISSUE=37}isTooltipNecessary(e){let t;return t=e.duplicated?this.MAX_TITLE_LENGTH_FOR_DUPLICATE_ISSUE:this.MAX_TITLE_LENGTH_FOR_NON_DUPLICATE_ISSUE,e.title.length>t}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}ngOnInit(){this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Og()).subscribe(e=>this.filteredDuplicateIssueList.next(e)),this.searchFilterCtrl.valueChanges.pipe(yS(this._onDestroy)).subscribe(e=>this.filterIssues())}filterIssues(){this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(e=>this.filteredDuplicateIssueList.next(e))}updateDuplicateStatus(e){const t=this.getUpdatedIssue(e);this.issueService.updateIssueWithComment(t,t.issueComment).subscribe(e=>this.issueUpdated.emit(e),e=>this.errorHandlingService.handleError(e))}dupIssueOptionIsDisabled(e){return e.duplicated||!!e.duplicateOf}getDisabledDupOptionErrorText(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}handleCheckboxChange(e){e.checked?this.openSelection():(this.isEditing=!1,this.duplicateOfSelection.close(),this.duplicateOfSelection.value=null,this.updateDuplicateStatus(null))}openSelection(){this.isEditing=!0,this.duplicateOfSelection.open()}handleSelectionOpenChange(e){e||(this.isEditing=!1,this.duplicatedCheckbox.checked=this.duplicateOfSelection.value)}getUpdatedIssue(e){const t=this.issue.clone(this.phaseService.currentPhase);if(t.duplicated=!!e,t.duplicateOf=e?e.value:null,e){const e=this.issueService.issues[t.duplicateOf];t.severity=e.severity,t.type=e.type,t.assignees=e.assignees,t.response=e.response}return t.issueComment.description=t.createGithubTeamResponse(),t}changeFilter(e,t){return e.pipe(Og(),D(e=>PH(t,[RH.ID,RH.TITLE],this.issueService,e)))}getDupIssueList(){return this.issueService.issues$.pipe(D(e=>e.filter(e=>this.issue.id!==e.id&&this.issue.teamAssigned.id===e.teamAssigned.id)))}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(vq),Go(rY),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-duplicate-of-component"]],viewQuery:function(e,t){if(1&e&&(Iu(PA,7),Iu(LD,7)),2&e){let e;Au(e=Pu())&&(t.duplicateOfSelection=e.first),Au(e=Pu())&&(t.duplicatedCheckbox=e.first)}},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:14,vars:12,consts:[["labelPosition","after",3,"disabled","checked","change"],[1,"mat-title"],["style","float: right","mat-icon-button","",3,"visibility","click",4,"ngIf"],["placeholder","-",1,"no-arrow",2,"width","100%",3,"value","selectionChange","openedChange"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value"],[1,"duplicate-dropdown-issuedetails",3,"ngStyle"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","display: inline-block; color: #f44336",4,"ngIf"],[1,"mat-caption",2,"display","inline-block","color","#f44336"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-checkbox",0),la("change",function(e){return t.handleCheckboxChange(e)}),Ko(2,"span",1),Fa(3,"A Duplicate Of:"),Jo(),Jo(),$o(4,cz,3,2,"button",2),Ko(5,"mat-select",3),la("selectionChange",function(e){return t.updateDuplicateStatus(e)})("openedChange",function(e){return t.handleSelectionOpenChange(e)}),Ko(6,"mat-option"),Xo(7,"ngx-mat-select-search",4),Jo(),Xo(8,"mat-select-trigger"),$o(9,pz,7,11,"mat-option",5),_u(10,"async"),Jo(),Ko(11,"div"),$o(12,mz,3,3,"span",6),$o(13,fz,2,0,"span",6),Jo(),Jo()),2&e&&(fs(1),Zo("disabled",!t.permissions.isTeamResponseEditable()&&!t.permissions.isTutorResponseEditable())("checked",t.issue.duplicated),fs(3),Zo("ngIf",t.permissions.isIssueLabelsEditable()),fs(1),Ea("display",t.isEditing?"block":"none"),Zo("value",t.issue.duplicateOf),fs(2),Zo("formControl",t.searchFilterCtrl),fs(2),Zo("ngForOf",yu(10,10,t.filteredDuplicateIssueList)),fs(3),Zo("ngIf",t.issue.duplicated),fs(1),Zo("ngIf",!t.issue.duplicated))},directives:[LD,gd,PA,mM,uq,Jw,Pk,IA,md,oD,cL,BA,Sd],pipes:[Cd],styles:[".mat-checkbox-disabled .mat-checkbox-label{color:#000}.duplicate-dropdown-issuedetails{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom!important}\n"],encapsulation:2}),e})(),_z=(()=>{class e{constructor(e,t,i){this.issueService=e,this.errorHandlingService=t,this.phaseService=i,this.issueUpdated=new vu}ngOnInit(){}handleChangeOfUnsureCheckbox(e){let t=!1;e.checked&&(t=!0);const i=this.issue.clone(this.phaseService.currentPhase);i.unsure=t,this.issueService.updateIssue(i).subscribe(e=>{this.issueUpdated.emit(e)},e=>{this.errorHandlingService.handleError(e)})}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(rY),Go(Sj))},e.\u0275cmp=Ve({type:e,selectors:[["app-unsure-checkbox"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:3,vars:1,consts:[["labelPosition","before",3,"checked","change"],[1,"mat-title"]],template:function(e,t){1&e&&(Ko(0,"mat-checkbox",0),la("change",function(e){return t.handleChangeOfUnsureCheckbox(e)}),Ko(1,"span",1),Fa(2," Unsure "),Jo(),Jo()),2&e&&Zo("checked",t.issue.unsure)},directives:[LD],styles:[".mat-checkbox-disabled[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{color:#000}"]}),e})(),yz=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,Wj,mq,_q,fq,pq,yq,DP,dq,hq,iw.forChild(),gq]]}),e})();!function(e,t,i){const n=e.\u0275cmp;n.directiveDefs=()=>t.map($e),n.pipeDefs=()=>i.map(We)}(Hq,[gd,gI,tN,ZL,xH,IH,vU,wU,BU,VU,tz,uz,VH,lU,gz,_z],[Cd]);let bz=(()=>{class e{constructor(e,t,i){this.location=e,this.router=t,this.dialogService=i,this.modalDialogMessages=["Do you wish to leave the page?","You have unsaved changes that will be discarded."],this.yesButtonDialogMessage="Yes, I wish to leave",this.noButtonDialogMessage="No, I don't wish to leave"}openDialog(){return this.dialogService.openUserConfirmationModal(this.modalDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed()}canDeactivate(e,t,i,n){if(e.canDeactivate&&!e.canDeactivate()&&"/"!==n.url){const e=this.router.createUrlTree([],t).toString();return this.location.go(e),this.openDialog()}return _h(!0)}}return e.\u0275fac=function(t){return new(t||e)(Tn(rd),Tn(fb),Tn($q))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vz=(()=>{class e{constructor(e){this.route=e,this.issueComponents=[Nq.TESTER_POST,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})();function wz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title required. "),Jo())}function kz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot contain only whitespaces. "),Jo())}function Sz(e,t){1&e&&(Ko(0,"mat-error"),Fa(1," Title cannot exceed 256 characters. "),Jo())}function Tz(e,t){if(1&e&&(Ko(0,"mat-hint"),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" ",256-(null==e.title.value?null:e.title.value.length)," characters remaining. ")}}let Ez=(()=>{class e{constructor(e,t,i,n,r){this.issueService=e,this.formBuilder=t,this.errorHandlingService=i,this.labelService=n,this.router=r,this.isFormPending=!1}ngOnInit(){this.newIssueForm=this.formBuilder.group({title:["",[Cw.required,Cw.maxLength(256),e=>e.value&&""===e.value.trim()?{whitespace:!0}:null]],description:[""],severity:["",Cw.required],type:["",Cw.required]}),this.submitButtonText="Submit"}submitNewIssue(e){this.newIssueForm.invalid||(this.isFormPending=!0,this.issueService.createIssue(this.title.value,tj.updateDescription(this.description.value),this.severity.value,this.type.value).pipe(Yg(()=>this.isFormPending=!1)).subscribe(t=>{this.issueService.updateLocalStore(t),this.router.navigateByUrl(`phaseBugReporting/issues/${t.id}`),e.resetForm()},e=>{this.errorHandlingService.handleError(e)}))}canDeactivate(){return!(this.isAttributeEditing(this.title)||this.isAttributeEditing(this.description)||this.isAttributeEditing(this.severity)||this.isAttributeEditing(this.type))}isAttributeEditing(e){return null!==e.value&&""!==e.value}get title(){return this.newIssueForm.get("title")}get description(){return this.newIssueForm.get("description")}get severity(){return this.newIssueForm.get("severity")}get type(){return this.newIssueForm.get("type")}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(Wk),Go(rY),Go(bj),Go(fb))},e.\u0275cmp=Ve({type:e,selectors:[["app-new-issue"]],decls:22,vars:14,consts:[[1,"mat-display-1","title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"form"],[1,"row"],[1,"column","left"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],[4,"ngIf"],[2,"margin","10px 0 10px 0"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],["type","submit","mat-stroked-button","","color","primary",1,"submit-new-bug-report",2,"float","right",3,"disabled"],[1,"column","right"],[1,"severity-dropdown"],["initialValue","","attributeName","severity",3,"dropdownForm"],[1,"bug-dropdown"],["initialValue","","attributeName","type",3,"dropdownForm"]],template:function(e,t){if(1&e){const e=na();Ko(0,"h1",0),Fa(1,"New Issue"),Jo(),Ko(2,"form",1,2),la("ngSubmit",function(){Yt(e);const i=Wo(3);return t.submitNewIssue(i)}),Ko(4,"div",3),Ko(5,"div",4),Ko(6,"div",5),Ko(7,"mat-form-field"),Xo(8,"input",6),$o(9,wz,2,0,"mat-error",7),$o(10,kz,2,0,"mat-error",7),$o(11,Sz,2,0,"mat-error",7),$o(12,Tz,2,1,"mat-hint",7),Jo(),Ko(13,"div",8),Ko(14,"app-comment-editor",9),la("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),Jo(),Jo(),Ko(15,"button",10),Fa(16),Jo(),Jo(),Ko(17,"div",11),Ko(18,"div",12),Xo(19,"app-label-dropdown",13),Jo(),Ko(20,"div",14),Xo(21,"app-label-dropdown",15),Jo(),Jo(),Jo(),Jo(),Jo()}2&e&&(fs(2),Zo("formGroup",t.newIssueForm),fs(7),Zo("ngIf",t.title.errors&&t.title.errors.required&&(t.title.touched||t.title.dirty)),fs(1),Zo("ngIf",t.title.errors&&t.title.errors.whitespace),fs(1),Zo("ngIf",t.title.errors&&t.title.errors.maxlength),fs(1),Zo("ngIf",(null==t.title.value?null:t.title.value.length)>=206),fs(2),Zo("id","description")("commentField",t.description)("commentForm",t.newIssueForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),fs(1),Zo("disabled",!t.newIssueForm.valid||t.isFormPending),fs(1),qa(" ",t.submitButtonText," "),fs(3),Zo("dropdownForm",t.newIssueForm),fs(2),Zo("dropdownForm",t.newIssueForm))},directives:[Ok,Xw,Fk,NC,kw,SL,Jw,qk,Hk,zk,gd,yH,oD,rU,xC,OC],styles:[".form[_ngcontent-%COMP%]{width:80%;margin:0 auto}mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:75%}.right[_ngcontent-%COMP%]{width:25%}"]}),e})(),xz=(()=>{class e{constructor(e,t){this.snackBarRef=e,this.data=t}}return e.\u0275fac=function(t){return new(t||e)(Go(XI),Go(QI))},e.\u0275cmp=Ve({type:e,selectors:[["app-undo-action"]],decls:4,vars:1,consts:[[2,"display","inline-block","max-width","300px"],["mat-button","","color","accent",2,"float","right","margin-top","8px",3,"click"]],template:function(e,t){1&e&&(Ko(0,"p",0),Fa(1),Jo(),Ko(2,"button",1),la("click",function(){return t.snackBarRef.dismissWithAction()}),Fa(3," Undo "),Jo()),2&e&&(fs(1),qa(" ",t.data.message," "))},directives:[oD],encapsulation:2}),e})();function Mz(e,t,i){return i.splice(e*t,t)}function Cz(e,t){return String(e||"").toUpperCase(){let e=Object.values(this.issueService.issues$.getValue()).reverse();return this.defaultFilter&&(e=e.filter(this.defaultFilter)),e=function(e,t){if(!e.active)return t;const i="asc"===e.direction?1:-1;return t.sort((t,n)=>{switch(e.active){case"type":return i*function(e,t){return Dz(nj[e],nj[t])}(t.type,n.type);case"severity":return i*function(e,t){return Dz(ij[e],ij[t])}(t.severity,n.severity);case"assignees":return i*Cz(t.assignees.join(", "),n.assignees.join(", "));case"teamAssigned":return i*Cz(t.teamAssigned.id,n.teamAssigned.id);case"Todo Remaining":return-i*Dz(t.numOfUnresolvedDisputes(),n.numOfUnresolvedDisputes());case"id":return i*Dz(t.id,n.id);default:return i*Cz(t[e.active],n[e.active])}})}(this.sort,e),e=this.getFilteredTeamData(e),e=PH(this.filter,this.displayedColumn,this.issueService,e),e=function(e,t){e.length=t.length;let i=Mz(e.pageIndex,e.pageSize,t);return 0===i.length&&(e.pageIndex-=1,i=Mz(e.pageIndex,e.pageSize,t)),i}(this.paginator,e),e})).subscribe(e=>{this.issuesSubject.next(e)})}get filter(){return this.filterChange.value}set filter(e){this.filterChange.next(e)}get teamFilter(){return this.teamFilterChange.value}set teamFilter(e){this.teamFilterChange.next(e),this.issueService.setIssueTeamFilter(this.teamFilterChange.value)}getFilteredTeamData(e){return e.filter(e=>!this.teamFilter||"All Teams"===this.teamFilter||e.teamAssigned.id===this.teamFilter)}}class Oz{constructor(){this.sortActiveId="",this.sortDirection="",this.pageSize=20,this.pageIndex=0}}let Az=(()=>{class e{constructor(){this._tableSettingsMap={}}getTableSettings(e){return this._tableSettingsMap[e]||new Oz}setTableSettings(e,t){this._tableSettingsMap[e]=t}clearTableSettings(){this._tableSettingsMap={}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Iz=(()=>{class e{constructor(e){this.el=e,this.element=e}get pageSize(){const e=sessionStorage.getItem(this.key)||this.element.pageSize;return Number(e)}set pageSize(e){const t=String(e);sessionStorage.setItem(this.key,t)}ngOnInit(){this.key=this.paginatorLocalStorage+"-PageSize",this.element.pageSize=this.pageSize,this.element.page.subscribe(e=>{this.pageSize=e.pageSize})}}return e.\u0275fac=function(t){return new(t||e)(Go(sI))},e.\u0275dir=Ke({type:e,selectors:[["","paginatorLocalStorage",""]],inputs:{paginatorLocalStorage:"paginatorLocalStorage"}}),e})();function Rz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," ID "),Jo())}function Pz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",21),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(2),ja(e.id)}}function Yz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Title "),Jo())}function Fz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"a",22),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(1),Zo("routerLink","issues/"+e.id),fs(1),qa(" ",e.title," ")}}function jz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Team "),Jo())}function qz(e,t){if(1&e&&(Ko(0,"mat-cell"),Fa(1),Jo()),2&e){const e=t.$implicit;fs(1),qa(" ",e.teamAssigned&&e.teamAssigned.id||"-"," ")}}function Nz(e,t){1&e&&(ea(0,23),$o(1,jz,2,0,"mat-header-cell",2),$o(2,qz,2,1,"mat-cell",3),ta())}function Hz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Type "),Jo())}function Uz(e,t){1&e&&(Ko(0,"span",27),la("click",function(e){return e.stopPropagation()}),Ko(1,"mat-icon",28),Fa(2,"arrow_right_alt"),Jo(),Jo())}function zz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("type",e.teamChosenType))),fs(1),qa(" ",e.teamChosenType," ")}}function Bz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),$o(3,Uz,3,0,"span",25),$o(4,zz,2,2,"span",26),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngStyle",i.labelService.setLabelStyle(i.labelService.getColorOfLabel("type",e.type))),fs(1),qa(" ",e.type||"-"," "),fs(1),Zo("ngIf",e.teamChosenType&&e.teamChosenType!=e.type),fs(1),Zo("ngIf",e.teamChosenType&&e.teamChosenType!=e.type)}}function Vz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Severity "),Jo())}function $z(e,t){1&e&&(Ko(0,"span",30),la("click",function(e){return e.stopPropagation()}),Ko(1,"mat-icon",28),Fa(2,"arrow_right_alt"),Jo(),Jo())}function Wz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("severity",e.teamChosenSeverity))),fs(1),qa(" ",e.teamChosenSeverity," ")}}function Gz(e,t){if(1&e&&(Ko(0,"mat-cell"),Ko(1,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(2),Jo(),$o(3,$z,3,0,"span",29),$o(4,Wz,2,2,"span",26),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngStyle",i.labelService.setLabelStyle(i.labelService.getColorOfLabel("severity",e.severity))),fs(1),qa(" ",e.severity||"-"," "),fs(1),Zo("ngIf",e.teamChosenSeverity&&e.teamChosenSeverity!=e.severity),fs(1),Zo("ngIf",e.teamChosenSeverity&&e.teamChosenSeverity!=e.severity)}}function Zz(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Response "),Jo())}function Qz(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit,t=pa();Zo("ngStyle",t.labelService.setLabelStyle(t.labelService.getColorOfLabel("response",e.response))),fs(1),qa(" ",e.response," ")}}function Kz(e,t){1&e&&(Ko(0,"span",32),Ko(1,"mat-icon",33),Fa(2,"warning"),Jo(),Jo())}function Jz(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,Qz,2,2,"span",26),$o(2,Kz,3,0,"span",31),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",e.response),fs(1),Zo("ngIf",!e.response)}}function Xz(e,t){1&e&&(Ko(0,"mat-header-cell",34),Fa(1," Assignees "),Jo())}function eB(e,t){if(1&e&&(Ko(0,"span",21),la("click",function(e){return e.stopPropagation()}),Fa(1),Jo()),2&e){const e=pa().$implicit;fs(1),qa(" ",e.assignees.join(", ")," ")}}function tB(e,t){1&e&&(Ko(0,"span",37),Ko(1,"mat-icon",38),Fa(2," warning "),Jo(),Jo())}function iB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,eB,2,1,"span",35),$o(2,tB,3,0,"span",36),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",0!==e.assignees.length),fs(1),Zo("ngIf",0===e.assignees.length)}}function nB(e,t){1&e&&(Ko(0,"mat-header-cell"),Fa(1," Duplicates "),Jo())}function rB(e,t){1&e&&(Ko(0,"div"),Fa(1,"-"),Jo())}const sB=function(e){return[e]};function oB(e,t){if(1&e&&(Ko(0,"mat-chip-list",41),Ko(1,"mat-chip",42),Fa(2),Jo(),Jo()),2&e){const e=t.$implicit;fs(1),Zo("routerLink",pu(3,sB,"issues/"+e.id))("matTooltip",e.title),fs(1),qa(" #",e.id," ")}}function aB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,rB,2,0,"div",39),_u(2,"async"),$o(3,oB,3,5,"mat-chip-list",40),_u(4,"async"),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngIf",0===yu(2,2,i.issueService.getDuplicateIssuesFor(e)).length),fs(2),Zo("ngForOf",yu(4,4,i.issueService.getDuplicateIssuesFor(e)))}}function lB(e,t){1&e&&(Ko(0,"mat-header-cell",20),Fa(1," Todo Remaining "),Jo())}function uB(e,t){1&e&&(Ko(0,"span"),Ko(1,"font",44),Fa(2,"All tasks are completed"),Jo(),Jo())}function cB(e,t){if(1&e&&(Ko(0,"span"),Ko(1,"font",45),Fa(2),Jo(),Jo()),2&e){const e=pa().$implicit,t=pa();fs(2),Na("",e.issueDisputes.length-t.todoFinished(e),"/",e.issueDisputes.length," tasks pending.")}}function dB(e,t){if(1&e&&Xo(0,"progress",46),2&e){const e=pa().$implicit;_a("value",pa().todoFinished(e)),_a("max",e.issueDisputes.length)}}function hB(e,t){1&e&&(Ko(0,"span"),Fa(1," No Todo List for this issue "),Jo())}function pB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,uB,3,0,"span",39),$o(2,cB,3,2,"span",39),$o(3,dB,1,2,"progress",43),$o(4,hB,2,0,"span",39),Jo()),2&e){const e=t.$implicit,i=pa();fs(1),Zo("ngIf",i.isTodoListChecked(e)&&e.issueDisputes.length>0),fs(1),Zo("ngIf",!i.isTodoListChecked(e)),fs(1),Zo("ngIf",e.issueDisputes.length>0),fs(1),Zo("ngIf",0===e.issueDisputes.length)}}function mB(e,t){1&e&&(Ko(0,"mat-header-cell",34),Fa(1,"Response"),Jo())}function fB(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1," Disagree "),Jo()),2&e){const e=pa(2);Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel("response","Rejected")))}}function gB(e,t){if(1&e&&(Ko(0,"span",24),la("click",function(e){return e.stopPropagation()}),Fa(1," Agree "),Jo()),2&e){const e=pa(2);Zo("ngStyle",e.labelService.setLabelStyle(e.labelService.getColorOfLabel("response","Accepted")))}}function _B(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,fB,2,1,"span",26),$o(2,gB,2,1,"span",26),Jo()),2&e){const e=t.$implicit;fs(1),Zo("ngIf",e.testerDisagree),fs(1),Zo("ngIf",!e.testerDisagree)}}function yB(e,t){1&e&&(Ko(0,"mat-header-cell"),Fa(1," Actions "),Jo())}function bB(e,t){if(1&e){const e=na();Ko(0,"button",54),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().viewIssueInBrowser(i.id,t)}),Ko(1,"mat-icon"),Fa(2,"open_in_new"),Jo(),Jo()}}function vB(e,t){if(1&e){const e=na();Ko(0,"button",55),la("click",function(){Yt(e);const t=pa().$implicit;return pa().logIssueRespondRouting(t.id)}),Ko(1,"mat-icon"),Fa(2,"feedback"),Jo(),Jo()}2&e&&Zo("routerLink","issues/"+pa().$implicit.id)}function wB(e,t){1&e&&(Ko(0,"button",57),Ko(1,"mat-icon"),Fa(2,"edit"),Jo(),Jo())}function kB(e,t){if(1&e&&$o(0,wB,3,0,"button",56),2&e){const e=pa(2);Zo("ngIf",e.permissions.isIssueEditable()&&e.isActionVisible(e.action_buttons.FIX_ISSUE))}}function SB(e,t){if(1&e){const e=na();Ko(0,"button",58),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().markAsResponded(i,t)}),Ko(1,"mat-icon"),Fa(2,"check_circle"),Jo(),Jo()}}function TB(e,t){if(1&e){const e=na();Ko(0,"button",59),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().markAsPending(i,t)}),Ko(1,"mat-icon"),Fa(2,"cancel"),Jo(),Jo()}}function EB(e,t){if(1&e){const e=na();Ko(0,"button",60),la("click",function(t){Yt(e);const i=pa().$implicit;return pa().openDeleteDialog(i.id,t),t.stopPropagation()}),Ko(1,"mat-icon"),Fa(2,"delete_outline"),Jo(),Jo()}}function xB(e,t){1&e&&Xo(0,"mat-spinner",61),2&e&&Zo("diameter",25)}function MB(e,t){if(1&e&&(Ko(0,"mat-cell"),$o(1,bB,3,0,"button",47),$o(2,vB,3,1,"button",48),$o(3,kB,1,1,"ng-template",null,49,qu),$o(5,SB,3,0,"button",50),$o(6,TB,3,0,"button",51),$o(7,EB,3,0,"button",52),$o(8,xB,1,1,"mat-spinner",53),Jo()),2&e){const e=t.$implicit,i=Wo(4),n=pa();fs(1),Zo("ngIf",n.isActionVisible(n.action_buttons.VIEW_IN_WEB)),fs(1),Zo("ngIf",n.isResponseEditable()&&!e.status&&n.isActionVisible(n.action_buttons.RESPOND_TO_ISSUE))("ngIfElse",i),fs(3),Zo("ngIf",n.isResponseEditable()&&e.status&&n.isActionVisible(n.action_buttons.MARK_AS_RESPONDED)),fs(1),Zo("ngIf",("Student"===n.userService.currentUser.role||"Admin"===n.userService.currentUser.role)&&n.isActionVisible(n.action_buttons.MARK_AS_PENDING)),fs(1),Zo("ngIf",n.permissions.isIssueDeletable()&&!n.issuesPendingDeletion[e.id]&&n.isActionVisible(n.action_buttons.DELETE_ISSUE)),fs(1),Zo("ngIf",n.issuesPendingDeletion[e.id]&&n.isActionVisible(n.action_buttons.DELETE_ISSUE))}}function CB(e,t){1&e&&Xo(0,"mat-header-row")}function DB(e,t){if(1&e){const e=na();Ko(0,"mat-row",62),la("click",function(){const t=Yt(e).$implicit;return pa().logIssueEditRouting(t.id)}),Jo()}2&e&&Zo("routerLink","issues/"+t.$implicit.id)}function LB(e,t){1&e&&(Ko(0,"mat-card",63),Xo(1,"mat-progress-spinner",64),Jo())}const OB=function(){return[10,20,50]};var IB=(()=>(function(e){e[e.VIEW_IN_WEB=0]="VIEW_IN_WEB",e[e.MARK_AS_RESPONDED=1]="MARK_AS_RESPONDED",e[e.MARK_AS_PENDING=2]="MARK_AS_PENDING",e[e.RESPOND_TO_ISSUE=3]="RESPOND_TO_ISSUE",e[e.FIX_ISSUE=4]="FIX_ISSUE",e[e.DELETE_ISSUE=5]="DELETE_ISSUE"}(IB||(IB={})),IB))();let RB=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c=null){this.userService=e,this.permissions=t,this.labelService=i,this.githubService=n,this.issueService=r,this.issueTableSettingsService=s,this.phaseService=o,this.errorHandlingService=a,this.logger=l,this.dialogService=u,this.snackBar=c,this.snackBarAutoCloseTime=3e3,this.filters=void 0,this.action_buttons=IB,this.deleteIssueModalMessages=["Do you wish to delete this issue?","This action is irreversible!"],this.yesButtonModalMessage="Yes, I wish to delete this issue",this.noButtonModalMessage="No, I don't wish to delete this issue"}ngOnInit(){this.issues=new Lz(this.issueService,this.sort,this.paginator,this.headers,this.filters),this.issuesPendingDeletion={},this.tableSettings=this.issueTableSettingsService.getTableSettings(this.table_name)}ngAfterViewInit(){setTimeout(()=>{this.issues.loadIssues()})}sortChange(e){this.tableSettings.sortActiveId=e.active,this.tableSettings.sortDirection=e.direction,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}pageChange(e){this.tableSettings.pageSize=e.pageSize,this.tableSettings.pageIndex=e.pageIndex,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}isActionVisible(e){return this.actions.includes(e)}markAsResponded(e,t){this.logger.info(`IssueTablesComponent: Marking Issue ${e.id} as Responded`);const i=e.clone(this.phaseService.currentPhase);i.status=rj.Done,this.issueService.updateIssue(i).subscribe(e=>{this.issueService.updateLocalStore(e)},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation()}isResponseEditable(){return this.permissions.isTeamResponseEditable()||this.permissions.isTesterResponseEditable()}markAsPending(e,t){this.logger.info(`IssueTablesComponent: Marking Issue ${e.id} as Pending`);const i=e.clone(this.phaseService.currentPhase);i.status=rj.Incomplete,this.issueService.updateIssue(i).subscribe(e=>{this.issueService.updateLocalStore(e)},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation()}logIssueRespondRouting(e){this.logger.info(`IssueTablesComponent: Proceeding to Respond to Issue ${e}`)}logIssueEditRouting(e){this.logger.info(`IssueTablesComponent: Proceeding to Edit Issue ${e}`)}todoFinished(e){return e.issueDisputes.length-e.numOfUnresolvedDisputes()}isTodoListChecked(e){return e.issueDisputes&&0===e.numOfUnresolvedDisputes()}viewIssueInBrowser(e,t){this.logger.info(`IssueTablesComponent: Opening Issue ${e} on Github`),this.githubService.viewIssueInBrowser(e,t)}deleteIssue(e,t){this.logger.info(`IssueTablesComponent: Deleting Issue ${e}`),this.issuesPendingDeletion=Object.assign(Object.assign({},this.issuesPendingDeletion),{[e]:!0}),this.issueService.deleteIssue(e).pipe(Yg(()=>{const t=(0,HP._T)(this.issuesPendingDeletion,["symbol"==typeof e?e:e+""]);this.issuesPendingDeletion=t})).subscribe(e=>{},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation();let i=null;i=this.snackBar.openFromComponent(xz,{data:{message:`Deleted issue ${e}`},duration:this.snackBarAutoCloseTime}),i.onAction().subscribe(()=>{this.undeleteIssue(e,t)})}undeleteIssue(e,t){this.logger.info(`IssueTablesComponent: Undeleting Issue ${e}`),this.issueService.undeleteIssue(e).subscribe(e=>{},e=>{this.errorHandlingService.handleError(e)}),t.stopPropagation(),this.snackBar.open(`Restored issue ${e}`,"",{duration:this.snackBarAutoCloseTime})}openDeleteDialog(e,t){this.dialogService.openUserConfirmationModal(this.deleteIssueModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(i=>{i&&(this.logger.info(`IssueTablesComponent: Deleting issue ${e}`),this.deleteIssue(e,t))})}}return e.\u0275fac=function(t){return new(t||e)(Go(fY),Go(vq),Go(bj),Go(dY),Go(Tj),Go(Az),Go(Sj),Go(rY),Go(iY),Go($q),Go(sR))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-tables"]],viewQuery:function(e,t){if(1&e&&(Iu(dR,7),Iu(sI,7)),2&e){let e;Au(e=Pu())&&(t.sort=e.first),Au(e=Pu())&&(t.paginator=e.first)}},inputs:{headers:"headers",actions:"actions",filters:"filters",table_name:"table_name"},decls:38,vars:14,consts:[["matSort","",1,"mat-elevation-z8",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","title"],["matColumnDef","teamAssigned",4,"ngIf"],["matColumnDef","type"],["matColumnDef","severity"],["matColumnDef","response"],["matColumnDef","assignees"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","duplicatedIssues"],[4,"matHeaderCellDef"],["matColumnDef","Todo Remaining"],["matColumnDef","testerDisagree"],["matColumnDef","actions"],[4,"matHeaderRowDef"],["style","cursor: pointer",3,"routerLink","click",4,"matRowDef","matRowDefColumns"],["style","display: flex; justify-content: center; align-items: center",4,"ngIf"],[3,"paginatorLocalStorage","pageSize","pageSizeOptions","pageIndex","page"],["mat-sort-header",""],[2,"cursor","default",3,"click"],[1,"no-underline","link-grey-dark","title-wrap",3,"routerLink"],["matColumnDef","teamAssigned"],[3,"ngStyle","click"],["style","display: inline; padding: 1px 2px",3,"click",4,"ngIf"],[3,"ngStyle","click",4,"ngIf"],[2,"display","inline","padding","1px 2px",3,"click"],[1,"arrow-right"],["style","display: inline; margin: 3px",3,"click",4,"ngIf"],[2,"display","inline","margin","3px",3,"click"],["style","margin-left: 10%",4,"ngIf"],[2,"margin-left","10%"],["matTooltip","Should not be empty","matTooltipPosition","above","color","warn"],["mat-header-cell","","mat-sort-header",""],["style","cursor: default",3,"click",4,"ngIf"],["style","margin-left: 5%",4,"ngIf"],[2,"margin-left","5%"],["matTooltip","We strongly recommend assigning all issues to someone","matTooltipPosition","above",2,"color","#ffab40"],[4,"ngIf"],["style","display: inline-block; margin-left: 5px",4,"ngFor","ngForOf"],[2,"display","inline-block","margin-left","5px"],["matTooltipPosition","above",2,"font-size","12px","cursor","pointer",3,"routerLink","matTooltip"],["role","progressbar","style","width: 100%","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",3,"value","max",4,"ngIf"],["color","green"],["color","red"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",2,"width","100%",3,"value","max"],["mat-button","","matTooltip","View this issue on GitHub","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Respond to this issue",3,"routerLink","click",4,"ngIf","ngIfElse"],["tryEditIssue",""],["mat-button","","color","primary","style","transform: scale(0.8)","matTooltip","Mark this issue as Responded",3,"click",4,"ngIf"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","warn","matTooltip","Delete this issue","style","transform: scale(0.8)",3,"click",4,"ngIf"],["color","warn","style","display: inline; padding-right: 30px; margin-left: 5px",3,"diameter",4,"ngIf"],["mat-button","","matTooltip","View this issue on GitHub",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","accent","matTooltip","Respond to this issue",2,"transform","scale(0.8)",3,"routerLink","click"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Edit this issue",4,"ngIf"],["mat-button","","color","accent","matTooltip","Edit this issue",2,"transform","scale(0.8)"],["mat-button","","color","primary","matTooltip","Mark this issue as Responded",2,"transform","scale(0.8)",3,"click"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","warn","matTooltip","Delete this issue",2,"transform","scale(0.8)",3,"click"],["color","warn",2,"display","inline","padding-right","30px","margin-left","5px",3,"diameter"],[2,"cursor","pointer",3,"routerLink","click"],[2,"display","flex","justify-content","center","align-items","center"],["color","primary","mode","indeterminate","diameter","50","strokeWidth","5"]],template:function(e,t){1&e&&(Ko(0,"mat-table",0),la("matSortChange",function(e){return t.sortChange(e)}),ea(1,1),$o(2,Rz,2,0,"mat-header-cell",2),$o(3,Pz,3,1,"mat-cell",3),ta(),ea(4,4),$o(5,Yz,2,0,"mat-header-cell",2),$o(6,Fz,3,2,"mat-cell",3),ta(),$o(7,Nz,3,0,"ng-container",5),ea(8,6),$o(9,Hz,2,0,"mat-header-cell",2),$o(10,Bz,5,4,"mat-cell",3),ta(),ea(11,7),$o(12,Vz,2,0,"mat-header-cell",2),$o(13,Gz,5,4,"mat-cell",3),ta(),ea(14,8),$o(15,Zz,2,0,"mat-header-cell",2),$o(16,Jz,3,2,"mat-cell",3),ta(),ea(17,9),$o(18,Xz,2,0,"mat-header-cell",10),$o(19,iB,3,2,"mat-cell",3),ta(),ea(20,11),$o(21,nB,2,0,"mat-header-cell",12),$o(22,aB,5,6,"mat-cell",3),ta(),ea(23,13),$o(24,lB,2,0,"mat-header-cell",2),$o(25,pB,5,4,"mat-cell",3),ta(),ea(26,14),$o(27,mB,2,0,"mat-header-cell",10),$o(28,_B,3,2,"mat-cell",3),ta(),ea(29,15),$o(30,yB,2,0,"mat-header-cell",12),$o(31,MB,9,7,"mat-cell",3),ta(),$o(32,CB,1,0,"mat-header-row",16),Fa(33,"> "),$o(34,DB,1,1,"mat-row",17),Jo(),$o(35,LB,2,0,"mat-card",18),_u(36,"async"),Ko(37,"mat-paginator",19),la("page",function(e){return t.pageChange(e)}),Jo()),2&e&&(Zo("dataSource",t.issues)("matSortActive",t.tableSettings.sortActiveId)("matSortDirection",t.tableSettings.sortDirection),fs(7),Zo("ngIf","Student"!==t.userService.currentUser.role),fs(25),Zo("matHeaderRowDef",t.headers),fs(2),Zo("matRowDefColumns",t.headers),fs(1),Zo("ngIf",yu(36,11,t.issues.isLoading$)),fs(2),Zo("paginatorLocalStorage",t.table_name)("pageSize",t.tableSettings.pageSize)("pageSizeOptions",hu(13,OB))("pageIndex",t.tableSettings.pageIndex))},directives:[wR,dR,TR,SR,kR,gd,MR,CR,sI,Iz,ER,_R,xR,yb,Sd,cL,BA,md,VD,qD,_b,oD,gI,DR,LR,_D,fI],pipes:[Cd],styles:[".mat-table[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-width:1000px}.mat-paginator[_ngcontent-%COMP%]{min-width:1000px}.mat-column-id[_ngcontent-%COMP%]{flex:0 1 5%}.mat-column-type[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-responseTag[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-assignees[_ngcontent-%COMP%]{word-wrap:normal}.mat-column-actions[_ngcontent-%COMP%]{overflow-x:auto;text-align:center!important}.mat-header-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-icon.arrow-right[_ngcontent-%COMP%]{cursor:default;vertical-align:middle}.mat-cell.mat-column-type[_ngcontent-%COMP%]{flex-wrap:wrap}.mat-cell.mat-column-actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{min-width:32px}.mat-column-type[_ngcontent-%COMP%]{flex-basis:12px}.title-wrap[_ngcontent-%COMP%]{overflow-wrap:anywhere}"]}),e})();function PB(e,t){1&e&&(Ko(0,"button",8),Fa(1," New Issue "),Jo())}const YB=[{path:"phaseBugReporting",component:(()=>{class e{constructor(e,t){this.permissions=e,this.userService=t,this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.DELETE_ISSUE,IB.FIX_ISSUE]}ngOnInit(){}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(vq),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-bug-reporting"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:13,vars:4,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],[1,"grid-flush-right"],["mat-stroked-button","","class","create-new-bug-report-button","color","primary","routerLink","issues/new",4,"ngIf"],["table_name","tableBugReporting",3,"headers","actions"],["mat-stroked-button","","color","primary","routerLink","issues/new",1,"create-new-bug-report-button"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Ko(9,"mat-grid-tile"),Ko(10,"div",5),$o(11,PB,2,0,"button",6),Jo(),Jo(),Jo(),Xo(12,"app-issue-tables",7),Jo()),2&e&&(fs(5),qa(" ","Student"===t.userService.currentUser.role?"Issues you posted":"All Issues"," "),fs(6),Zo("ngIf",t.permissions.isIssueCreatable()),fs(1),Zo("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[FO,DO,NC,SL,gd,RB,oD,_b],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:20%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:35%}.mat-column-type[_ngcontent-%COMP%]{width:25%}.mat-column-severity[_ngcontent-%COMP%]{width:23%}"]}),e})(),canActivate:[$j]},{path:"phaseBugReporting/issues/new",component:Ez,canActivate:[$j],canDeactivate:[bz]},{path:"phaseBugReporting/issues/:issue_id",component:vz,canActivate:[$j],canDeactivate:[bz]}];let FB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(YB)],Lb]}),e})(),jB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[FB,DP,dq,Wj,yz,iw.forChild(),Gj,hq]]}),e})(),qB=(()=>{class e{constructor(e,t,i,n){this.route=e,this.userService=t,this.permissions=i,this.issueService=n,this.issueComponents=[Nq.TESTER_POST,Nq.TEAM_RESPONSE,Nq.ISSUE_DISPUTE,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.RESPONSE_LABEL,Nq.DUPLICATE,Nq.UNSURE_CHECKBOX]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_),Go(fY),Go(vq),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})();function NB(e,t){1&e&&(Ko(0,"button",11),Ko(1,"mat-icon",12),Fa(2," settings "),Jo(),Jo()),2&e&&(pa(),Zo("matMenuTriggerFor",Wo(6)))}function HB(e,t){if(1&e){const e=na();Ko(0,"button",13),la("click",function(){const t=Yt(e).$implicit;return pa().updateDisplayedTeam(t)}),Ko(1,"span"),Fa(2),Jo(),Jo()}if(2&e){const e=t.$implicit;Zo("disabled",e===pa().teamFilter),fs(2),qa(" ",e," ")}}const UB=[{path:"phaseModeration",component:(()=>{class e{constructor(e,t,i){this.issueService=e,this.userService=t,this.dataService=i,this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.TODO,RH.ACTIONS],this.teamFilter="All Teams",this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE]}ngOnInit(){this.issueService.setIssueTeamFilter(this.teamFilter)}applyFilter(e){this.table.issues.filter=e}get teamList(){const e=this.dataService.getTeams();switch(oj[kY.phaseModeration][this.userService.currentUser.role]){case sj.FilterByTeamAssigned:return["All Teams",...this.userService.currentUser.allocatedTeams.map(e=>e.id)];case sj.NoFilter:return["All Teams",...e]}}updateDisplayedTeam(e){this.teamFilter=e,this.table.issues.teamFilter=this.teamFilter}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY),Go(mY))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-moderation"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:18,vars:5,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableModeration",3,"headers","actions"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"div",0),Ko(2,"span",1),Fa(3),Jo(),$o(4,NB,3,1,"button",2),Ko(5,"mat-menu",null,3),$o(7,HB,3,2,"button",4),Jo(),Jo(),Ko(8,"mat-grid-list",5),Ko(9,"mat-grid-tile"),Ko(10,"div",6),Ko(11,"h1",7),Fa(12,"Issues Submitted by Students"),Jo(),Jo(),Jo(),Xo(13,"br"),Ko(14,"mat-grid-tile"),Ko(15,"mat-form-field",8),Ko(16,"input",9),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(17,"app-issue-tables",10),Jo()),2&e&&(fs(3),qa(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),fs(1),Zo("ngIf",t.teamList),fs(3),Zo("ngForOf",t.teamList),fs(10),Zo("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[gd,uA,md,FO,DO,NC,SL,RB,oD,mA,cL,sA],styles:[".mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-Todo-Remaining[_ngcontent-%COMP%]{width:20%}.mat-column-actions[_ngcontent-%COMP%]{width:10%;text-align:center}"]}),e})(),canActivate:[$j]},{path:"phaseModeration/issues/:issue_id",component:qB,canActivate:[$j],canDeactivate:[bz]}];let zB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(UB)],Lb]}),e})(),BB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[zB,DP,dq,Wj,yz,iw.forChild(),Gj]]}),e})(),VB=(()=>{class e{constructor(e,t,i){this.issueService=e,this.route=t,this.permissions=i,this.issueComponents=[Nq.TESTER_POST,Nq.TEAM_RESPONSE,Nq.NEW_TEAM_RESPONSE,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.RESPONSE_LABEL,Nq.ASSIGNEE,Nq.DUPLICATE]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(W_),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e})(),$B=(()=>{class e{constructor(e,t,i){this.issueService=e,this.permissions=t,this.userService=i,this.actionButtons=[IB.VIEW_IN_WEB,IB.RESPOND_TO_ISSUE,IB.MARK_AS_RESPONDED,IB.FIX_ISSUE],this.displayedColumns=i.currentUser.role!==pY.Student?[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){const e=e=>!this.issueService.hasTeamResponse(e.id)||!e.status||e.status===rj.Incomplete;this.filter=t=>e(t)&&(e=>!e.duplicateOf)(t)&&(e=>!e.status||!e.teamResponseError)(t)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(vq),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-pending"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Pending Response"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:26%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:10%}.mat-column-type[_ngcontent-%COMP%]{width:12%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-duplicateOf[_ngcontent-%COMP%]{width:12%}"]}),e})(),WB=(()=>{class e{constructor(e,t){this.issueService=e,this.userService=t,this.actionButtons=[IB.VIEW_IN_WEB,IB.MARK_AS_PENDING,IB.FIX_ISSUE],this.displayedColumns=t.currentUser.role===pY.Student?[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){this.filter=e=>(e=>this.issueService.hasTeamResponse(e.id))(e)&&!e.duplicateOf&&e.status===rj.Done}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-responded"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Responded"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:11%}.mat-column-severity[_ngcontent-%COMP%]{width:6%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:6%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.grid-flush-right[_ngcontent-%COMP%]{position:absolute;right:5px}"]}),e})(),GB=(()=>{class e{constructor(e,t,i){this.issueService=e,this.userService=t,this.permissions=i,this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE],this.displayedColumns=t.currentUser.role===pY.Student?[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]:[RH.ID,RH.TITLE,RH.TEAM_ASSIGNED,RH.TYPE,RH.SEVERITY,RH.RESPONSE,RH.ASSIGNEE,RH.DUPLICATED_ISSUES,RH.ACTIONS]}ngOnChanges(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}ngOnInit(){this.filter=e=>{const t=(e=>this.issueService.hasTeamResponse(e.id))(e)&&!!e.duplicateOf&&(e=>!!this.issueService.issues$.getValue().filter(t=>t.duplicateOf===e.id).length)(e),i=!!e.status&&(e=>!!e.teamResponseError)(e);return t||i}}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(Tj),Go(fY),Go(vq))},e.\u0275cmp=Ve({type:e,selectors:[["app-issues-faulty"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},inputs:{teamFilter:"teamFilter"},features:[ct],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Faulty Issues"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:7%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:15%;text-align:center}"]}),e})();function ZB(e,t){1&e&&(Ko(0,"button",6),Ko(1,"mat-icon",7),Fa(2," settings "),Jo(),Jo()),2&e&&(pa(),Zo("matMenuTriggerFor",Wo(6)))}function QB(e,t){if(1&e){const e=na();Ko(0,"button",8),la("click",function(){const t=Yt(e).$implicit;return pa().updateDisplayedTeam(t)}),Ko(1,"span"),Fa(2),Jo(),Jo()}if(2&e){const e=t.$implicit;Zo("disabled",e===pa().teamFilter),fs(2),qa(" ",e," ")}}const KB=[{path:"phaseTeamResponse",component:(()=>{class e{constructor(e,t,i){this.userService=e,this.dataService=t,this.issueService=i,this.teamFilter="All Teams"}ngOnInit(){this.issueService.setIssueTeamFilter(this.teamFilter)}get teamList(){const e=this.dataService.getTeams();switch(oj[kY.phaseTeamResponse][this.userService.currentUser.role]){case sj.FilterByTeamAssigned:return["All Teams",...this.userService.currentUser.allocatedTeams.map(e=>e.id)];case sj.NoFilter:return["All Teams",...e]}}updateDisplayedTeam(e){this.teamFilter=e}}return e.\u0275fac=function(t){return new(t||e)(Go(fY),Go(mY),Go(Tj))},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-team-response"]],decls:11,vars:6,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],[3,"teamFilter"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"div",0),Ko(2,"span",1),Fa(3),Jo(),$o(4,ZB,3,1,"button",2),Ko(5,"mat-menu",null,3),$o(7,QB,3,2,"button",4),Jo(),Jo(),Xo(8,"app-issues-pending",5),Xo(9,"app-issues-responded",5),Xo(10,"app-issues-faulty",5),Jo()),2&e&&(fs(3),qa(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),fs(1),Zo("ngIf",t.teamList),fs(3),Zo("ngForOf",t.teamList),fs(1),Zo("teamFilter",t.teamFilter),fs(1),Zo("teamFilter",t.teamFilter),fs(1),Zo("teamFilter",t.teamFilter))},directives:[gd,uA,md,$B,WB,GB,oD,mA,cL,sA],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:80px;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:40%}.mat-column-type[_ngcontent-%COMP%]{width:30%}.mat-column-severity[_ngcontent-%COMP%]{width:12%}"]}),e})(),canActivate:[$j]},{path:"phaseTeamResponse/issues/:issue_id",component:VB,canActivate:[$j],canDeactivate:[bz]}];let JB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(KB)],Lb]}),e})(),XB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[JB,DP,dq,Wj,yz,iw.forChild(),Gj]]}),e})(),eV=(()=>{class e{constructor(e){this.route=e,this.issueComponents=[Nq.TESTER_POST,Nq.SEVERITY_LABEL,Nq.TYPE_LABEL,Nq.TEAM_RESPONSE,Nq.TESTER_RESPONSE]}ngOnInit(){this.route.params.subscribe(e=>{this.issueId=+e.issue_id})}canDeactivate(){return!this.viewIssue.isEditing()}}return e.\u0275fac=function(t){return new(t||e)(Go(W_))},e.\u0275cmp=Ve({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){if(1&e&&Iu(Hq,7),2&e){let e;Au(e=Pu())&&(t.viewIssue=e.first)}},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-view-issue",0),Jo()),2&e&&(fs(1),Zo("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[Hq],styles:[""]}),e})(),tV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.RESPOND_TO_ISSUE,IB.MARK_AS_RESPONDED,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>(e=>!e.status||e.status===rj.Incomplete)(e)&&(e=>!!e.issueComment)(e)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-pending"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Pending Response"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),iV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.TESTER_DISAGREE,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.MARK_AS_PENDING,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>(e=>e.status===rj.Done)(e)&&(e=>!!e.issueComment)(e)}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-responded"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Issues Responded"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),nV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB,IB.FIX_ISSUE]}ngOnInit(){this.filter=e=>e.testerResponseError}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-faulty"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Faulty Issues"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})(),rV=(()=>{class e{constructor(){this.displayedColumns=[RH.ID,RH.TITLE,RH.TYPE,RH.SEVERITY,RH.ACTIONS],this.actionButtons=[IB.VIEW_IN_WEB]}ngOnInit(){this.filter=e=>e.teamAccepted}applyFilter(e){this.table.issues.filter=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-issue-accepted"]],viewQuery:function(e,t){if(1&e&&Iu(RB,7),2&e){let e;Au(e=Pu())&&(t.table=e.first)}},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseAccepted",3,"headers","actions","filters"]],template:function(e,t){1&e&&(Ko(0,"div"),Ko(1,"mat-grid-list",0),Ko(2,"mat-grid-tile"),Ko(3,"div",1),Ko(4,"h1",2),Fa(5,"Accepted by Dev Team (No Action Required)"),Jo(),Jo(),Jo(),Ko(6,"mat-grid-tile"),Ko(7,"mat-form-field",3),Ko(8,"input",4),la("keyup",function(e){return t.applyFilter(e.target.value)}),Jo(),Jo(),Jo(),Jo(),Xo(9,"app-issue-tables",5),Jo()),2&e&&(fs(9),Zo("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[FO,DO,NC,SL,RB],styles:[""]}),e})();const sV=[{path:"phaseTesterResponse",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-phase-tester-response"]],decls:5,vars:0,template:function(e,t){1&e&&(Ko(0,"div"),Xo(1,"app-issue-pending"),Xo(2,"app-issue-responded"),Xo(3,"app-issue-faulty"),Xo(4,"app-issue-accepted"),Jo())},directives:[tV,iV,nV,rV],styles:[""]}),e})(),canActivate:[$j]},{path:"phaseTesterResponse/issues/:issue_id",component:eV,canActivate:[$j],canDeactivate:[bz]}];let oV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forChild(sV)],Lb]}),e})(),aV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Dd,oV,DP,yz,Gj,iw.forChild()]]}),e})();const lV=[{path:"",loadChildren:()=>Vj},{path:"phaseBugReporting",loadChildren:()=>jB,canLoad:[$j]},{path:"phaseTeamResponse",loadChildren:()=>XB,canLoad:[$j]},{path:"phaseTesterResponse",loadChildren:()=>aV,canLoad:[$j]},{path:"phaseModeration",loadChildren:()=>BB,canLoad:[$j]},{path:"**",redirectTo:""}];let uV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ze({type:e}),e.\u0275inj=ge({imports:[[Lb.forRoot(lV)],Lb]}),e})();function cV(e,t){if(1&e){const e=na();Ko(0,"button",12),la("click",function(){return Yt(e),pa().goBack()}),Ko(1,"mat-icon"),Fa(2,"arrow_back_ios"),Jo(),Jo()}}function dV(e,t){if(1&e&&(Ko(0,"span",13),Fa(1),Jo()),2&e){const e=pa();fs(1),qa(" (",e.getPhaseDescription(e.phaseService.currentPhase),") ")}}const hV=function(e){return{color:"green",visibility:e}};function pV(e,t){if(1&e){const e=na();Ko(0,"button",18),la("click",function(){const t=Yt(e).$implicit;return pa(2).routeToSelectedPhase(t)}),Ko(1,"span"),Ko(2,"mat-icon",19),Fa(3,"done"),Jo(),Fa(4),Jo(),Jo()}if(2&e){const e=t.$implicit,i=pa(2);fs(2),Zo("ngStyle",pu(2,hV,i.phaseService.currentPhase===e?"visible":"hidden")),fs(2),qa(" ",i.getPhaseDescription(e)," ")}}function mV(e,t){if(1&e&&(Ko(0,"div"),Ko(1,"button",14),Ko(2,"mat-icon",15),Fa(3,"expand_more"),Jo(),Jo(),Ko(4,"mat-menu",null,16),$o(6,pV,5,4,"button",17),Jo(),Jo()),2&e){const e=Wo(5),t=pa();fs(1),Zo("matMenuTriggerFor",e),fs(5),Zo("ngForOf",t.phaseService.sessionData.openPhases)}}function fV(e,t){if(1&e){const e=na();Ko(0,"button",20),la("click",function(){return Yt(e),pa().viewBrowser()}),Ko(1,"mat-icon"),Fa(2,"open_in_new"),Jo(),Jo()}}function gV(e,t){if(1&e){const e=na();Ko(0,"button",21),la("click",function(){return Yt(e),pa().reload()}),Fa(1," Sync "),Ko(2,"mat-icon"),Fa(3,"refresh"),Jo(),Jo()}}function _V(e,t){1&e&&(Ko(0,"div",22),Ko(1,"span",23),Fa(2,"Sync"),Jo(),Xo(3,"mat-spinner",24),Jo()),2&e&&(fs(3),Zo("diameter",20))}function yV(e,t){if(1&e){const e=na();Ko(0,"button",25),la("click",function(t){return Yt(e),pa().openLogOutDialog(),t.stopPropagation()}),Fa(1),Ko(2,"mat-icon",26),Fa(3,"exit_to_app"),Jo(),Jo()}if(2&e){const e=pa();fs(1),qa(" (",e.userService.currentUser.loginId,") ")}}let bV=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u,c,d){this.router=e,this.auth=t,this.phaseService=i,this.userService=n,this.logger=r,this.location=s,this.githubEventService=o,this.issueService=a,this.errorHandlingService=l,this.githubService=u,this.dialogService=c,this.issueTableSettingsService=d,this.isReloadButtonDisabled=!1,this.ISSUE_FILTER="/issues?q=is:issue+is:open",this.TUTORIAL_LABEL="+label:tutorial.",this.TEAM_LABEL="+label:team.",this.EXCLUDE_DUPLICATE="+-label:duplicate",this.logOutDialogMessages=["Do you wish to log out?"],this.yesButtonDialogMessage="Yes, I wish to log out",this.noButtonDialogMessage="No, I don't wish to log out",e.events.pipe(bh(e=>e instanceof Bg),wS()).subscribe(e=>{this.prevUrl=e[0].urlAfterRedirects})}ngOnInit(){}routeToSelectedPhase(e){this.phaseService.currentPhase!==kY[e]&&(this.phaseService.currentPhase=kY[e],this.githubService.storePhaseDetails(this.phaseService.getPhaseOwner(this.phaseService.currentPhase),this.phaseService.sessionData[e]),this.githubService.reset(),this.issueService.reset(!1),this.reload(),this.issueTableSettingsService.clearTableSettings(),this.router.navigateByUrl(this.phaseService.currentPhase))}isBackButtonShown(){return`/${this.phaseService.currentPhase}`!==this.router.url&&"/"!==this.router.url&&!this.router.url.startsWith("/?code")}isReloadButtonShown(){return"/phaseBugReporting/issues/new"!==this.router.url}isOpenUrlButtonShown(){return this.phaseService.currentPhase===kY.phaseBugReporting||this.userService.currentUser.role===pY.Student||"All Teams"!==this.issueService.getIssueTeamFilter()||this.router.url.includes("/issues")}getVersion(){return IP.version}getPhaseDescription(e){return kj[e]}goBack(){this.prevUrl===`/${this.phaseService.currentPhase}/issues/new`?this.router.navigate(["/phaseBugReporting"]):this.location.back()}viewBrowser(){const e=this.router.url.substring(1),t=e.indexOf("/");let i;i=t<0?this.ISSUE_FILTER.concat(this.getTeamFilterString()):e.substring(t),window.open("https://github.com/".concat(this.githubService.getRepoURL()).concat(i))}openIssueTracker(){window.open("https://github.com/CATcher-org/CATcher/issues")}getTeamFilterString(){if(this.phaseService.currentPhase===kY.phaseBugReporting||this.phaseService.currentPhase===kY.phaseTesterResponse)return"";this.userService.currentUser.team&&this.issueService.setIssueTeamFilter(this.userService.currentUser.team.id);const e=this.issueService.getIssueTeamFilter().split("-"),t=this.TUTORIAL_LABEL.concat(`${e[0]}-${e[1]}`).concat(this.TEAM_LABEL).concat(e[2]);return this.phaseService.currentPhase===kY.phaseModeration?t:this.EXCLUDE_DUPLICATE.concat(t)}reload(){this.isReloadButtonDisabled=!0,this.githubEventService.reloadPage().subscribe(e=>e,e=>{this.errorHandlingService.handleError(e,()=>this.githubEventService.reloadPage())}),setTimeout(()=>{this.isReloadButtonDisabled=!1},3e3)}logOut(){this.auth.logOut()}openLogOutDialog(){this.dialogService.openUserConfirmationModal(this.logOutDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed().subscribe(e=>{e&&(this.logger.info(`HeaderComponent: Logging out from ${this.userService.currentUser.loginId}`),this.logOut())})}exportLogFile(){this.logger.exportLogFile()}}return e.\u0275fac=function(t){return new(t||e)(Go(fb),Go(Mj),Go(Sj),Go(fY),Go(iY),Go(rd),Go(Ej),Go(Tj),Go(rY),Go(dY),Go($q),Go(Az))},e.\u0275cmp=Ve({type:e,selectors:[["app-layout-header"]],decls:17,vars:9,consts:[["color","primary",2,"position","sticky","position","-webkit-sticky","top","0","z-index","1000"],["mat-icon-button","","class","mat-toolbar mat-primary back-button","style","transform: scale(0.9)",3,"click",4,"ngIf"],[1,"mat-toolbar","mat-primary",2,"text-decoration","none",3,"routerLink"],["id","phase-descriptor","style","margin-left: 10px",4,"ngIf"],[4,"ngIf"],[2,"flex","1 1 auto"],["mat-button","","matTooltip","Download CATcher Log",3,"click"],["mat-button","","matTooltip","Give feedback about CATcher",3,"click"],["mat-button","","matTooltip","View current page on GitHub",3,"click",4,"ngIf"],["mat-button","","matTooltip","Synchronize with Github data",3,"click",4,"ngIf"],["class","sync-spinner",4,"ngIf"],["mat-button","","matTooltip","Log out",3,"click",4,"ngIf"],["mat-icon-button","",1,"mat-toolbar","mat-primary","back-button",2,"transform","scale(0.9)",3,"click"],["id","phase-descriptor",2,"margin-left","10px"],["mat-button","",3,"matMenuTriggerFor"],[2,"color","white"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"ngStyle"],["mat-button","","matTooltip","View current page on GitHub",3,"click"],["mat-button","","matTooltip","Synchronize with Github data",3,"click"],[1,"sync-spinner"],[2,"font-size","14px","margin-right","7px"],[1,"white-spinner",3,"diameter"],["mat-button","","matTooltip","Log out",3,"click"],[2,"margin-left","2px"]],template:function(e,t){1&e&&(Ko(0,"mat-toolbar",0),$o(1,cV,3,0,"button",1),Ko(2,"a",2),Fa(3),Jo(),$o(4,dV,2,1,"span",3),$o(5,mV,7,2,"div",4),Xo(6,"span",5),Ko(7,"button",6),la("click",function(){return t.exportLogFile()}),Ko(8,"mat-icon"),Fa(9,"receipt"),Jo(),Jo(),Ko(10,"button",7),la("click",function(){return t.openIssueTracker()}),Ko(11,"mat-icon"),Fa(12,"mail"),Jo(),Jo(),$o(13,fV,3,0,"button",8),$o(14,gV,4,0,"button",9),$o(15,_V,4,1,"div",10),$o(16,yV,4,1,"button",11),Jo()),2&e&&(fs(1),Zo("ngIf",t.isBackButtonShown()),fs(1),Zo("routerLink",t.phaseService.currentPhase),fs(1),qa("CATcher v",t.getVersion(),""),fs(1),Zo("ngIf",t.auth.isAuthenticated()),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.phaseService.sessionData.openPhases.length>1),fs(8),Zo("ngIf",t.auth.isAuthenticated()&&t.isOpenUrlButtonShown()),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&!t.isReloadButtonDisabled),fs(1),Zo("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&t.isReloadButtonDisabled),fs(1),Zo("ngIf",t.auth.isAuthenticated()))},directives:[SP,gd,yb,oD,BA,cL,mA,uA,md,sA,Sd,gI],encapsulation:2}),e})(),vV=(()=>{class e{constructor(e,t){this.errorHandlingService=t,this.NOT_CONNECTED_ERROR=new Error("You are not connected to the internet."),e.info("AppComponent: AppConfig",IP),e.info("AppComponent: Mode web")}ngAfterViewInit(){this.addListenerForNetworkOffline()}addListenerForNetworkOffline(){window.addEventListener("offline",e=>{this.errorHandlingService.handleError(this.NOT_CONNECTED_ERROR)},!1)}}return e.\u0275fac=function(t){return new(t||e)(Go(iY),Go(rY))},e.\u0275cmp=Ve({type:e,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"container"]],template:function(e,t){1&e&&(Xo(0,"app-layout-header"),Ko(1,"div",0),Xo(2,"router-outlet"),Jo())},directives:[bV,vb],styles:[".container[_ngcontent-%COMP%]{padding:30px;min-height:87.9vh}"]}),e})();var wV=(()=>(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(wV||(wV={})),wV))();let kV=(()=>{class e{constructor(e,t,i,n,r,s,o,a,l,u){this.router=e,this.ngZone=t,this.githubService=i,this.userService=n,this.issueService=r,this.phaseService=s,this.dataService=o,this.githubEventService=a,this.titleService=l,this.logger=u,this.authStateSource=new Gf(wV.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new Gf(void 0)}storeOAuthAccessToken(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}reset(){this.accessToken.next(void 0),this.changeAuthState(wV.NotAuthenticated),this.ngZone.run(()=>this.router.navigate([""]))}logOut(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}isAuthenticated(){return this.authStateSource.getValue()===wV.Authenticated}changeAuthState(e){if(e===wV.Authenticated){const e=`${Date.now()}-${NP()}`;this.issueService.setSessionId(e),this.logger.info(`MockAuthService: Successfully authenticated with session: ${e}`)}this.authStateSource.next(e)}setTitleWithPhaseDetail(){const e=i(4147),t=`${e.name} ${e.version} - ${this.phaseService.getPhaseDetail()}`;this.titleService.setTitle(t)}setLandingPageTitle(){const e=i(4147);this.titleService.setTitle(`${e.name} ${e.version}`)}startOAuthProcess(){this.accessToken.next("FabricatedToken")}navigateToLandingPage(){this.router.navigateByUrl(this.phaseService.currentPhase)}clearNext(){}getNext(){}storeNext(e){}}return e.\u0275fac=function(t){return new(t||e)(Tn(fb),Tn(cc),Tn(dY),Tn(fY),Tn(Tj),Tn(Sj),Tn(mY),Tn(Ej),Tn(gh),Tn(iY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function SV(e,t,i,n,r,s,o,a,l,u){return IP.test?new kV(e,t,i,n,r,s,o,a,l,u):(console.log(u),new Mj(e,t,i,n,r,s,o,a,l,u))}const TV=Object.assign({},Object.assign(Object.assign({},Object.assign(Object.assign({},LP),{version:OP.version,production:!1,test:!1,clientId:"0cbc5e651d8b01e36687",origin:"http://localhost:4200"})),{test:!0,role:"student",username:"CAT-Tester",team:"CS2103T-W12-3"})),{Octokit:EV}=i(60837);let xV="",MV="",CV="",DV="",LV=new EV,OV=(()=>{class e{constructor(){this.numIssuesCreated=0}storeOAuthAccessToken(e){LV=new EV({auth:()=>`Token ${e}`})}storeOrganizationDetails(e,t){MV=e,DV=t}storePhaseDetails(e,t){CV=t,xV=e}isRepositoryPresent(e,t){return _h(!0)}createIssue(e,t,i){const n=i.map(e=>new $P({name:e})),r={number:this.numIssuesCreated,title:e,body:t,labels:n};return this.numIssuesCreated++,_h(new WP(r))}fetchAllLabels(){return _h(bj.getRequiredLabelsAsArray(!0).map(e=>({name:e.labelCategory?`${e.labelCategory}.${e.labelValue}`:`${e.labelValue}`,color:`${e.labelColor}`})))}fetchEventsForRepo(){return _h([])}fetchDataFile(){return _h({data:`role,name,team\n${TV.role},${TV.username},${TV.team}\n`})}fetchLatestRelease(){const e=i(4147);return _h({html_url:`www.github.com/CATcher-org/releases/v${e.version}`,tag_name:`v${e.version}`})}fetchSettingsFile(){return _h({openPhases:[kY.phaseBugReporting,kY.phaseTeamResponse,kY.phaseTesterResponse,kY.phaseModeration],[kY.phaseBugReporting]:"undefined",[kY.phaseTeamResponse]:"undefined",[kY.phaseTesterResponse]:"undefined",[kY.phaseModeration]:"undefined"})}fetchAuthenticatedUser(){return _h({login:TV.username,name:TV.username})}getProfilesData(){const e=[{profileName:"CATcher",repoName:"CATcher-org/public_data"}],t={json:()=>Promise.resolve({profiles:e})};return Promise.resolve(t)}reset(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e})();function AV(e,t,i){return IP.test?new OV:new dY(e,t,i)}new hY({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:pY.Student},{loginId:"003-samuel",role:pY.Student},{loginId:"damithc",role:pY.Student},{loginId:"ptvrajsk",role:pY.Student}]}),new hY({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:pY.Student}]});const IV=(new Map([["CS2103T-W12-3",new hY({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:pY.Student},{loginId:"003-samuel",role:pY.Student},{loginId:"damithc",role:pY.Student},{loginId:"ptvrajsk",role:pY.Student}]})],["CS2103T-W12-4",new hY({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:pY.Student}]})]]),{body:"# Team's Response\n\n ## Duplicate status (if any):\n--",created_at:"2020-02-16T18:31:38Z",id:586737495,issue_url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/comments/586737495",user:{login:"testathorStudent",id:46639862,avatar_url:"https://avatars3.githubusercontent.com/u/46639862?v=4",url:"https://api.github.com/users/testathorStudent"}}),RV={body:"# Tutor Moderation\n\n## :question: Issue Type\n\n- [x] Done\n\ntest\n\n
\n## :question: Issue Severity\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
\n## :question: Not Related Question\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
\n",created_at:"2020-08-15T06:39:24Z",id:674357972,issue_url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/26",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/comments/674357972",user:{login:"testathorTutor",id:46640218,avatar_url:"https://avatars2.githubusercontent.com/u/46640218?v=4",url:"https://api.github.com/users/testathorTutor"}},PV={color:"9900cc",name:"type.FunctionalityBug",id:1226647550,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FunctionalityBug"},YV={id:1462485994,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FeatureFlaw",name:"type.FeatureFlaw",color:"d966ff"},FV={id:1226647431,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.DocumentationBug",name:"type.DocumentationBug",color:"d966ff"},jV={id:1226646828,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Low",name:"severity.Low",color:"ffcccc"},qV={id:1226646649,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.High",name:"severity.High",color:"ff6666"},NV={color:"ff9999",name:"severity.Medium",id:1226647149,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Medium"},HV={url:"https://api.github.com/repos/CATcher-org/pe-results/labels/tutorial.CS2103T-W12",name:"tutorial.CS2103T-W12",color:"c2e0c6",id:1226649736},UV={id:1226649835,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/team.3",name:"team.3",color:"d4c5f9"},zV={login:"anubh-v",avatar_url:"https://avatars1.githubusercontent.com/u/35621759?v=4",url:"https://api.github.com/users/anubh-v"},BV={login:"anubh-v",id:35621759,url:"https://api.github.com/users/anubh-v"},VV={login:"geshuming",avatar_url:"https://avatars0.githubusercontent.com/u/43642522?v=4",url:"https://api.github.com/users/geshuming"},$V={login:"geshuming",id:43642522,url:"https://api.github.com/users/geshuming"},WV="# Issue Description\n{original issue description}\n# Team's Response\n{team's response}\n # Disputes\n\n## :question: Issue Type\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n## :question: Issue Severity\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n## :question: Not Related Question\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
\n\n",GV=(new WP({id:"574085971",number:92,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"App starts to lag when given large amount of input",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/92",user:zV}),new WP({id:"384830567",number:130,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[UV,HV,YV,jV],state:rw.Open,title:"App is sometimes slow",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"573957398",number:32,assignees:[],comments:[],body:"",created_at:"2010-03-12T19:12:02Z",labels:[UV,HV,FV,qV],state:rw.Open,title:"Too many typos",updated_at:"2012-03-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"573957399",number:33,assignees:[],comments:[],body:"",created_at:"2010-04-12T19:12:02Z",labels:[UV,HV,FV,qV],state:rw.Open,title:"Too many typos 2",updated_at:"2012-04-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:zV}),new WP({id:"551732011",number:91,assignees:[BV,$V],body:"Screen freezes every few minutes",created_at:"2020-01-18T07:01:45Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"Screen freezes",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",user:zV,comments:[IV]}),()=>{const e=((e=new Date(2020,1,1),t=new Date)=>new Date(e.getTime()+Math.random()*(e.getTime()-t.getTime())).toISOString())(),t=Math.round(1e3*Math.random()),i=[jV,NV,qV],n=[PV,YV,FV];return new WP({id:Math.floor(1e9*Math.random()).toString(),number:t,assignees:[],comments:[],body:`Issue No.: ${t}\nSample Content.`,created_at:e,labels:[UV,HV,n[t%3],i[t%3]],state:rw.Open,title:`Random Issue: ${t}`,updated_at:e,url:`https://api.github.com/repos/CATcher-org/pe-results/issues/${t}`,user:zV})});new WP({id:"574674360",number:26,assignees:[$V],body:WV,created_at:"2020-03-03T13:38:32Z",labels:[UV,HV,PV,NV],state:rw.Open,title:"Basic Issue, Three Disputes, Unsure",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]}),new WP({id:"239538360",number:93,assignees:[$V],body:WV,created_at:"2020-10-14T10:28:32Z",labels:[UV,HV,YV,qV],state:rw.Open,title:"Redundant buggy feature",updated_at:"2020-11-25T13:19:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]}),new WP({id:"384756360",number:6,assignees:[$V],body:WV,created_at:"2020-03-26T09:08:12Z",labels:[UV,HV,FV,jV],state:rw.Open,title:"Documentation bug, too many typos",updated_at:"2020-11-10T16:59:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:VV,comments:[RV]});let ZV=(()=>{class e{constructor(e,t,i){this.githubService=e,this.phaseService=t,this.dataService=i,this.issueTeamFilter="All Teams",this.isLoading=new Gf(!1),this.issues$=new Gf(new Array)}startPollIssues(){void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=_h(this.reloadAllIssues()).subscribe(e=>this.isLoading.next(!1)))}stopPollIssues(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}pollIssue(e){return _h(this.issues[e])}reloadAllIssues(){return this.initializeData()}getIssue(e){return void 0===this.issues?this.getLatestIssue(e):_h(this.issues[e])}getLatestIssue(e){return this.githubService.fetchIssueGraphql(e).pipe(D(t=>(this.createAndSaveIssueModel(t),this.issues[e])),yg(t=>_h(this.issues[e])))}createIssue(e,t,i,n){const r=[this.createLabel("severity",i),this.createLabel("type",n)],s=new Map([["session",this.sessionId]]),o=vY.embedDataIntoString(t,s);return this.githubService.createIssue(e,o,r).pipe(D(e=>this.createIssueModel(e)))}updateIssue(e){const t=this.phaseService.currentPhase===kY.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),t).pipe(D(t=>(t.comments=e.githubComments,this.createIssueModel(t))))}updateIssueWithComment(e,t){return this.githubService.updateIssueComment(t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}updateTesterResponse(e,t){const i=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),n=e.clone(this.phaseService.currentPhase);return n.status=rj.Done,fw([i,this.updateIssue(n)]).pipe(D(e=>{const[t,i]=e;return i.updateTesterResponse(t),i}))}updateTutorResponse(e,t){return fw([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createTeamResponse(e){const t=e.createGithubTeamResponse();return this.githubService.createIssueComment(e.id,t).pipe(U(t=>(e.githubComments=[t,...e.githubComments.filter(e=>e.id!==t.id)],this.updateIssue(e))))}createTutorResponse(e,t){return fw([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(D(e=>{const[t,i]=e;return i.updateDispute(t),i}))}createGithubIssueDescription(e){return this.phaseService.currentPhase===kY.phaseModeration?`# Issue Description\n${e.createGithubIssueDescription()}\n# Team's Response\n${e.teamResponse}\n # Disputes\n\n${this.getIssueDisputeString(e.issueDisputes)}\n`:e.createGithubIssueDescription()}getIssueDisputeString(e){let t="";for(const i of e)t+=i.toString();return t}deleteIssue(e){return this.githubService.closeIssue(e).pipe(D(e=>{const t=this.createIssueModel(e);return this.deleteFromLocalStore(t),t}))}deleteFromLocalStore(e){const t=e.id,i=(0,HP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=i,this.issues$.next(Object.values(this.issues))}updateLocalStore(e){this.issues=Object.assign(Object.assign({},this.issues),{[e.id]:e}),this.issues$.next(Object.values(this.issues))}hasTeamResponse(e){return!!this.issues[e].teamResponse}getDuplicateIssuesFor(e){return this.issues$.pipe(D(t=>t.filter(t=>t.duplicateOf===e.id)))}reset(){this.issues=void 0,this.sessionId=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new Gf(!1)}initializeData(){if(null!=this.issues)return _h(Object.values(this.issues));const e=[];if(this.phaseService.currentPhase===kY.phaseBugReporting)for(let t=0;t<10;t++)e.push(GV());for(const t of e)this.createAndSaveIssueModel(t);return _h(Object.values(this.issues))}createAndSaveIssueModel(e){const t=this.createIssueModel(e);return this.updateLocalStore(t),!0}createLabelsForIssue(e){const t=[];if(this.phaseService.currentPhase!==kY.phaseBugReporting&&this.phaseService.currentPhase!==kY.phaseTesterResponse){const i=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial",`${i[0]}-${i[1]}`),this.createLabel("team",i[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}createLabel(e,t){return`${e}.${t}`}extractTeamIdFromGithubIssue(e){return e.findLabel($P.LABELS.tutorial).concat("-").concat(e.findLabel($P.LABELS.team))}createIssueModel(e){switch(this.phaseService.currentPhase){case kY.phaseBugReporting:return tj.createPhaseBugReportingIssue(e);case kY.phaseTeamResponse:return tj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));case kY.phaseTesterResponse:return tj.createPhaseTesterResponseIssue(e);case kY.phaseModeration:return tj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));default:return}}setIssueTeamFilter(e){e&&(this.issueTeamFilter=e)}setSessionId(e){this.sessionId=e}getIssueTeamFilter(){return this.issueTeamFilter}}return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)(Tn(dY),Tn(Sj),Tn(mY))},e.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function QV(e,t,i,n,r){return IP.test?new ZV(e,i,n):new Tj(e,t,i,n,r)}function KV(){const e=new zv,t=e.link;return e.link=(i,n,r)=>t.call(e,i,n,r).replace(/^
e?' ':' ',{renderer:e,gfm:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!1}}var JV=i(94989),XV=i(66795),e$=i.n(XV),t$=function(){function e(e){var t=e.batchInterval,i=e.batchMax,n=e.batchHandler,r=e.batchKey;this.queuedRequests=new Map,this.batchInterval=t,this.batchMax=i||0,this.batchHandler=n,this.batchKey=r||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,i=(0,Nb.pi)({},e),n=!1,r=this.batchKey(e.operation);return i.observable||(i.observable=new Ub.y$(function(e){t.queuedRequests.has(r)||t.queuedRequests.set(r,[]),n||(t.queuedRequests.get(r).push(i),n=!0),i.next=i.next||[],e.next&&i.next.push(e.next.bind(e)),i.error=i.error||[],e.error&&i.error.push(e.error.bind(e)),i.complete=i.complete||[],e.complete&&i.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(r).length&&t.scheduleQueueConsumption(r),t.queuedRequests.get(r).length===t.batchMax&&t.consumeQueue(r)})),i.observable},e.prototype.consumeQueue=function(e){var t=e||"",i=this.queuedRequests.get(t);if(i){this.queuedRequests.delete(t);var n=i.map(function(e){return e.operation}),r=i.map(function(e){return e.forward}),s=[],o=[],a=[],l=[];i.forEach(function(e,t){s.push(e.observable),o.push(e.next),a.push(e.error),l.push(e.complete)});var u=this.batchHandler(n,r)||Ub.y$.of(),c=function(e){a.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return u.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+o.length);return t.result=e,c(t)}e.forEach(function(e,t){o[t]&&o[t].forEach(function(t){return t(e)})})},error:c,complete:function(){l.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),s}},e.prototype.scheduleQueueConsumption=function(e){var t=this,i=e||"";setTimeout(function(){t.queuedRequests.get(i)&&t.queuedRequests.get(i).length&&t.consumeQueue(i)},this.batchInterval)},e}();!function(e){function t(t){var i=e.call(this)||this,n=t||{},r=n.batchInterval,s=n.batchMax,o=n.batchHandler,a=n.batchKey;return i.batcher=new t$({batchInterval:void 0===r?10:r,batchMax:void 0===s?0:s,batchHandler:void 0===o?function(){return null}:o,batchKey:void 0===a?function(){return""}:a}),t.batchHandler.length<=1&&(i.request=function(e){return i.batcher.enqueueRequest({operation:e})}),i}(0,Nb.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})}}(Hb.i0);class i$ extends qb.ApolloLink{constructor(e,t){super(),this.httpClient=e,this.options=t,this.print=JV.S,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=e=>new qb.y$(t=>{const i=e.getContext(),n=(e,t)=>function(...e){const t=e.find(e=>void 0!==e);return void 0===t?e[e.length-1]:t}(i[e],this.options[e],t),r=n("includeQuery",!0),s=n("includeExtensions",!1),o=n("method","POST"),a=n("uri","graphql"),l=n("withCredentials"),u=n("useMultipart"),c={method:o,url:"function"==typeof a?a(e):a,body:{operationName:e.operationName,variables:e.variables},options:{withCredentials:l,useMultipart:u,headers:this.options.headers}};s&&(c.body.extensions=e.extensions),r&&(c.body.query=this.print(e.query));const d=function(e){let t=e.headers&&e.headers instanceof Th?e.headers:new Th(e.headers);if(e.clientAwareness){const{name:i,version:n}=e.clientAwareness;i&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",i)),n&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",n))}return t}(i);c.options.headers=((e,t)=>e&&t?t.keys().reduce((e,i)=>e.set(i,t.getAll(i)),e):t||e)(c.options.headers,d);const h=((e,t,i)=>{const n=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),r=e.body.length;let s,o=e.options&&e.options.useMultipart;if(o){if(r)return new w(e=>e.error(new Error("File upload is not available when combined with Batching")));if(!n)return new w(e=>e.error(new Error("File upload is not available when GET is used")));s=i(e.body),o=!!s.files.size}let a={};if(r){if(!n)return new w(e=>e.error(new Error("Batching is not available for GET requests")));a={body:e.body}}else{const t=o?s.clone:e.body;a=n?{body:t}:{params:Object.keys(e.body).reduce((t,i)=>{const n=e.body[i];return t[i]=(e=>-1!==["variables","extensions"].indexOf(e.toLowerCase()))(i)?JSON.stringify(n):n,t},{})}}if(o&&n){const e=new FormData;e.append("operations",JSON.stringify(a.body));const t={},i=s.files;let n=0;i.forEach(e=>{t[++n]=e}),e.append("map",JSON.stringify(t)),n=0,i.forEach((t,i)=>{e.append(++n+"",i,i.name)}),a.body=e}return t.request(e.method,e.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},a),e.options))})(c,this.httpClient,e$()).subscribe({next:i=>{e.setContext({response:i}),t.next(i.body)},error:e=>t.error(e),complete:()=>t.complete()});return()=>{h.closed||h.unsubscribe()}})}request(e){return this.requester(e)}}let n$=(()=>{class e{constructor(e){this.httpClient=e}create(e){return new i$(this.httpClient,e)}}return e.\u0275fac=function(t){return new(t||e)(Tn(Uh))},e.\u0275prov=fe({factory:function(){return new e(Tn(Uh))},token:e,providedIn:"root"}),e})(),r$=(()=>{class e{constructor(e,t,i,n,r){this.apollo=e,this.httpLink=t,this.authService=i,this.router=n,this.errorHandlingService=r;const s=zb(()=>({headers:{Accept:"charset=utf-8"}})),o=zb(()=>({headers:{Authorization:`Token ${this.authService.accessToken.getValue()}`}})),a=qb.ApolloLink.from([s,o,this.httpLink.create({uri:"https://api.github.com/graphql"})]),l=new qb.h4({possibleTypes:mw.possibleTypes});this.apollo.create({link:a,cache:l}),this.router.events.subscribe(e=>{e instanceof Hg&&this.errorHandlingService.clearError()})}}return e.\u0275fac=function(t){return new(t||e)(Tn(dv),Tn(n$),Tn(Mj),Tn(fb),Tn(rY))},e.\u0275mod=Ze({type:e,bootstrap:[vV]}),e.\u0275inj=ge({providers:[{provide:dY,useFactory:AV,deps:[rY,dv,iY]},{provide:Mj,useFactory:SV,deps:[fb,cc,dY,fY,Tj,Sj,mY,Ej,gh,iY]},{provide:Tj,useFactory:QV,deps:[dY,fY,Sj,mY,iY]},{provide:Xr,useClass:rY}],imports:[[mh,aV,Wf,Vj,jB,XB,BB,DP,tp,iw.forRoot({markedOptions:{provide:Jv,useFactory:KV}}),uV]]}),e})();IP.production&&function(){if(kc)throw new Error("Cannot enable prod mode after platform setup.");wc=!1}(),hh().bootstrapModule(r$,{preserveWhitespaces:!1}).catch(e=>console.error(e))},57834:function(e,t,i){"use strict";const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,s="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||"undefined"!=typeof global&&global||r||s,a=function(e,...t){if(a.translate){const i=a.translate(e,t);e=i[0],t=i[1]}let i=l(e[0],e.raw[0]);for(let n=1;n0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]{const n=Uint8Array.from({length:t},(t,n)=>i.getUint8(e+n));return s.decode(n)},a=(e,t)=>{const i=t.getUint8(e);return(128&i)>>7==0?1:(224&i)>>5==6?2:(240&i)>>4==14?3:(240&i)>>4==15?4:1},l=(e,t,i)=>{const n=Uint8Array.from({length:t},(t,n)=>i.getUint8(e+n));return s.decode(n)},u=e=>{let t,i=0,n=0;for(;n>=8,n++;i++}return i};var c=(()=>{return(e=c||(c={})).STRING="string",e.ARRAY_BUFFER="arrayBuffer",e.TYPED_ARRAY="typedArray",e.DATA_VIEW="dataView",c;var e})();const d=(e,t=null)=>{let i,n;if("string"==typeof e){const t=r.encode(e);i=new DataView(t.buffer),n=c.STRING}else if(e instanceof ArrayBuffer)i=new DataView(e),n=c.ARRAY_BUFFER;else if((e=>e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array)(e))i=new DataView(e.buffer),n=c.TYPED_ARRAY;else{if(!(e instanceof DataView))throw new Error("Cannot process input. Must be a string, ArrayBuffer, TypedArray, or DataView. but got "+typeof e);i=e,n=c.DATA_VIEW}return{dataView:i,inputType:n,isError:!1,error:null,result:null,data:t,index:0}},h=(e,t)=>ra(qr({},e),{isError:!0,error:t}),p=(e,t)=>ra(qr({},e),{result:t}),m=(e,t)=>ra(qr({},e),{data:t}),f=(e,t,i)=>ra(qr({},e),{result:t,index:i});class g{constructor(e){this.p=e}run(e){const t=d(e),i=this.p(t);return i.isError?{isError:!0,error:i.error,index:i.index,data:i.data}:{isError:!1,result:i.result,index:i.index,data:i.data}}fork(e,t,i){const n=d(e),r=this.p(n);return r.isError?t(r.error,r):i(r.result,r)}map(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?n:p(n,e(n.result))})}chain(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?n:e(n.result).p(n)})}ap(e){const t=this.p;return new g(function(i){if(i.isError)return i;const n=t(i);if(n.isError)return n;const r=e.p(n);return r.isError?r:p(r,r.result(n.result))})}errorMap(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError?h(n,e({isError:!0,error:n.error,index:n.index,data:n.data})):n})}errorChain(e){const t=this.p;return new g(function(i){const n=t(i);if(n.isError){const{error:t,index:i,data:r}=n;return e({isError:!0,error:t,index:i,data:r}).p(ra(qr({},n),{isError:!1}))}return n})}mapFromData(e){const t=this.p;return new g(i=>{const n=t(i);return n.isError&&n.error?n:p(n,e({isError:!1,result:n.result,data:n.data,index:n.index}))})}chainFromData(e){const t=this.p;return new g(function(i){const n=t(i);return n.isError&&n.error?n:e({result:n.result,data:n.data}).p(n)})}mapData(e){const t=this.p;return new g(function(i){const n=t(i);return m(n,e(n.data))})}static of(e){return new g(t=>p(t,e))}}const _=/[0-9]/,y=/[a-zA-Z]/,b=/ParseError.+Expecting/,v=new g(function(e){return e.isError?e:p(e,e.data)});function w(e){return new g(function(t){return t.isError?t:m(t,e)})}function k(e){return new g(function(t){return t.isError?t:m(t,e(t.data))})}function S(e){return function(t){return w(t).chain(()=>e)}}function T(e){return new g(function(t){let i=t;for(const n of e)i=n.p(i);return i})}function E(e){return new g(function(t){return T([...e].reverse()).p(t)})}function x(e){return new g(function(t){return e(t),t})}function M(e){return function(t){return e.run(t)}}function C(e){return new g(function(t){return t.isError?t:e(t.result).p(t)})}function D(e){return new g(function(t){return t.isError?t:h(t,e)})}const L=g.of;function O(e){return new g(function(t){if(t.isError)return t;const i=e.p(t);return p(ra(qr({},i),{isError:!1}),{isError:i.isError,value:i.isError?i.error:i.result})})}function A(e){return new g(function(t){const i=e();let n,r=t;for(;;){const e=i.next(n),t=e.value;if(e.done)return p(r,t);if(!(t&&t instanceof g))throw new Error(`[coroutine] yielded values must be Parsers, got ${e.value}.`);if(r=t.p(r),r.isError)return r;n=r.result}})}function I(e){if("number"!=typeof e||e<=0)throw new TypeError(`exactly must be called with a number > 0, but got ${e}`);return function(t){return new g(function(i){if(i.isError)return i;const n=[];let r=i;for(let s=0;s`ParseError (position ${t}): Expecting ${e}${i.replace(b,"")}`)}}const R=function(e){return new g(function(t){if(t.isError)return t;const i=[];let n=t;for(;;){const t=e.p(n);if(t.isError)break;if(n=t,i.push(n.result),n.index>=n.dataView.byteLength)break}return p(n,i)})},P=function(e){return new g(function(t){if(t.isError)return t;const i=R(e).p(t);return i.result.length?i:h(t,`ParseError 'many1' (position ${t.index}): Expecting to match at least one value`)})};function Y(e){return new g(function(t){return t.isError?t:p(t,e(t.result))})}function F(e){return new g(function(t){return t.isError?h(t,e(t.error,t.index,t.data)):t})}const j=function(e){if(!e||1!==u(e))throw new TypeError(`char must be called with a single character, but got ${e}`);return new g(function(t){if(t.isError)return t;const{index:i,dataView:n}=t;if(i 1, but got ${e}`);const t=r.encode(e);return new g(function(i){const{index:n,dataView:s}=i;if(s.byteLength-n=1){const i=s.match(e);return i?f(t,i[0],n+r.encode(i[0]).byteLength):h(t,`ParseError (position ${n}): Expecting string matching '${e}', got '${s.slice(0,5)}...'`)}return h(t,`ParseError (position ${n}): Expecting string matching '${e}', but got end of input.`)})}const z=new g(function(e){if(e.isError)return e;const{dataView:t,index:i}=e;if(t.byteLength>i){const n=a(i,t);if(i+n<=t.byteLength){const r=l(i,n,t);return t.byteLength&&r&&_.test(r)?f(e,r,i+n):h(e,`ParseError (position ${i}): Expecting digit, got '${r}'`)}}return h(e,`ParseError (position ${i}): Expecting digit, but got end of input.`)}),B=U(/^[0-9]+/).errorMap(({index:e})=>`ParseError (position ${e}): Expecting digits`),V=new g(function(e){if(e.isError)return e;const{index:t,dataView:i}=e;if(i.byteLength>t){const n=a(t,i);if(t+n<=i.byteLength){const r=l(t,n,i);return i.byteLength&&r&&y.test(r)?f(e,r,t+n):h(e,`ParseError (position ${t}): Expecting letter, got '${r}'`)}}return h(e,`ParseError (position ${t}): Expecting letter, but got end of input.`)}),$=U(/^[a-zA-Z]+/).errorMap(({index:e})=>`ParseError (position ${e}): Expecting letters`);function W(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t;if(i.byteLength>n){const r=a(n,i);if(n+r<=i.byteLength){const s=l(n,r,i);return e.includes(s)?f(t,s,n+r):h(t,`ParseError (position ${n}): Expecting any of the string "${e}", got ${s}`)}}return h(t,`ParseError (position ${n}): Expecting any of the string "${e}", but got end of input.`)})}function G(e){return new g(function(t){if(t.isError)return t;const i={};let n=t;for(const[r,s]of e){const e=s.p(n);if(e.isError)return e;n=e,i[r]=e.result}return p(n,i)})}function Z(e){return new g(function(t){if(t.isError)return t;const i=e.length,n=new Array(i);let r=t;for(let s=0;si.index)&&(i=e)}return i})}function X(e){return function(t){return function(i){return Z([e,i,t]).map(([e,t])=>t)}}}function ee(e){return new g(t=>{if(t.isError)return t;const i=[];let n=t;for(;e.p(n).isError;){const{index:e,dataView:t}=n;if(t.byteLength<=e)return h(n,`ParseError 'everythingUntil' (position ${n.index}): Unexpected end of input.`);const r=t.getUint8(e);r&&(i.push(r),n=f(n,r,e+1))}return p(n,i)})}const te=e=>ee(e).map(e=>s.decode(Uint8Array.from(e))),ie=function(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t,r=e.p(t);return r.isError?f(t,i.getUint8(n),n+1):h(t,`ParseError 'anythingExcept' (position ${n}): Matched '${r.result}' from the exception parser`)})},ne=function(e){return new g(function(t){if(t.isError)return t;const{dataView:i,index:n}=t,r=e.p(t);if(r.isError){if(n0?h(e,`ParseError 'startOfInput' (position ${t}): Expected start of input'`):e}),le=new g(function(e){if(e.isError)return e;const{dataView:t,index:i,inputType:n}=e;if(i!==t.byteLength){const r=n===c.STRING?String.fromCharCode(t.getUint8(i)):`0x${t.getUint8(i).toString(16).padStart(2,"0")}`;return h(e,`ParseError 'endOfInput' (position ${i}): Expected end of input but got '${r}'`)}return p(e,null)}),ue=U(/^\s+/).errorMap(({index:e})=>`ParseError 'many1' (position ${e}): Expecting to match at least one value`),ce=se(ue).map(e=>e||"");function de(e){return new g(function(t){return e().p(t)})}function he(e){return function(t){return e.chain(()=>t)}}const pe=function(e){return function(t){return e.chain(e=>t.map(()=>e))}};function me(e){return!0===e.isError?Promise.reject({error:e.error,index:e.index,data:e.data}):Promise.resolve(e.result)}function fe(e){if(!0===e.isError){const t=new Error(String(e.error)||"null");throw t.parseIndex=e.index,t.data=e.data,t}return e.result}},30744:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(5202);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return o(e,[])}function o(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var i=[].concat(t,[e]),r=function(e){var t=e[String(n.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var s=r.call(e);if(s!==e)return"string"==typeof s?s:o(s,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var i=Math.min(10,e.length),n=e.length-i,r=[],s=0;s1&&r.push("... ".concat(n," more items")),"["+r.join(", ")+"]"}(e,i);return function(e,t){var i=Object.keys(e);if(0===i.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var i=e.constructor.name;if("string"==typeof i&&""!==i)return i}return t}(e)+"]";var n=i.map(function(i){return i+": "+o(e[i],t)});return"{ "+n.join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}},5202:function(e,t){"use strict";var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=i},10290:function(e,t,i){"use strict";i.d(t,{Ye:function(){return s},WU:function(){return o},UG:function(){return a}});var n=i(5202);function r(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,n.Z&&(e.prototype[n.Z]=t)}var s=function(){function e(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();r(s);var o=function(){function e(e,t,i,n,r,s,o){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=o,this.prev=s,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}r(o)},12032:function(e,t,i){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),i=function(e){for(var t,i=!0,n=!0,r=0,s=null,o=0;os&&r(t[o-1]);)--o;return t.slice(s,o).join("\n")}function r(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],s='"'===e[e.length-1],o="\\"===e[e.length-1],a=!n||s||o||i,l="";return a&&!(n&&r)&&(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,a&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}i.d(t,{W7:function(){return n},LZ:function(){return s}})},94989:function(e,t,i){"use strict";i.d(t,{S:function(){return s}});var n=i(61335),r=i(12032);function s(e){return(0,n.Vn)(e,{leave:o})}var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,i=e.name,n=c("(",l(e.variableDefinitions,", "),")"),r=l(e.directives," "),s=e.selectionSet;return i||r||n||"query"!==t?l([t,l([i,n]),r,s]," "):s},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+c(" = ",e.defaultValue)+c(" ",l(t," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.name,i=e.arguments,n=e.directives,r=e.selectionSet,s=c("",e.alias,": ")+t,o=s+c("(",l(i,", "),")");return o.length>80&&(o=s+c("(\n",d(l(i,"\n")),"\n)")),l([o,l(n," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.directives,i=e.selectionSet;return l(["...",c("on ",e.typeCondition),l(t," "),i]," ")},FragmentDefinition:function(e){var t=e.typeCondition,i=e.variableDefinitions,n=e.directives,r=e.selectionSet;return"fragment ".concat(e.name).concat(c("(",l(i,", "),")")," ")+"on ".concat(t," ").concat(c("",l(n," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var i=e.value;return e.block?(0,r.LZ)(i,"description"===t?"":" "):JSON.stringify(i)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a(function(e){var t=e.operationTypes;return l(["schema",l(e.directives," "),u(t)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return l(["scalar",e.name,l(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.directives,i=e.fields;return l(["type",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")}),FieldDefinition:a(function(e){var t=e.arguments,i=e.type,n=e.directives;return e.name+(p(t)?c("(\n",d(l(t,"\n")),"\n)"):c("(",l(t,", "),")"))+": "+i+c(" ",l(n," "))}),InputValueDefinition:a(function(e){var t=e.directives;return l([e.name+": "+e.type,c("= ",e.defaultValue),l(t," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.directives,i=e.fields;return l(["interface",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")}),UnionTypeDefinition:a(function(e){var t=e.types;return l(["union",e.name,l(e.directives," "),t&&0!==t.length?"= "+l(t," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.values;return l(["enum",e.name,l(e.directives," "),u(t)]," ")}),EnumValueDefinition:a(function(e){return l([e.name,l(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.fields;return l(["input",e.name,l(e.directives," "),u(t)]," ")}),DirectiveDefinition:a(function(e){var t=e.arguments,i=e.repeatable,n=e.locations;return"directive @"+e.name+(p(t)?c("(\n",d(l(t,"\n")),"\n)"):c("(",l(t,", "),")"))+(i?" repeatable":"")+" on "+l(n," | ")}),SchemaExtension:function(e){var t=e.operationTypes;return l(["extend schema",l(e.directives," "),u(t)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,i=e.fields;return l(["extend type",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.directives,i=e.fields;return l(["extend interface",e.name,c("implements ",l(e.interfaces," & ")),l(t," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.types;return l(["extend union",e.name,l(e.directives," "),t&&0!==t.length?"= "+l(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return l(["extend enum",e.name,l(e.directives," "),u(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return l(["extend input",e.name,l(e.directives," "),u(t)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(i))&&void 0!==t?t:""}function u(e){return c("{\n",d(l(e,"\n")),"\n}")}function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+i:""}function d(e){return c(" ",e.replace(/\n/g,"\n "))}function h(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(h)}},61335:function(e,t,i){"use strict";i.d(t,{$_:function(){return o},Vn:function(){return a}});var n=i(30744),r=i(10290),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,a=void 0,u=Array.isArray(e),c=[e],d=-1,h=[],p=void 0,m=void 0,f=void 0,g=[],_=[],y=e;do{var b=++d===c.length,v=b&&0!==h.length;if(b){if(m=0===_.length?void 0:g[g.length-1],p=f,f=_.pop(),v){if(u)p=p.slice();else{for(var w={},k=0,S=Object.keys(p);k dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.2"}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"CATcher","version":"3.5.3","main":"main.js","engines":{"node":">=14.0.0"},"scripts":{"ng":"ng","build:staging":"npm run codegen:gql && ng build --c staging --base-href=https://catcher-org.github.io/CATcher-staging/","build:prod:web":"npm run codegen:gql && ng build --configuration production --base-href=https://CATcher-org.github.io/CATcher/","ng:serve":"npm run codegen:gql && ng serve","ng:serve:web":"npm run ng:serve -- -o","deploy:staging":"npm run build:staging && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","ng:serve:test":"npm run ng:serve -- --configuration=test -o","deploy:web":"npm run build:prod:web && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","test":"npm run codegen:gql && ng test","e2e":"npx playwright test --headed --project=chromium --workers=1","lint":"ng lint","lint:fix":"ng lint --fix","codegen:gql":"graphql-codegen --config codegen.yml","codegen:gql-watch":"graphql-codegen --config -w codegen.yml","pretty-quick":"pretty-quick"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","pre-push":"npm run lint && npm run test"}},"dependencies":{"@angular/animations":"^12.2.17","@angular/cdk":"^12.2.13","@angular/common":"^12.2.17","@angular/compiler":"^12.2.17","@angular/core":"^12.2.17","@angular/forms":"^12.2.17","@angular/localize":"^12.2.17","@angular/material":"^12.2.13","@angular/platform-browser":"^12.2.17","@angular/platform-browser-dynamic":"^12.2.17","@angular/router":"^12.2.17","@apollo/client":"3.3.0","@github/markdown-toolbar-element":"^2.1.1","@octokit/rest":"^16.37.0","ajv":"^6.11.0","apollo-angular":"^2.6.0","arcsecond":"^4.1.0","core-js":"^3.16.4","diff-match-patch":"^1.0.4","graphql":"^15.0.0","karma-spec-reporter":"0.0.32","moment":"^2.24.0","ngx-markdown":"^12.0.1","ngx-mat-select-search":"^3.3.3","rxjs":"6.6.7","tslib":"^2.0.0","uuid":"7.0.3","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"~12.2.18","@angular-eslint/builder":"12.7.0","@angular-eslint/eslint-plugin":"12.7.0","@angular-eslint/eslint-plugin-template":"12.7.0","@angular-eslint/schematics":"12.7.0","@angular-eslint/template-parser":"12.7.0","@angular/cli":"^12.2.18","@angular/compiler-cli":"^12.2.17","@angular/language-service":"^12.2.17","@graphql-codegen/cli":"2.16.4","@graphql-codegen/fragment-matcher":"^1.17.7","@graphql-codegen/typescript":"1.17.7","@graphql-codegen/typescript-document-nodes":"1.17.7","@graphql-codegen/typescript-operations":"^1.18.4","@graphql-codegen/typescript-resolvers":"^1.20.0","@octokit/graphql-schema":"^8.24.0","@playwright/test":"~1.33","@types/dompurify":"^2.3.1","@types/jasmine":"^3.8.2","@types/jasminewd2":"2.0.8","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"4.28.2","@typescript-eslint/parser":"4.28.2","angular-cli-ghpages":"^1.0.0-rc.2","eslint":"^7.26.0","husky":"^4.2.5","jasmine":"^3.9.0","jasmine-core":"~3.8.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.4.2","karma-chrome-launcher":"^3.1.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-firefox-launcher":"^2.1.1","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.1.5","prettier":"2.2.1","pretty-quick":"^3.1.1","scuri":"^0.9.4","ts-node":"^10.9.2","tslint-config-prettier":"^1.18.0","typescript":"4.3.5"}}')}},function(e){e(e.s=69200)}]); \ No newline at end of file diff --git a/main-es5.ada3e3b6e5103add2e80.js b/main-es5.64e86305e70a00ce6e50.js similarity index 97% rename from main-es5.ada3e3b6e5103add2e80.js rename to main-es5.64e86305e70a00ce6e50.js index d00dbc8..5b2a21f 100644 --- a/main-es5.ada3e3b6e5103add2e80.js +++ b/main-es5.64e86305e70a00ce6e50.js @@ -1 +1 @@ -!function(){var e,t,n,i,r,s,a,o,u,l;function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function d(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=p(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},h.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}function f(e,t){for(var n=0;n=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=L(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function L(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),d=new u;function h(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var p=[];function f(e,t){if(!e)throw new Error(t||"assertion failure")}function m(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var g=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return this.value[0]},e.prototype.recompute=function(e){return f(!this.recomputing,"already recomputing"),function(e){var t=d.getValue();t&&(e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?k(t,e):w(t,e))}(this),y(this)?function(e,t){return E(e),d.withValue(e,v,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{h(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!y(e)&&b(e)}(e),m(e.value)}(this,e):m(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,_(this),E(this),h(this))},e.prototype.dispose=function(){var e=this;E(this),h(this),this.parents.forEach(function(t){t.setDirty(),T(t,e)})},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=p.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach(function(t){return t.delete(e)}),this.deps.clear(),p.push(this.deps),this.deps=null)},e.count=0,e}();function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function y(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function _(e){e.parents.forEach(function(t){return k(t,e)})}function b(e){e.parents.forEach(function(t){return w(t,e)})}function k(e,t){if(f(e.childValues.has(t)),f(y(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=p.pop()||new Set;e.dirtyChildren.add(t),_(e)}function w(e,t){f(e.childValues.has(t)),f(!y(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),S(e,t),!y(e)&&b(e)}function S(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(p.length<100&&p.push(n),e.dirtyChildren=null))}function E(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){T(e,n)}),e.forgetDeps(),f(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),S(e,t)}var D=function(){return Object.create(null)},x=Array.prototype,C=x.forEach,M=x.slice,L=function(){function e(e,t){void 0===t&&(t=D),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(i){U.call(n,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete n[i])});var i=Object.keys(n);if(i.length){for(var r=this;r instanceof ne;)r=r.parent;i.forEach(function(e){return r.delete(e)})}return i},e.prototype.findChildRefIds=function(e){if(!U.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),i=function(e){return null!==e&&"object"==typeof e};n.forEach(function(e){(0,Y.hh)(e)?t[e.__ref]=!0:i(e)&&Object.values(e).filter(i).forEach(n.add,n)})}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(c&&!o)throw l.missing[0];return{result:l.result,missing:l.missing,complete:!c}},e.prototype.isFresh=function(e,t,n,i){if(re(i.store)&&this.knownResults.get(e)===n){var r=this.executeSelectionSet.peek(n,t,i);if(r&&e===r.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,i=e.objectOrReference,r=e.context;if((0,Y.hh)(i)&&!r.policies.rootTypenamesById[i.__ref]&&!r.store.has(i.__ref))return{result:{},missing:[se(new H.ej(4),r)]};var s=r.variables,a=r.policies,o=[],u={result:null},l=r.store.getFieldValue(i,"__typename");function c(){return u.missing||(u.missing=[])}function d(e){var t;return e.missing&&(t=c()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof l&&!a.rootIdsByTypename[l]&&o.push({__typename:l});var h=new Set(n.selections);return h.forEach(function(e){var n;if((0,Y.LZ)(e,s))if((0,Y.My)(e)){var u=a.readField({fieldName:e.name.value,field:e,variables:r.variables,from:i},r),p=(0,Y.u2)(e);r.path.push(p);var f=r.clientOnly;r.clientOnly=f||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0===u?Y.Gw.added(e)||c().push(se(new H.ej(5),r)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,context:r})):e.selectionSet&&null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,context:r}))),void 0!==u&&o.push(((n={})[p]=u,n)),r.clientOnly=f,(0,H.kG)(r.path.pop()===p)}else{var m=(0,Y.hi)(e,r.fragmentMap);m&&a.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(h.add,h)}}),u.result=(0,Y.bw)(o),this.knownResults.set(u.result,n),u},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,i=e.field,r=e.array,s=e.context;function a(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,H.kG)(s.path.pop()===n),e.result}return i.selectionSet&&(r=r.filter(s.store.canRead)),{result:r=r.map(function(e,t){return null===e?null:(s.path.push(t),Array.isArray(e)?a(n.executeSubSelectedArray({field:i,array:e,context:s}),t):i.selectionSet?a(n.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,context:s}),t):((0,H.kG)(s.path.pop()===t),e))}),missing:t}},e}(),oe=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,n=e.result,i=e.dataId,r=e.store,s=e.variables,a=(0,Y.$H)(t),o=new Y.w0;s=(0,N.pi)((0,N.pi)({},(0,Y.O4)(a)),s);var u=this.processSelectionSet({result:n||Object.create(null),dataId:i,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:{store:r,written:Object.create(null),merge:function(e,t){return o.merge(e,t)},variables:s,varString:JSON.stringify(s),fragmentMap:(0,Y.F)((0,Y.kU)(t))}});if(!(0,Y.hh)(u))throw new H.ej(7);return r.retain(u.__ref),u},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,i=e.result,r=e.selectionSet,s=e.context,a=e.mergeTree,o=this.cache.policies,u=o.identify(i,r,s.fragmentMap),l=u[1];if("string"==typeof(n=n||u[0])){var c=s.written[n]||(s.written[n]=[]),d=(0,Y.kQ)(n);if(c.indexOf(r)>=0||(c.push(r),this.reader&&this.reader.isFresh(i,d,r,s)))return d}var h=Object.create(null);l&&(h=s.merge(h,l));var p=n&&o.rootTypenamesById[n]||(0,Y.qw)(i,r,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof p&&(h.__typename=p);var f=new Set(r.selections);if(f.forEach(function(e){var n;if((0,Y.LZ)(e,s.variables))if((0,Y.My)(e)){var r=(0,Y.u2)(e),u=i[r];if(void 0!==u){var l=o.getStoreFieldName({typename:p,fieldName:e.name.value,field:e,variables:s.variables}),c=le(a,l),d=t.processFieldValue(u,e,s,c),m=e.selectionSet&&s.store.getFieldValue(d,"__typename")||void 0,g=o.getMergeFunction(p,e.name.value,m);g?c.info={field:e,typename:p,merge:g}:ce(a,l),h=s.merge(h,((n={})[l]=d,n))}else if(o.usingPossibleTypes&&!(0,Y.FS)(["defer","client"],e))throw new H.ej(8)}else{var v=(0,Y.hi)(e,s.fragmentMap);v&&o.fragmentMatches(v,p,i,s.variables)&&v.selectionSet.selections.forEach(f.add,f)}}),"string"==typeof n){var m=(0,Y.kQ)(n);return a.map.size&&(h=this.applyMerges(a,m,h,s)),s.store.merge(n,h),m}return h},e.prototype.processFieldValue=function(e,t,n,i){var r=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,s){var a=r.processFieldValue(e,t,n,le(i,s));return ce(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i}):e},e.prototype.applyMerges=function(e,t,n,i,r){var s,a=this;if(e.map.size&&!(0,Y.hh)(n)){var o=Array.isArray(n)||!(0,Y.hh)(t)&&!W(t)?void 0:t,u=n;o&&!r&&(r=[(0,Y.hh)(o)?o.__ref:o]);var l,c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){r&&r.push(t);var n=c(o,t),s=c(u,t),d=a.applyMerges(e,n,s,i,r);d!==s&&(l=l||new Map).set(t,d),r&&(0,H.kG)(r.pop()===t)}),l&&(n=Array.isArray(u)?u.slice(0):(0,N.pi)({},u),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,r&&(s=i.store).getStorage.apply(s,r)):n},e}(),ue=[];function le(e,t){var n=e.map;return n.has(t)||n.set(t,ue.pop()||{map:new Map}),n.get(t)}function ce(e,t){var n=e.map,i=n.get(t);i&&!i.info&&!i.map.size&&(ue.push(i),n.delete(t))}new Set;var de=A(),he=new u;function pe(e,t){if(e.size){var n=[];e.forEach(function(e){return n.push(e)}),e.clear(),n.forEach(t)}}var fe=new WeakMap;function me(e){var t=new Set,n=new Set,i=function i(s){if(arguments.length>0)e!==s&&(e=s,de.dirty(i),t.forEach(ge),pe(n,function(t){return t(e)}));else{var a=he.getValue();a&&r(a),de(i)}return e};i.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=i.attachCache=function(e){t.add(e);var n=fe.get(e);return n||fe.set(e,n=new Set),n.add(i),i};return i.forgetCache=function(e){var n=t.delete(e);if(n){var r=fe.get(e);r&&r.delete(i)}return n},i}function ge(e){e.broadcastWatches&&e.broadcastWatches()}function ve(e){return void 0!==e.args?e.args:e.field?(0,Y.NC)(e.field,e.variables):null}var ye=function(e,t){var n=e.__typename,i=e.id,r=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==i?{id:i}:void 0!==r?{_id:r}:void 0),void 0===i&&(i=r),void 0!==i))return n+":"+("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))},_e=function(){},be=function(e,t){return t.fieldName},ke=function(e,t,n){return(0,n.mergeObjects)(e,t)},we=function(e,t){return t},Se=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,N.pi)({dataIdFromObject:ye},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var i=t&&n?(0,Y.qw)(e,t,n):e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var r,s={typename:i,selectionSet:t,fragmentMap:n},a=i&&this.getTypePolicy(i),o=a&&a.keyFn||this.config.dataIdFromObject;o;){var u=o(e,s);if(!Array.isArray(u)){r=u;break}o=xe(u)}return r=r&&String(r),s.keyObject?[r,s.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n];U.call(t.toBeAdded,n)?t.toBeAdded[n].push(i):t.toBeAdded[n]=[i]})},e.prototype.updateTypePolicy=function(e,t){var n=this,i=this.getTypePolicy(e),r=t.keyFields,s=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ke:!1===t?we:e.merge}a(i,t.merge),t.queryType&&this.setRootTypename("Query",e),t.mutationType&&this.setRootTypename("Mutation",e),t.subscriptionType&&this.setRootTypename("Subscription",e),i.keyFn=!1===r?_e:Array.isArray(r)?xe(r):"function"==typeof r?r:i.keyFn,s&&Object.keys(s).forEach(function(t){var i=n.getFieldPolicy(e,t,!0),r=s[t];if("function"==typeof r)i.read=r;else{var o=r.keyArgs,u=r.read,l=r.merge;i.keyFn=!1===o?be:Array.isArray(o)?De(o):"function"==typeof o?o:i.keyFn,"function"==typeof u&&(i.read=u),a(i,l)}i.read&&i.merge&&(i.keyFn=i.keyFn||be)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&((0,H.kG)(!i||i===e,1),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var i=e.match(z);(!i||i[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!U.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),r=i.fields,s=(0,N._T)(i,["fields"]);Object.assign(n,s),Object.assign(n.fields,r)})}var r=this.toBeAdded[e];return r&&r.length&&this.updateTypePolicy(e,Y.oA.apply(void 0,r.splice(0))),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var i=this.getTypePolicy(e).fields;return i[t]||n&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,i){var r=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),o=[a],u=function(e){var t=r.getSupertypeSet(e,!1);t&&t.size&&o.indexOf(t)<0&&o.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=0;c=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new l.c({graphQLErrors:r.errors}));e.markResult(r,n,t),e.markReady()}var o={data:r.data,loading:!1,networkStatus:e.networkStatus||d.I.ready};return s&&"ignore"!==n.errorPolicy&&(o.errors=r.errors),o},function(t){var n=(0,l.M)(t)?t:new l.c({networkError:t});throw i>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var i=this;void 0===n&&(n=d.I.loading);var r=this.transform(t.query).document,s=this.getVariables(r,t.variables),o=this.getQuery(e),u=o.networkStatus,l=t.fetchPolicy,c=void 0===l?"cache-first":l,h=t.errorPolicy,p=void 0===h?"none":h,f=t.returnPartialData,m=void 0!==f&&f,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,_=void 0===y?{}:y;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&v&&"number"==typeof u&&u!==n&&(0,d.O)(n)&&("cache-first"!==c&&(c="cache-and-network"),m=!0);var b=Object.assign({},t,{query:r,variables:s,fetchPolicy:c,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:v,context:_}),k=function(e){return b.variables=e,i.fetchQueryByPolicy(o,b,n)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return w.cancel(e)})});var w=new a.X_(this.transform(b.query).hasClientExports?this.localState.addExportedVariables(b.query,b.variables,b.context).then(k):k(b.variables));return w.cleanup(function(){i.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)}),w},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,s=t.query,o=t.variables,u=t.fetchPolicy,l=t.errorPolicy,c=t.returnPartialData,h=t.context;e.init({document:s,variables:o,lastRequestId:this.generateRequestId(),networkStatus:n});var p=function(){return e.getDiff(o)},f=function(t,n){void 0===n&&(n=e.networkStatus||d.I.loading);var u=t.result,l=function(e){return a.y$.of((0,i.pi)({data:e,loading:(0,d.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return r.transform(s).hasForcedResolvers?r.localState.runResolvers({document:s,remoteResult:{data:u},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data)}):l(u)},m=function(t){return r.getResultsFromLink(e,t,{variables:o,context:h,fetchPolicy:u,errorPolicy:l})};switch(u){default:case"cache-first":return(g=p()).complete?[f(g,e.markReady())]:c?[f(g),m(!0)]:[m(!0)];case"cache-and-network":var g;return(g=p()).complete||c?[f(g),m(!0)]:[m(!0)];case"cache-only":return[f(p(),e.markReady())];case"network-only":return[m(!0)];case"no-cache":return[m(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new y(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,i.pi)((0,i.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function w(e,t){return(0,a.oA)(e,t,t.variables&&{variables:(0,i.pi)((0,i.pi)({},e.variables),t.variables)})}var S=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,i=e.cache,a=e.ssrMode,u=void 0!==a&&a,l=e.ssrForceFetchDelay,c=void 0===l?0:l,d=e.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:d,p=e.queryDeduplication,m=void 0===p||p,g=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,_=e.resolvers,b=e.typeDefs,w=e.fragmentMatcher,S=e.name,E=e.version,T=e.link;if(T||(T=n?new o.uG({uri:n,credentials:e.credentials,headers:e.headers}):s.i0.empty()),!i)throw new r.ej(9);this.link=T,this.cache=i,this.disableNetworkFetches=u||c>0,this.queryDeduplication=m,this.defaultOptions=g||{},this.typeDefs=b,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new f({cache:i,client:this,resolvers:_,fragmentMatcher:w}),this.queryManager=new k({cache:this.cache,link:this.link,queryDeduplication:m,ssrMode:u,clientAwareness:{name:S,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=w(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=w(this.defaultOptions.query,e)),(0,r.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=w(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.ht)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},4272:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var i=n(20884),r=n(13941),s=n(11913),a=n(47402),o=n(11459),u=function(){function e(e,t,n,i){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=i}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,(0,o.oA)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,r.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var i=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},a.I.poll).then(s,s):s())},s=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};s()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),l=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,s=t.options,u=e.call(this,function(e){return u.onSubscribe(e)})||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(e){(u.lastError||u.isDifferentFromLastResult(e))&&(u.updateLastResult(e),(0,o.pM)(u.observers,"next",e))},error:function(e){u.updateLastResult((0,i.pi)((0,i.pi)({},u.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:a.I.error,loading:!1})),(0,o.pM)(u.observers,"error",u.lastError=e)}},u.isTornDown=!1,u.options=s,u.queryId=n.generateQueryId();var l=(0,o.$H)(s.query);return u.queryName=l&&l.name&&l.name.value,u.queryManager=n,u.queryInfo=r,u}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var i={next:function(n){t(n),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){r.unsubscribe()},0)},error:n},r=e.subscribe(i)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||a.I.ready,r=(0,i.pi)((0,i.pi)({},t),{loading:(0,a.O)(n),networkStatus:n});if(this.isTornDown)return r;var s=this.options.fetchPolicy,o=void 0===s?"cache-first":s;if("no-cache"===o||"network-only"===o)delete r.partial;else if(!r.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();r.data=u.complete||this.options.returnPartialData?u.result:void 0,u.complete?(r.networkStatus===a.I.loading&&("cache-first"===o||"cache-only"===o)&&(r.networkStatus=a.I.ready,r.loading=!1),delete r.partial):r.partial=!0}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!(0,s.D)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,s.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,a.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,i.pi)((0,i.pi)({},e.query?e:(0,i.pi)((0,i.pi)((0,i.pi)({},this.options),e),{variables:(0,i.pi)((0,i.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=a.I.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,a.I.fetchMore).then(function(i){var r=i.data,s=e.updateQuery;return s?t.updateQuery(function(e){return s(e,{fetchMoreResult:r,variables:n.variables})}):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:r}),i}).finally(function(){t.queryManager.stopQuery(r),t.reobserve()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,{subscriptionData:n,variables:t.variables})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if((0,s.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,i={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(i.fetchPolicy="cache-and-network",i.nextFetchPolicy=n),this.reobserve(i,a.I.setVariables)},t.prototype.updateQuery=function(e){var t,n=this.queryManager,i=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});i&&(n.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,o.Xh)(e),(0,o.Of)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=c)}catch(r){}var i=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),i&&this.reobserve().catch(function(e){}),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,n=this.queryManager,r=this.queryId;return n.setObservableQuery(this),new u(this.observer,e?this.options:(0,i.pi)({},this.options),function(e,i){return n.setObservableQuery(t),n.fetchQueryObservable(r,e,i)},!n.ssrMode&&function(){return!(0,a.O)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),delete this.options.context,this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(o.y$);function c(e){}},76088:function(e,t,n){"use strict";n.d(t,{fe:function(){return i.f},h4:function(){return s.h4},ApolloLink:function(){return o.i0},y$:function(){return u.y$}});var i=n(4723),r=(n(4272),n(62433));n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n(36125);var s=n(92970),a=n(52806);n.o(a,"ApolloLink")&&n.d(t,{ApolloLink:function(){return a.ApolloLink}});var o=n(92309),u=(n(87397),n(58105),n(11459)),l=n(13941);n(74009),(0,l.U6)("warn")},47402:function(e,t,n){"use strict";n.d(t,{I:function(){return r},O:function(){return s}});var i,r=((i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",r);function s(e){return!!e&&e<7}},62433:function(){},36125:function(e,t,n){"use strict";n.d(t,{M:function(){return s},c:function(){return a}});var i=n(20884),r=n(11459);function s(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(n){var i=n.graphQLErrors,s=n.networkError,a=n.errorMessage,o=n.extraInfo,u=e.call(this,a)||this;return u.graphQLErrors=i||[],u.networkError=s||null,u.message=a||function(e){var t="";return(0,r.Of)(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){t+=(e?e.message:"Error message not found.")+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(u),u.extraInfo=o,u.__proto__=t.prototype,u}return(0,i.ZT)(t,e),t}(Error)},92309:function(e,t,n){"use strict";n.d(t,{i0:function(){return d},ht:function(){return h}});var i,r=n(20884),s=n(13941),a=n(11459),o=n(58105);function u(e,t){return t?t(e):a.y$.of()}function l(e){return"function"==typeof e?new d(e):e}function c(e){return e.request.length<=1}i=Error,(0,r.ZT)(function(e,t){var n=i.call(this,e)||this;return n.link=t,n},i);var d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return a.y$.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,i){var r=l(n),s=l(i||new e(u));return c(r)&&c(s)?new e(function(e){return t(e)?r.request(e)||a.y$.of():s.request(e)||a.y$.of()}):new e(function(e,n){return t(e)?r.request(e,n)||a.y$.of():s.request(e,n)||a.y$.of()})},e.execute=function(e,t){return e.request((0,o.zi)(t.context,(0,o.DQ)((0,o.Ak)(t))))||a.y$.of()},e.concat=function(t,n){var i=l(t);if(c(i))return i;var r=l(n);return c(r)?new e(function(e){return i.request(e,function(e){return r.request(e)||a.y$.of()})||a.y$.of()}):new e(function(e,t){return i.request(e,function(e){return r.request(e,t)||a.y$.of()})||a.y$.of()})},e.prototype.split=function(t,n,i){return this.concat(e.split(t,n,i||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new s.ej(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),h=d.execute},87397:function(e,t,n){"use strict";n.d(t,{uG:function(){return p}});var i=n(58105),r=Object.prototype.hasOwnProperty,s=n(13941),a=function(e,t){var n;try{n=JSON.stringify(e)}catch(r){var i=new s.ej(23);throw i.parseError=r,i}return n},o=n(20884),u=n(94989),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},c=n(61335),d=n(92309),h=n(11459),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,p=e.fetch,f=e.includeExtensions,m=e.useGETForQueries,g=e.includeUnusedVariables,v=void 0!==g&&g,y=(0,o._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new s.ej(22)})(p),p||(p=fetch);var _={http:{includeExtensions:f},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return new d.i0(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),s=e.getContext(),d={};if(s.clientAwareness){var g=s.clientAwareness,y=g.name,b=g.version;y&&(d["apollographql-client-name"]=y),b&&(d["apollographql-client-version"]=b)}var k,w=(0,o.pi)((0,o.pi)({},d),s.headers),S=function(e,t){for(var n=[],i=2;i=300&&(0,i.PW)(t,n,"Response not successful: Received status code "+t.status),!Array.isArray(n)&&!r.call(n,"data")&&!r.call(n,"errors")&&(0,i.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),n})}}(e)).then(function(e){return n.next(e),n.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))}),function(){k&&k.abort()}})})}(t).request)||this;return n.options=t,n}return(0,o.ZT)(t,e),t}(d.i0)},58105:function(e,t,n){"use strict";n.d(t,{zi:function(){return l},Qc:function(){return r},PW:function(){return a},DQ:function(){return c},Ak:function(){return o}});var i=n(11459);function r(e){return new i.y$(function(t){t.error(e)})}var s=n(13941),a=function(e,t,n){var i=new Error(n);throw i.name="ServerError",i.response=e,i.statusCode=e.status,i.result=t,i};function o(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n-1})}function o(e){return e&&a(["client"],e)&&a(["export"],e)}var u=n(20884);function l(e,t){var n=t,i=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new r.ej(42);"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n&&((0,r.kG)(1===i.length,43),n=i[0].name.value),(0,u.pi)((0,u.pi)({},e),{definitions:(0,u.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function c(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function d(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,r.kG)(n,44),n;default:return null}}var h=n(73324),p=n.n(h);function f(e){return{__ref:String(e)}}function m(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function g(e,t,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var s={};n.fields.map(function(e){return g(s,e.name,e.value,i)}),e[t.value]=s}else if(function(e){return"Variable"===e.kind}(n))e[t.value]=(i||{})[n.name.value];else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return g(n,t,e,i),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new r.ej(53);e[t.value]=null}}function v(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(i){return g(n[e.name.value],i.name,i.value,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){return g(i,e.name,e.value,t)})),_(e.name.value,i,n)}var y=["connection","include","skip","client","rest","export"];function _(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var i=n.connection.filter?n.connection.filter:[];i.sort();var r={};return i.forEach(function(e){r[e]=t[e]}),n.connection.key+"("+JSON.stringify(r)+")"}return n.connection.key}var s=e;if(t){var a=p()(t);s+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?s+="@"+e+"("+JSON.stringify(n[e])+")":s+="@"+e)}),s}function b(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return g(n,e.name,e.value,t)}),n}return null}function k(e){return e.alias?e.alias.value:e.name.value}function w(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var i=0,r=t.selections;i1)for(var i=new Q,r=1;r0}function oe(e){return e.errors&&e.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(se,Symbol.species,{value:K()});var ue="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function le(){for(var e=[],t=0;t]+)>;\s*rel="next"/)||[])[1],{value:t}}):Promise.resolve({done:!0})}}})}function s(e,t,n,i){return"function"==typeof n&&(i=n,n=void 0),a(e,[],r(e,t,n)[Symbol.asyncIterator](),i)}function a(e,t,n,i){return n.next().then(function(r){if(r.done)return t;var s=!1;return t=t.concat(i?i(r.value,function(){s=!0}):r.value.data),s?t:a(e,t,n,i)})}function o(e){return{paginate:Object.assign(s.bind(null,e),{iterator:r.bind(null,e)})}}o.VERSION="1.1.2"},88514:function(e,t,n){"use strict";function i(e){e.hook.wrap("request",function(t,n){e.log.debug("request",n);var i=Date.now(),r=e.request.endpoint.parse(n),s=r.url.replace(n.baseUrl,"");return t(n).then(function(t){return e.log.info("".concat(r.method," ").concat(s," - ").concat(t.status," in ").concat(Date.now()-i,"ms")),t}).catch(function(t){throw e.log.info("".concat(r.method," ").concat(s," - ").concat(t.status," in ").concat(Date.now()-i,"ms")),t})})}n.r(t),n.d(t,{requestLog:function(){return i}}),i.VERSION="1.0.4"},6260:function(e,t,n){"use strict";n.r(t),n.d(t,{restEndpointMethods:function(){return o}});var i=n(17292),r={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/cancel"},createOrUpdateSecretForRepo:{method:"PUT",params:{encrypted_value:{type:"string"},key_id:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:!0,type:"string"},artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/jobs"},listRepoWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/logs"},listWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},activity:{checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/token"}},checks:{create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},codesOfConduct:{getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},emojis:{get:{method:"GET",params:{},url:"/emojis"}},gists:{checkIsStarred:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:!0,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},interactions:{addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},licenses:{get:{method:"GET",params:{license:{required:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},markdown:{render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},downloadArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{deprecated:"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},repo_name:{required:!0,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},oauthAuthorizations:{checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:!0,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:!0,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},orgs:{addOrUpdateMembership:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"integer"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,type:"string"}},url:"/user/memberships/orgs/:org"}},projects:{addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},position:{required:!0,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:!0,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:!0,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},rateLimit:{get:{method:"GET",params:{},url:"/rate_limit"}},reactions:{createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member","internal"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"integer"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,type:"string"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{data:{mapTo:"data",required:!0,type:"string | object"},file:{alias:"data",deprecated:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:!0,type:"string"},repository_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},teams:{addMember:{deprecated:"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},removeMember:{deprecated:"octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{deprecated:"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},users:{addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username"},getContextForUser:{method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}}};function s(e,t){Object.keys(t).forEach(function(n){e[n]||(e[n]={}),Object.keys(t[n]).forEach(function(r){var s=t[n][r],o=["method","url","headers"].reduce(function(e,t){return void 0!==s[t]&&(e[t]=s[t]),e},{});o.request={validate:s.params};var u=e.request.defaults(o);if(Object.keys(s.params||{}).find(function(e){return s.params[e].deprecated})){var l=a.bind(null,e,s);(u=l(e.request.defaults(o),".".concat(n,".").concat(r,"()"))).endpoint=l(u.endpoint,".".concat(n,".").concat(r,".endpoint()")),u.endpoint.merge=l(u.endpoint.merge,".".concat(n,".").concat(r,".endpoint.merge()"))}e[n][r]=s.deprecated?Object.assign(function(){return e.log.warn(new i.Deprecation("[@octokit/rest] ".concat(s.deprecated))),e[n][r]=u,u.apply(null,arguments)},u):u})})}function a(e,t,n,r){var s=function(s){return s=Object.assign({},s),Object.keys(s).forEach(function(n){if(t.params[n]&&t.params[n].deprecated){var a=t.params[n].alias;e.log.warn(new i.Deprecation('[@octokit/rest] "'.concat(n,'" parameter is deprecated for "').concat(r,'". Use "').concat(a,'" instead'))),a in s||(s[a]=s[n]),delete s[n]}}),n(s)};return Object.keys(n).forEach(function(e){s[e]=n[e]}),s}function o(e){return e.registerEndpoints=s.bind(null,e),s(e,r),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(function(t){var n=T(t,2),r=n[0],s=n[1];Object.defineProperty(e,r,{get:function(){return e.log.warn(new i.Deprecation('[@octokit/plugin-rest-endpoint-methods] "octokit.'.concat(r,'.*" methods are deprecated, use "octokit.').concat(s,'.*" instead'))),e[s]}})}),{}}o.VERSION="2.4.0"},38604:function(e,t,n){"use strict";n.r(t),n.d(t,{RequestError:function(){return a}});var i=n(17292),r=n(99318),s=n.n(r)()(function(e){return console.warn(e)}),a=function(e){function t(e,n,r){var a;g(this,t),a=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(a),a.constructor),a.name="HttpError",a.status=n,Object.defineProperty(y(a),"code",{get:function(){return s(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),n}}),a.headers=r.headers||{};var o=Object.assign({},r.request);return r.request.headers.authorization&&(o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),a.request=o,a}return _(t,e),m(t)}(b(Error))},46455:function(e,t,n){"use strict";n.r(t),n.d(t,{request:function(){return U}});var i=n(8239);function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!(!1===r(n=t.prototype)||!1===n.hasOwnProperty("isPrototypeOf")))}function a(e,t){var n=Object.assign({},e);return Object.keys(t).forEach(function(i){s(t[i])&&i in e?n[i]=a(e[i],t[i]):Object.assign(n,D({},i,t[i]))}),n}function o(e){for(var t in e)void 0===e[t]&&delete e[t];return e}function u(e,t,n){if("string"==typeof t){var i=T(t.split(" "),2),r=i[0],s=i[1];n=Object.assign(s?{method:r,url:s}:{url:r},n)}else n=Object.assign({},t);n.headers=function(e){return e?Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{}):{}}(n.headers),o(n),o(n.headers);var u=a(e||{},n);return e&&e.mediaType.previews.length&&(u.mediaType.previews=e.mediaType.previews.filter(function(e){return!u.mediaType.previews.includes(e)}).concat(u.mediaType.previews)),u.mediaType.previews=u.mediaType.previews.map(function(e){return e.replace(/-preview/,"")}),u}var l=/\{[^}]+\}/g;function c(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function d(e,t){return Object.keys(e).filter(function(e){return!t.includes(e)}).reduce(function(t,n){return t[n]=e[n],t},{})}function h(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function p(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function f(e,t,n){return t="+"===e||"#"===e?h(t):p(t),n?p(n)+"="+t:t}function k(e){return null!=e}function w(e){return";"===e||"&"===e||"?"===e}function S(e,t){var n=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,i,r){if(i){var s="",a=[];if(-1!==n.indexOf(i.charAt(0))&&(s=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(e){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(e);a.push(function(e,t,n,i){var r=e[n],s=[];if(k(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),i&&"*"!==i&&(r=r.substring(0,parseInt(i,10))),s.push(f(t,r,w(t)?n:""));else if("*"===i)Array.isArray(r)?r.filter(k).forEach(function(e){s.push(f(t,e,w(t)?n:""))}):Object.keys(r).forEach(function(e){k(r[e])&&s.push(f(t,r[e],e))});else{var a=[];Array.isArray(r)?r.filter(k).forEach(function(e){a.push(f(t,e))}):Object.keys(r).forEach(function(e){k(r[e])&&(a.push(p(e)),a.push(f(t,r[e].toString())))}),w(t)?s.push(p(n)+"="+a.join(",")):0!==a.length&&s.push(a.join(","))}else";"===t?k(r)&&s.push(p(n)):""!==r||"&"!==t&&"?"!==t?""===r&&s.push(""):s.push(p(n)+"=");return s}(t,s,n[1],n[2]||n[3]))}),s&&"+"!==s){var o=",";return"?"===s?o="&":"#"!==s&&(o=s),(0!==a.length?s:"")+a.join(o)}return a.join(",")}return h(r)})}function E(e){var t,n=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),s=d(e,["method","baseUrl","url","headers","request","mediaType"]),a=function(e){var t=e.match(l);return t?t.map(c).reduce(function(e,t){return e.concat(t)},[]):[]}(i);i=function(e){return{expand:S.bind(null,e)}}(i).expand(s),/^http/.test(i)||(i=e.baseUrl+i);var o=d(s,Object.keys(e).filter(function(e){return a.includes(e)}).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(function(t){return t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2.".concat(e.mediaType.format))}).join(",")),e.mediaType.previews.length)){var u=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=u.concat(e.mediaType.previews).map(function(t){return"application/vnd.github.".concat(t,"-preview").concat(e.mediaType.format?".".concat(e.mediaType.format):"+json")}).join(",")}return["GET","HEAD"].includes(n)?i=function(e,t){var n=/\?/.test(e)?"&":"?",i=Object.keys(t);return 0===i.length?e:e+n+i.map(function(e){return"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):"".concat(e,"=").concat(encodeURIComponent(t[e]))}).join("&")}(i,o):"data"in o?t=o.data:Object.keys(o).length?t=o:r["content-length"]=0,!r["content-type"]&&void 0!==t&&(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(n)&&void 0===t&&(t=""),Object.assign({method:n,url:i,headers:r},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function x(e,t,n){return E(u(e,t,n))}var L=function e(t,n){var i=u(t,n),r=x.bind(null,i);return Object.assign(r,{DEFAULTS:i,defaults:e.bind(null,i),merge:u.bind(null,i),parse:E})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.12 ".concat("object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?"Node.js/".concat(process.version.substr(1)," (").concat(process.platform,"; ").concat(process.arch,")"):"")},mediaType:{format:"",previews:[]}}),A=n(70640),O=n.n(A),I=n(17292),R=n(99318),P=n.n(R),F=P()(function(e){return console.warn(e)}),Y=P()(function(e){return console.warn(e)}),j=function(e){function t(e,n,i){var r,s;g(this,t),r=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(r),r.constructor),r.name="HttpError",r.status=n,"headers"in i&&void 0!==i.headers&&(s=i.headers),"response"in i&&(r.response=i.response,s=i.response.headers);var a=Object.assign({},i.request);return i.request.headers.authorization&&(a.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),a.url=a.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),r.request=a,Object.defineProperty(r,"code",{get:function(){return F(new I.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),n}}),Object.defineProperty(r,"headers",{get:function(){return Y(new I.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}}),r}return _(t,e),m(t)}(b(Error));function q(e){return e.arrayBuffer()}function N(e){var t=e.request&&e.request.log?e.request.log:console;(s(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));var n,r,a,o={};return(e.request&&e.request.fetch||O())(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((a=(0,i.Z)(C().mark(function i(s){var a,u,l,c,d,h;return C().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:r=s.url,n=s.status,a=M(s.headers);try{for(a.s();!(u=a.n()).done;)l=u.value,o[l[0]]=l[1]}catch(p){a.e(p)}finally{a.f()}if("deprecation"in o&&(c=o.link&&o.link.match(/<([^>]+)>; rel="deprecation"/),d=c&&c.pop(),t.warn('[@octokit/request] "'.concat(e.method," ").concat(e.url,'" is deprecated. It is scheduled to be removed on ').concat(o.sunset).concat(d?". See ".concat(d):""))),204===n||205===n){i.next=28;break}if("HEAD"!==e.method){i.next=9;break}if(!(n<400)){i.next=8;break}return i.abrupt("return");case 8:throw new j(s.statusText,n,{response:{url:r,status:n,headers:o,data:void 0},request:e});case 9:if(304!==n){i.next=22;break}return i.t0=j,i.t1=n,i.t2=r,i.t3=n,i.t4=o,i.next=17,H(s);case 17:throw i.t5=i.sent,i.t6={url:i.t2,status:i.t3,headers:i.t4,data:i.t5},i.t7=e,i.t8={response:i.t6,request:i.t7},new i.t0("Not modified",i.t1,i.t8);case 22:if(!(n>=400)){i.next=27;break}return i.next=25,H(s);case 25:throw h=i.sent,new j(function(e){return"string"==typeof e?e:"message"in e?Array.isArray(e.errors)?"".concat(e.message,": ").concat(e.errors.map(JSON.stringify).join(", ")):e.message:"Unknown error: ".concat(JSON.stringify(e))}(h),n,{response:{url:r,status:n,headers:o,data:h},request:e});case 27:return i.abrupt("return",H(s));case 28:case"end":return i.stop()}},i)})),function(e){return a.apply(this,arguments)})).then(function(e){return{status:n,url:r,headers:o,data:e}}).catch(function(t){throw t instanceof j?t:new j(t.message,500,{request:e})})}function H(e){return B.apply(this,arguments)}function B(){return(B=(0,i.Z)(C().mark(function e(t){var n;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.headers.get("content-type"),e.abrupt("return",/application\/json/.test(n)?t.json():!n||/^text\/|charset=utf-8$/.test(n)?t.text():q(t));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var U=function e(t,n){var i=t.defaults(n);return Object.assign(function(t,n){var r=i.merge(t,n);if(!r.request||!r.request.hook)return N(i.parse(r));var s=function(e,t){return N(i.parse(i.merge(e,t)))};return Object.assign(s,{endpoint:i,defaults:e.bind(null,i)}),r.request.hook(s,r)},{endpoint:i,defaults:e.bind(null,i)})}(L,{headers:{"user-agent":"octokit-request.js/5.6.3 ".concat("object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?"Node.js/".concat(process.version.substr(1)," (").concat(process.platform,"; ").concat(process.arch,")"):"")}})},60837:function(e,t,n){var i=n(88514).requestLog,r=n(6260).restEndpointMethods,s=n(26114),a=[n(94602),n(50768),i,n(84264),r,n(9419),n(36711)],o=s.plugin(a),u=Object.assign(function(e){return(e&&e.log&&e.log.warn?e.log.warn:console.warn)('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'),new o(e)},{Octokit:o});Object.keys(o).forEach(function(e){o.hasOwnProperty(e)&&(u[e]=o[e])}),e.exports=u},94725:function(e,t,n){e.exports=function(e,t){t=t||{};var n=new r.Collection,a=Object.assign({debug:function(){},info:function(){},warn:console.warn,error:console.error},t&&t.log),o={hook:n,log:a,request:i.defaults(s(t,a,n))};return e.forEach(function(e){return e(o,t)}),o};var i=n(46455).request,r=n(3816),s=n(52037)},26114:function(e,t,n){var i=n(12753);e.exports=i()},12753:function(e,t,n){e.exports=function(e){var t=i.bind(null,e||[]);return t.plugin=r.bind(null,e||[]),t};var i=n(94725),r=n(69890)},52037:function(e,t,n){e.exports=function(e,t,n){e.headers&&(e.headers=Object.keys(e.headers).reduce(function(t,n){return t[n.toLowerCase()]=e.headers[n],t},{}));var s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(s.baseUrl=e.baseUrl),e.userAgent&&(s.headers["user-agent"]=e.userAgent),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),e.timeout&&(o(t,new i("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),s.request.timeout=e.timeout),e.agent&&(u(t,new i("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),s.request.agent=e.agent),e.headers&&l(t,new i("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));var c=s.headers["user-agent"],d="octokit.js/".concat(a.version," ").concat(r());return s.headers["user-agent"]=[c,d].filter(Boolean).join(" "),s.request.hook=n.bind(null,"request"),s};var i=n(17292).Deprecation,r=n(57505).getUserAgent,s=n(99318),a=n(51322),o=s(function(e,t){return e.warn(t)}),u=s(function(e,t){return e.warn(t)}),l=s(function(e,t){return e.warn(t)})},69890:function(e,t,n){e.exports=function(e,t){return i(e.includes(t)?e:e.concat(t))};var i=n(12753)},13217:function(e,t,n){e.exports=function(e,t){if(r(e.octokit.log,new i('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){switch(t.type){case"basic":if(!t.username||!t.password)throw new Error("Basic authentication requires both a username and password to be set");break;case"oauth":if(!(t.token||t.key&&t.secret))throw new Error("OAuth2 authentication requires a token or key & secret to be set");break;case"token":case"app":if(!t.token)throw new Error("Token authentication requires a token to be set");break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}else e.auth=!1};var i=n(17292).Deprecation,r=n(99318)(function(e,t){return e.warn(t)})},80251:function(e,t,n){e.exports=function(e,t){if(e.auth.type)if("basic"!==e.auth.type)if("token"!==e.auth.type)if("app"!==e.auth.type)if(t.url+=-1===t.url.indexOf("?")?"?":"&",e.auth.token)t.url+="access_token=".concat(encodeURIComponent(e.auth.token));else{var n=encodeURIComponent(e.auth.key),s=encodeURIComponent(e.auth.secret);t.url+="client_id=".concat(n,"&client_secret=").concat(s)}else{t.headers.authorization="Bearer ".concat(e.auth.token);var a=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=r(a).filter(Boolean).join(",")}else t.headers.authorization="token ".concat(e.auth.token);else{var o=i("".concat(e.auth.username,":").concat(e.auth.password));t.headers.authorization="Basic ".concat(o)}};var i=n(70409),r=n(15746)},50768:function(e,t,n){e.exports=function(e,t){if(t.auth)e.authenticate=function(){r(e.log,new i('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))};else{var n={octokit:e,auth:!1};e.authenticate=s.bind(null,n),e.hook.before("request",a.bind(null,n)),e.hook.error("request",o.bind(null,n))}};var i=n(17292).Deprecation,r=n(99318)(function(e,t){return e.warn(t)}),s=n(13217),a=n(80251),o=n(33317)},33317:function(e,t,n){e.exports=function(e,t,n){if(!t.headers)throw t;var r=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!r)throw t;if(401===t.status&&r&&t.request&&t.request.headers["x-github-otp"])throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:n});if("function"!=typeof e.auth.on2fa)throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:n});return Promise.resolve().then(function(){return e.auth.on2fa()}).then(function(t){var i=Object.assign(n,{headers:Object.assign({"x-github-otp":t},n.headers)});return e.octokit.request(i)})};var i=n(38604).RequestError},51317:function(e,t,n){e.exports=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){var n=i("".concat(e.auth.username,":").concat(e.auth.password));return t.headers.authorization="Basic ".concat(n),void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){var s=i("".concat(e.auth.clientId,":").concat(e.auth.clientSecret));return void(t.headers.authorization="Basic ".concat(s))}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+="client_id=".concat(e.auth.clientId,"&client_secret=").concat(e.auth.clientSecret))}return Promise.resolve().then(function(){return e.auth()}).then(function(e){t.headers.authorization=r(e)})}t.headers.authorization=r(e.auth)};var i=n(70409),r=n(823)},94602:function(e,t,n){e.exports=function(e,t){if(t.authStrategy){var n=t.authStrategy(t.auth);return e.hook.wrap("request",n.hook),void(e.auth=n)}if(t.auth){var s="string"==typeof t.auth&&/^basic/.test(l(t.auth));if("string"==typeof t.auth&&!s){var h=i(t.auth);return e.hook.wrap("request",h.hook),void(e.auth=h)}var p=T(s?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[d,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'],2),f=p[0],m=p[1];f(e.log,new r("[@octokit/rest] "+m)),e.auth=function(){return Promise.resolve({type:"deprecated",message:m})},u(t.auth);var g={octokit:e,auth:t.auth};e.hook.before("request",a.bind(null,g)),e.hook.error("request",o.bind(null,g))}else e.auth=function(){return Promise.resolve({type:"unauthenticated"})}};var i=n(85131).createTokenAuth,r=n(17292).Deprecation,s=n(99318),a=n(51317),o=n(45067),u=n(51047),l=n(823),c=s(function(e,t){return e.warn(t)}),d=s(function(e,t){return e.warn(t)})},45067:function(e,t,n){e.exports=function(e,t,n){if(!t.headers)throw t;var r=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!r)throw t;if(401===t.status&&r&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:n});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:n});return Promise.resolve().then(function(){return e.auth.on2fa()}).then(function(t){var i=Object.assign(n,{headers:Object.assign(n.headers,{"x-github-otp":t})});return e.octokit.request(i).then(function(n){return e.otp=t,n})})};var i=n(38604).RequestError},51047:function(e){e.exports=function(e){if(!("string"==typeof e||"function"==typeof e||e.username&&e.password||e.clientId&&e.clientSecret))throw new Error('Invalid "auth" option: '.concat(JSON.stringify(e)))}},823:function(e,t,n){e.exports=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(r.test(i(e)))return"basic ".concat(e)}catch(t){}return 3===e.split(/\./).length?"bearer ".concat(e):"token ".concat(e)};var i=n(87624),r=/^[\w-]+:/},84264:function(e,t,n){e.exports=function(e){Object.assign(e,i(e))};var i=n(86269).paginateRest},9419:function(e,t,n){e.exports=function(e){e.hook.before("request",i.bind(null,e))};var i=n(24454)},24454:function(e,t,n){"use strict";e.exports=function(e,t){if(t.request.validate){var n=t.request.validate;return Object.keys(n).forEach(function(e){var a,o,u=r(n,e),l=u.type,c=!0,d=!1;/\./.test(e)&&(a=e.replace(/\.[^.]+$/,""),(d="[]"===a.slice(-2))&&(a=a.slice(0,-2)),o=r(t,a),c="headers"===a||"object"==typeof o&&null!==o),(d?(r(t,a)||[]).map(function(t){return t[e.split(/\./).pop()]}):[r(t,e)]).forEach(function(n,r){var a=void 0!==n,o=null===n,h=d?e.replace(/\[\]/,"[".concat(r,"]")):e;if((u.required||a)&&c&&(!u.allowNull||!o)){if(!u.allowNull&&o)throw new i("'".concat(h,"' cannot be null"),400,{request:t});if(u.required&&!a)throw new i("Empty value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if("integer"===l){var p=n;if(n=parseInt(n,10),isNaN(n))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(p)," is NaN"),400,{request:t})}if(u.enum&&-1===u.enum.indexOf(String(n)))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if(u.validation&&!new RegExp(u.validation).test(n))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if("object"===l&&"string"==typeof n)try{n=JSON.parse(n)}catch(p){throw new i("JSON parse error of value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t})}s(t,u.mapTo||h,n)}})}),t}};var i=n(38604).RequestError,r=n(69926),s=n(77772)},11913:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var i=Object.prototype,r=i.toString,s=i.hasOwnProperty,a=Function.prototype.toString,o=new Map;function u(e,t){try{return l(e,t)}finally{o.clear()}}function l(e,t){if(e===t)return!0;var n=r.call(e);if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(p(e,t))return!0;var i=c(e),o=c(t),u=i.length;if(u!==o.length)return!1;for(var d=0;d=0&&e.indexOf(t,n)===n}(k,h)}return!1}function c(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}var h="{ [native code] }";function p(e,t){var n=o.get(e);if(n){if(n.has(t))return!0}else o.set(e,n=new Set);return n.add(t),!1}},87624:function(e){e.exports=function(e){return atob(e)}},3816:function(e,t,n){var i=n(1765),r=n(60406),s=n(45486),a=Function.bind,o=a.bind(a);function u(e,t,n){var i=o(s,null).apply(null,n?[t,n]:[t]);e.api={remove:i},e.remove=i,["before","error","after","wrap"].forEach(function(i){var s=n?[t,i,n]:[t,i];e[i]=e.api[i]=o(r,null).apply(null,s)})}function l(){var e={registry:{}},t=i.bind(null,e);return u(t,e),t}var c=!1;function d(){return c||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),c=!0),l()}d.Singular=(function(){var e={registry:{}},t=i.bind(null,e,"h");return u(t,e,"h"),t}).bind(),d.Collection=l.bind(),e.exports=d,e.exports.Hook=d,e.exports.Singular=d.Singular,e.exports.Collection=d.Collection},60406:function(e){e.exports=function(e,t,n,i){var r=i;e.registry[n]||(e.registry[n]=[]),"before"===t&&(i=function(e,t){return Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(i=function(e,t){var n;return Promise.resolve().then(e.bind(null,t)).then(function(e){return r(n=e,t)}).then(function(){return n})}),"error"===t&&(i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return r(e,t)})}),e.registry[n].push({hook:i,orig:r})}},1765:function(e){e.exports=function e(t,n,i,r){if("function"!=typeof i)throw new Error("method for before hook must be a function");return r||(r={}),Array.isArray(n)?n.reverse().reduce(function(n,i){return e.bind(null,t,i,n,r)},i)():Promise.resolve().then(function(){return t.registry[n]?t.registry[n].reduce(function(e,t){return t.hook.bind(null,e,r)},i)():i(r)})}},45486:function(e){e.exports=function(e,t,n){if(e.registry[t]){var i=e.registry[t].map(function(e){return e.orig}).indexOf(n);-1!==i&&e.registry[t].splice(i,1)}}},70409:function(e){e.exports=function(e){return btoa(e)}},17292:function(e,t,n){"use strict";n.r(t),n.d(t,{Deprecation:function(){return i}});var i=function(e){function t(e){var n;return g(this,t),n=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(n),n.constructor),n.name="Deprecation",n}return _(t,e),m(t)}(b(Error))},69114:function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,i,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===i&&(i=!0);var a=i,o=this.diff_commonPrefix(e,n),u=e.substring(0,o);e=e.substring(o),n=n.substring(o),o=this.diff_commonSuffix(e,n);var l=e.substring(e.length-o);e=e.substring(0,e.length-o),n=n.substring(0,n.length-o);var c=this.diff_compute_(e,n,a,s);return u&&c.unshift(new t.Diff(0,u)),l&&c.push(new t.Diff(0,l)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,i,r,s){var a;if(!e)return[new t.Diff(1,i)];if(!i)return[new t.Diff(n,e)];var o=e.length>i.length?e:i,u=e.length>i.length?i:e,l=o.indexOf(u);if(-1!=l)return a=[new t.Diff(1,o.substring(0,l)),new t.Diff(0,u),new t.Diff(1,o.substring(l+u.length))],e.length>i.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[new t.Diff(n,e),new t.Diff(1,i)];var c=this.diff_halfMatch_(e,i);if(c){var d=c[1],h=c[3],p=c[4],f=this.diff_main(c[0],c[2],r,s),m=this.diff_main(d,h,r,s);return f.concat([new t.Diff(0,p)],m)}return r&&e.length>100&&i.length>100?this.diff_lineMode_(e,i,s):this.diff_bisect_(e,i,s)},t.prototype.diff_lineMode_=function(e,i,r){var s=this.diff_linesToChars_(e,i),a=s.lineArray,o=this.diff_main(e=s.chars1,i=s.chars2,!1,r);this.diff_charsToLines_(o,a),this.diff_cleanupSemantic(o),o.push(new t.Diff(0,""));for(var u=0,l=0,c=0,d="",h="";u=1&&c>=1){o.splice(u-l-c,l+c),u=u-l-c;for(var p=this.diff_main(d,h,!1,r),f=p.length-1;f>=0;f--)o.splice(u,0,p[f]);u+=p.length}c=0,l=0,d="",h=""}u++}return o.pop(),o},t.prototype.diff_bisect_=function(e,i,r){for(var s=e.length,a=i.length,o=Math.ceil((s+a)/2),u=o,l=2*o,c=new Array(l),d=new Array(l),h=0;hr);_++){for(var b=-_+m;b<=_-g;b+=2){for(var k=u+b,w=(x=b==-_||b!=_&&c[k-1]s)g+=2;else if(w>a)m+=2;else if(f&&(T=u+p-b)>=0&&T=(E=s-d[T]))return this.diff_bisectSplit_(e,i,x,w,r)}for(var S=-_+v;S<=_-y;S+=2){for(var E,T=u+S,D=(E=S==-_||S!=_&&d[T-1]s)y+=2;else if(D>a)v+=2;else if(!f){var x;if((k=u+p-S)>=0&&k=(E=s-E)))return this.diff_bisectSplit_(e,i,x,w,r)}}}return[new t.Diff(n,e),new t.Diff(1,i)]},t.prototype.diff_bisectSplit_=function(e,t,n,i,r){var s=e.substring(0,n),a=t.substring(0,i),o=e.substring(n),u=t.substring(i),l=this.diff_main(s,a,!1,r),c=this.diff_main(o,u,!1,r);return l.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function r(e){for(var t="",r=0,a=-1,o=n.length;ai?e=e.substring(n-i):nt.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length=e.length?[i,s,a,o,c]:null}var a,o,u,l,c,d=s(n,i,Math.ceil(n.length/4)),h=s(n,i,Math.ceil(n.length/2));return d||h?(a=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(o=a[0],u=a[1],l=a[2],c=a[3]):(l=a[0],c=a[1],o=a[2],u=a[3]),[o,u,l,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var i=!1,r=[],s=0,a=null,o=0,u=0,l=0,c=0,d=0;o0?r[s-1]:-1,u=0,l=0,c=0,d=0,a=null,i=!0)),o++;for(i&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o=m?(f>=h.length/2||f>=p.length/2)&&(e.splice(o,0,new t.Diff(0,p.substring(0,f))),e[o-1][1]=h.substring(0,h.length-f),e[o+1][1]=p.substring(f),o++):(m>=h.length/2||m>=p.length/2)&&(e.splice(o,0,new t.Diff(0,h.substring(0,m))),e[o-1][0]=1,e[o-1][1]=p.substring(0,p.length-m),e[o+1][0]=n,e[o+1][1]=h.substring(m),o++),o++}o++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var i=e.charAt(e.length-1),r=n.charAt(0),s=i.match(t.nonAlphaNumericRegex_),a=r.match(t.nonAlphaNumericRegex_),o=s&&i.match(t.whitespaceRegex_),u=a&&r.match(t.whitespaceRegex_),l=o&&i.match(t.linebreakRegex_),c=u&&r.match(t.linebreakRegex_),d=l&&e.match(t.blanklineEndRegex_),h=c&&n.match(t.blanklineStartRegex_);return d||h?5:l||c?4:s&&!o&&u?3:o||u?2:s||a?1:0}for(var i=1;i=h&&(h=p,l=r,c=s,d=a)}e[i-1][1]!=l&&(l?e[i-1][1]=l:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var i=!1,r=[],s=0,a=null,o=0,u=!1,l=!1,c=!1,d=!1;o0?r[s-1]:-1,c=d=!1),i=!0)),o++;i&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var i,r=0,s=0,a=0,o="",u="";r1?(0!==s&&0!==a&&(0!==(i=this.diff_commonPrefix(u,o))&&(r-s-a>0&&0==e[r-s-a-1][0]?e[r-s-a-1][1]+=u.substring(0,i):(e.splice(0,0,new t.Diff(0,u.substring(0,i))),r++),u=u.substring(i),o=o.substring(i)),0!==(i=this.diff_commonSuffix(u,o))&&(e[r][1]=u.substring(u.length-i)+e[r][1],u=u.substring(0,u.length-i),o=o.substring(0,o.length-i))),e.splice(r-=s+a,s+a),o.length&&(e.splice(r,0,new t.Diff(n,o)),r++),u.length&&(e.splice(r,0,new t.Diff(1,u)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,a=0,s=0,o="",u=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(r=1;rt));i++)a=r,o=s;return e.length!=i&&e[i][0]===n?o:o+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],i=/&/g,r=//g,a=/\n/g,o=0;o");switch(u){case 1:t[o]=''+l+"";break;case n:t[o]=''+l+"";break;case 0:t[o]=""+l+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),r=this;function s(e,i){var s=e/t.length,a=Math.abs(n-i);return r.Match_Distance?s+a/r.Match_Distance:a?1:s}var a=this.Match_Threshold,o=e.indexOf(t,n);-1!=o&&(a=Math.min(s(0,o),a),-1!=(o=e.lastIndexOf(t,n+t.length))&&(a=Math.min(s(0,o),a)));var u=1<=f;v--){var y=i[e.charAt(v-1)];if(g[v]=0===p?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],g[v]&u){var _=s(p,v-1);if(_<=a){if(a=_,!((o=v-1)>n))break;f=Math.max(1,2*n-o)}}}if(s(p+1,n)>a)break;d=g}return o},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===i&&void 0===r)s=this.diff_text1(a=e);else if("string"==typeof e&&i&&"object"==typeof i&&void 0===r)s=e,a=i;else{if("string"!=typeof e||"string"!=typeof i||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");s=e,a=r}if(0===a.length)return[];for(var o=[],u=new t.patch_obj,l=0,c=0,d=0,h=s,p=s,f=0;f=2*this.Patch_Margin&&l&&(this.patch_addContext_(u,h),o.push(u),u=new t.patch_obj,l=0,h=p,c=d)}1!==m&&(c+=g.length),m!==n&&(d+=g.length)}return l&&(this.patch_addContext_(u,h),o.push(u)),o},t.prototype.patch_deepCopy=function(e){for(var n=[],i=0;ithis.Match_MaxBits?-1!=(o=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||o>=d)&&(o=-1):o=this.match_main(t,c,l),-1==o)s[a]=!1,r-=e[a].length2-e[a].length1;else if(s[a]=!0,r=o-l,c==(u=t.substring(o,-1==d?o+c.length:d+this.Match_MaxBits)))t=t.substring(0,o)+this.diff_text2(e[a].diffs)+t.substring(o+c.length);else{var h=this.diff_main(c,u,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(h)/c.length>this.Patch_DeleteThreshold)s[a]=!1;else{this.diff_cleanupSemanticLossless(h);for(var p,f=0,m=0;ma[0][1].length){var o=n-a[0][1].length;a[0][1]=i.substring(a[0][1].length)+a[0][1],s.start1-=o,s.start2-=o,s.length1+=o,s.length2+=o}return 0==(a=(s=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,i)),s.length1+=n,s.length2+=n):n>a[a.length-1][1].length&&(a[a.length-1][1]+=i.substring(0,o=n-a[a.length-1][1].length),s.length1+=o,s.length2+=o),i},t.prototype.patch_splitMax=function(e){for(var i=this.Match_MaxBits,r=0;r2*i?(l.length1+=h.length,a+=h.length,c=!1,l.diffs.push(new t.Diff(d,h)),s.diffs.shift()):(h=h.substring(0,i-l.length1-this.Patch_Margin),l.length1+=h.length,a+=h.length,0===d?(l.length2+=h.length,o+=h.length):c=!1,l.diffs.push(new t.Diff(d,h)),h==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(h.length))}u=(u=this.diff_text2(l.diffs)).substring(u.length-this.Patch_Margin);var p=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==p&&(l.length1+=p.length,l.length2+=p.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=p:l.diffs.push(new t.Diff(0,p))),c||e.splice(++r,0,l)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n120){for(var h=Math.floor(a/80),p=a%80,f=[],m=0;m0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?(Object.defineProperty(m(y),"stack",{value:l.stack,writable:!0,configurable:!0}),f(y)):(Error.captureStackTrace?Error.captureStackTrace(m(y),n):Object.defineProperty(m(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return function(e,t,n){t&&function(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),x=n(30744);function C(e,t){if(!Boolean(e))throw new Error(t)}var M=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||C(0,"Body must be a string. Received: ".concat((0,x.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||C(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||C(0,"column in locationOffset is 1-indexed and must be positive.")}return function(e,t,n){t&&function(e,t){for(var n=0;n31||9===s));return new T.WU(D.COMMENT,t,o,n,i,r,a.slice(t+1,o))}function Y(e,t,n,i,r,s){var a=e.body,o=n,u=t,l=!1;if(45===o&&(o=a.charCodeAt(++u)),48===o){if((o=a.charCodeAt(++u))>=48&&o<=57)throw S(e,u,"Invalid number, unexpected digit after 0: ".concat(I(o),"."))}else u=j(e,u,o),o=a.charCodeAt(u);if(46===o&&(l=!0,o=a.charCodeAt(++u),u=j(e,u,o),o=a.charCodeAt(u)),(69===o||101===o)&&(l=!0,(43===(o=a.charCodeAt(++u))||45===o)&&(o=a.charCodeAt(++u)),u=j(e,u,o),o=a.charCodeAt(u)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw S(e,u,"Invalid number, expected digit but got: ".concat(I(o),"."));return new T.WU(l?D.FLOAT:D.INT,t,u,i,r,s,a.slice(t,u))}function j(e,t,n){var i=e.body,r=t,s=n;if(s>=48&&s<=57){do{s=i.charCodeAt(++r)}while(s>=48&&s<=57);return r}throw S(e,r,"Invalid number, expected digit but got: ".concat(I(s),"."))}function q(e,t,n,i,r){for(var s=e.body,a=t+1,o=a,u=0,l="";a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,t,n,i,r){for(var s=e.body,a=s.length,o=t+1,u=0;o!==a&&!isNaN(u=s.charCodeAt(o))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++o;return new T.WU(D.NAME,t,o,n,i,r,s.slice(t,o))}var z=function(){function e(e,t){var n=function(e){return e instanceof M}(e)?e:new M(e);this._lexer=new O(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(D.NAME);return{kind:E.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:E.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(D.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(D.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(D.BRACE_L))return{kind:E.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(D.NAME)&&(t=this.parseName()),{kind:E.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(D.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:E.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(D.DOLLAR),{kind:E.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:E.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(D.COLON)?(e=i,t=this.parseName()):t=i,{kind:E.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(D.PAREN_L,e?this.parseConstArgument:this.parseArgument,D.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(D.COLON),{kind:E.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:E.ARGUMENT,name:this.parseName(),value:(this.expectToken(D.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(D.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(D.NAME)?{kind:E.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:E.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:E.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:E.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case D.BRACKET_L:return this.parseList(e);case D.BRACE_L:return this.parseObject(e);case D.INT:return this._lexer.advance(),{kind:E.INT,value:t.value,loc:this.loc(t)};case D.FLOAT:return this._lexer.advance(),{kind:E.FLOAT,value:t.value,loc:this.loc(t)};case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:E.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:E.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:E.NULL,loc:this.loc(t)};default:return{kind:E.ENUM,value:t.value,loc:this.loc(t)}}case D.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:E.STRING,value:e.value,block:e.kind===D.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:E.LIST,values:this.any(D.BRACKET_L,function(){return t.parseValueLiteral(e)},D.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:E.OBJECT,fields:this.any(D.BRACE_L,function(){return t.parseObjectField(e)},D.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(D.COLON),{kind:E.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(D.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(D.AT),{kind:E.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(D.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(D.BRACKET_R),e={kind:E.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(D.BANG)?{kind:E.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:E.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return{kind:E.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(D.COLON);var n=this.parseNamedType();return{kind:E.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:E.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:E.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(D.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(D.AMP)||this.peek(D.NAME));return t}return this.delimitedMany(D.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(D.BRACE_L)&&this._lexer.lookahead().kind===D.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(D.COLON);var r=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:E.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(D.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(D.EQUALS)&&(i=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:E.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:E.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:E.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(D.EQUALS)?this.delimitedMany(D.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:E.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:E.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:E.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:E.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:E.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:E.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:E.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:E.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(D.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==L[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new T.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw S(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat(V(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==D.NAME||t.value!==e)throw S(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(V(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===D.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return S(this._lexer.source,t.start,"Unexpected ".concat(V(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function V(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===D.BANG||e===D.DOLLAR||e===D.AMP||e===D.PAREN_L||e===D.PAREN_R||e===D.SPREAD||e===D.COLON||e===D.EQUALS||e===D.AT||e===D.BRACKET_L||e===D.BRACKET_R||e===D.BRACE_L||e===D.PIPE||e===D.BRACE_R}(e)?'"'.concat(e,'"'):e}var W=new Map,Z=new Map,Q=!0,$=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function J(e){var t=K(e);if(!W.has(t)){var n=function(e,t){return new z(e,t).parseDocument()}(e,{experimentalFragmentVariables:$,allowLegacyFragmentVariables:$});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");W.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=function(e){return K(e.source.body.substring(e.start,e.end))}(e.loc),s=Z.get(i);s&&!s.has(r)?Q&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Z.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e)}),(0,i.pi)((0,i.pi)({},e),{definitions:n})}(n)))}return W.get(t)}function X(e){for(var t=[],n=1;n-1},M.prototype.set=function(e,t){var n=this.__data__,i=A(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new C,map:new(E||M),string:new C}},L.prototype.delete=function(e){return O(this,e).delete(e)},L.prototype.get=function(e){return O(this,e).get(e)},L.prototype.has=function(e){return O(this,e).has(e)},L.prototype.set=function(e,t){return O(this,e).set(e,t),this};var R=F(function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(N(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}(e);var t=[];return a.test(e)&&t.push(""),e.replace(o,function(e,n,i,r){t.push(i?r.replace(u,"$1"):n||e)}),t});function P(e){if("string"==typeof e||N(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a),a};return n.cache=new(F.Cache||L),n}function Y(e,t){return e===t||e!=e&&t!=t}F.Cache=L;var j=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function N(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:function(e,t){t=function(e,t){if(j(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!N(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return j(e)?e:R(e)}(t);for(var n=0,i=t.length;null!=e&&n-1&&e%1==0&&e-1},L.prototype.set=function(e,t){var n=this.__data__,i=I(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new M,map:new(T||L),string:new M}},A.prototype.delete=function(e){return R(this,e).delete(e)},A.prototype.get=function(e){return R(this,e).get(e)},A.prototype.has=function(e){return R(this,e).has(e)},A.prototype.set=function(e,t){return R(this,e).set(e,t),this};var Y=q(function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(U(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}(e);var t=[];return a.test(e)&&t.push(""),e.replace(o,function(e,n,i,r){t.push(i?r.replace(u,"$1"):n||e)}),t});function j(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a),a};return n.cache=new(q.Cache||A),n}function N(e,t){return e===t||e!=e&&t!=t}q.Cache=A;var H=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}e.exports=function(e,t,n){return null==e?e:function(e,t,n,i){if(!B(e))return e;t=function(e,t){if(H(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!U(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return H(e)?e:Y(e)}(t);for(var a=-1,o=t.length,u=o-1,l=e;null!=l&&++a-1}function o(e){return e!=e}function u(e,t){return e.has(t)}function l(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var c,d=Array.prototype,h=Function.prototype,p=Object.prototype,f=s["__core-js_shared__"],m=(c=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",g=h.toString,v=p.hasOwnProperty,y=p.toString,_=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=d.splice,k=A(s,"Map"),w=A(s,"Set"),S=A(Object,"create");function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},T.prototype.set=function(e,t){var n=this.__data__,i=C(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new E,map:new(k||T),string:new E}},D.prototype.delete=function(e){return L(this,e).delete(e)},D.prototype.get=function(e){return L(this,e).get(e)},D.prototype.has=function(e){return L(this,e).has(e)},D.prototype.set=function(e,t){return L(this,e).set(e,t),this},x.prototype.add=x.prototype.push=function(e){return this.__data__.set(e,t),this},x.prototype.has=function(e){return this.__data__.has(e)};var M=w&&1/l(new w([,-0]))[1]==1/0?function(e){return new w(e)}:function(){};function L(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function A(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!I(e)||function(e){return!!m&&m in e}(e))return!1;var t=function(e){var t=I(e)?y.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(i){}return t}(e)?_:n;return t.test(function(e){if(null!=e){try{return g.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}(i)?i:void 0}function O(e,t){return e===t||e!=e&&t!=t}function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,n){var i=-1,r=a,s=e.length,o=!0,c=[],d=c;if(s>=200){var h=M(e);if(h)return l(h);o=!1,r=u,d=new x}else d=c;e:for(;++i=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},1616:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(e){return function(i,r,s,a){var o=t(i),u=n[e][t(i)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,i)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n(16738))},9759:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n(16738))},43160:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,r,s,a){var o=n(t),u=i[e][n(t)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,t)}},s=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},62551:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(16738))},51500:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(16738))},79989:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(16738))},6962:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(16738))},81286:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(e){return function(t,n,s,a){var o=i(t),u=r[e][i(t)];return 2===o&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},15887:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},14572:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+e)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(16738))},3276:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(16738))},93344:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(16738))},83990:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(16738))},58985:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(16738))},94391:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(16738))},46728:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var i=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(16738))},5536:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,i){if("m"===n)return t?"jedna minuta":i?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},41043:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}})}(n(16738))},70420:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function s(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(s(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(s(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(s(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(s(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(s(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(s(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},33513:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n(16738))},6771:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(16738))},47978:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},25204:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},2653:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46061:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},85:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(16738))},8579:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],i=t&&t.hours();return function(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}(n)&&(n=n.apply(t)),n.replace("{}",i%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n(16738))},25724:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(16738))},10525:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(16738))},52847:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},67216:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},39305:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(16738))},73364:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(16738))},79130:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},11161:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},50802:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(16738))},45551:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},75615:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(16738))},64790:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n(16738))},40328:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(16738))},96389:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},52961:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},26151:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(16738))},7997:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,s){var a="";switch(r){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":a=s?"sekunnin":"sekuntia";break;case"m":return s?"minuutin":"minuutti";case"mm":a=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":a=s?"tunnin":"tuntia";break;case"d":return s?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=s?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return s?"kuukauden":"kuukausi";case"MM":a=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":a=s?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,s)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},58898:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},37779:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},3287:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(16738))},38867:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(16738))},28174:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(16738))},50452:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},45014:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(16738))},74127:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(16738))},72124:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},6444:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"\u0935\u0947\u0930":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n(16738))},37953:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(16738))},76604:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(16738))},1222:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(16738))},74235:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},i=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(16738))},622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},37735:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},90402:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n(16738))},59187:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(16738))},30536:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var s=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?s+(n||r?"sek\xfandur":"sek\xfandum"):s+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?s+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?s+"m\xedn\xfata":s+"m\xedn\xfatu";case"hh":return t(e)?s+(n||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?s+"dagar":s+(r?"daga":"d\xf6gum"):n?s+"dagur":s+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?s+"m\xe1nu\xf0ir":s+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?s+"m\xe1nu\xf0ur":s+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?s+(n||r?"\xe1r":"\xe1rum"):s+(n||r?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},94667:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},35007:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},62093:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n(16738))},80059:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(16738))},66870:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n(16738))},80880:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},1083:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(16738))},68785:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(16738))},21721:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(16738))},31385:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[e+" san\xeeye",e+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[e+" deq\xeeqe",e+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[e+" saet",e+" saetan"],d:["rojek","rojek\xea"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehek\xea"],MM:[e+" meh",e+" mehan"],y:["salek","salek\xea"],yy:[e+" sal",e+" salan"]};return t?r[n][0]:r[n][1]}e.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"\xea":"y\xea"}(e)},week:{dow:1,doy:4}})}(n(16738))},37851:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},1727:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},40346:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},93002:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n(16738))},64035:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function s(e,t,s,a){var o=e+" ";return 1===e?o+n(0,t,s[0],a):t?o+(i(e)?r(s)[1]:r(s)[0]):a?o+r(s)[1]:o+(i(e)?r(s)[1]:r(s)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(16738))},56927:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},5634:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},94173:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},86320:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(16738))},11705:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n(16738))},31062:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(16738))},92805:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(16738))},59900:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(16738))},11341:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(16738))},37734:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},19034:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(16738))},9324:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46495:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n(16738))},76272:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},70673:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},72486:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46219:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}})}(n(16738))},2829:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(16738))},78444:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function s(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:s,M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},66117:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n(16738))},53170:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},96587:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(16738))},39264:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n],+e)}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(16738))},42135:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(16738))},95366:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},93379:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(16738))},46143:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?s+(i(e)?"sekundy":"sek\xfand"):s+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?s+(i(e)?"min\xfaty":"min\xfat"):s+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(i(e)?"hodiny":"hod\xedn"):s+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?s+(i(e)?"dni":"dn\xed"):s+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(i(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(i(e)?"roky":"rokov"):s+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},196:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},21082:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},98963:function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var s,a=t.words[i];return 1===i.length?"y"===i&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":r||n?a[0]:a[1]:(s=t.correctGrammaticalCase(e,a),"yy"===i&&n&&"\u0433\u043e\u0434\u0438\u043d\u0443"===s?e+" \u0433\u043e\u0434\u0438\u043d\u0430":e+" "+s)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},91621:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var s,a=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":r||n?a[0]:a[1]:(s=t.correctGrammaticalCase(e,a),"yy"===i&&n&&"godinu"===s?e+" godina":e+" "+s)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},41404:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(16738))},55685:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(16738))},46490:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(16738))},54106:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(16738))},39204:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n(16738))},83692:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},86361:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},31735:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(16738))},1568:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(16738))},96129:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},13759:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var s=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,s="";return n>0&&(s+=t[n]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+t[i]+"maH"),r>0&&(s+=(""!==s?" ":"")+t[r]),""===s?"pagh":s}(e);switch(i){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},81644:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(16738))},90875:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},11041:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(16738))},16878:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n(16738))},74357:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(16738))},74810:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n],+e)}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(16738))},86794:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(16738))},77959:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(16738))},28966:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n(16738))},35386:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},23156:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},68028:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n(16738))},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(16738))},89380:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},60874:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},96508:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},16738:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},P={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(P[e]=r),t&&(P[t[0]]=function(){return A(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function j(e,t){return e.isValid()?(t=q(t,e.localeData()),R[t]=R[t]||function(e){var t,n,i=e.match(O);for(t=0,n=i.length;t=0&&I.test(e);)e=e.replace(I,i),I.lastIndex=0,n-=1;return e}var N={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function H(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)o(e,n)&&(t=H(n))&&(i[t]=e[n]);return i}var U,z={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},V=/\d/,G=/\d\d/,W=/\d{3}/,Z=/\d{4}/,Q=/[+-]?\d{6}/,$=/\d\d?/,K=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,X=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ue=/^([1-9]\d|\d)/;function le(e,t,n){U[e]=C(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return o(U,e)?U[e](t._strict,t._locale):new RegExp(function(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}(e))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}U={};var fe={};function me(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=pe(e)}),i=e.length,n=0;n68?1900:2e3)};var be,ke=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),r.updateOffset(this,t),this):Se(this,e)}}function Se(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ee(e,t,n){var i,r,s,a,o;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,a=e.month(),o=29!==(o=e.date())||1!==a||ye(s)?o:28,r?i.setUTCFullYear(s,a,o):i.setFullYear(s,a,o)}}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%12+12)%12}(t);return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(o=new Date(e+400,t,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,r,s,a),o}function Fe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ye(e,t,n){var i=7+t-n;return-(7+Fe(e,0,i).getUTCDay()-t)%7+i-1}function je(e,t,n,i,r){var s,a,o=1+7*(t-1)+(7+n-i)%7+Ye(e,i,r);return o<=0?a=_e(s=e-1)+o:o>_e(e)?(s=e+1,a=o-_e(e)):(s=e,a=o),{year:s,dayOfYear:a}}function qe(e,t,n){var i,r,s=Ye(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?i=a+Ne(r=e.year()-1,t,n):a>Ne(e.year(),t,n)?(i=a-Ne(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ne(e,t,n){var i=Ye(e,t,n),r=Ye(e+1,t,n);return(_e(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),le("w",$,oe),le("ww",$,G),le("W",$,oe),le("WW",$,G),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=pe(e)}),F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),le("d",$),le("e",$),le("E",$),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=pe(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=ae,Ge=ae,We=ae;function Ze(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=be.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._shortWeekdaysParse,a))||-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,a))||-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:-1!==(r=be.call(this._minWeekdaysParse,a))||-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._shortWeekdaysParse,a))?r:null}function Qe(){function e(e,t){return t.length-e.length}var t,n,i,r,s,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=de(this.weekdaysMin(n,"")),r=de(this.weekdaysShort(n,"")),s=de(this.weekdays(n,"")),a.push(i),o.push(r),u.push(s),l.push(i),l.push(r),l.push(s);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,$e),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+$e.apply(this)+A(this.minutes(),2)}),F("hmmss",0,0,function(){return""+$e.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),le("a",Je),le("A",Je),le("H",$,ue),le("h",$,oe),le("k",$,oe),le("HH",$,G),le("hh",$,G),le("kk",$,G),le("hmm",K),le("hmmss",J),le("Hmm",K),le("Hmmss",J),me(["H","HH"],3),me(["k","kk"],function(e,t,n){var i=pe(e);t[3]=24===i?0:i}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[3]=pe(e),m(n).bigHour=!0}),me("hmm",function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i)),m(n).bigHour=!0}),me("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r)),m(n).bigHour=!0}),me("Hmm",function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i))}),me("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r))});var Xe,et=we("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:xe,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:ze,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function rt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=at(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&rt(r,n)>=t-1)break;t--}s++}return Xe}(e)}function ct(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Te(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,i,r,s,a,o=e._i,u=dt.exec(o)||ht.exec(o),l=ft.length,c=mt.length;if(u){for(m(e).iso=!0,t=0,n=l;t7)&&(u=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,l=qe(xt(),s,a),n=wt(t.gg,e._a[0],l.year),i=wt(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(u=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(u=!0)):r=s),i<1||i>Ne(n,s,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,i,r,s,a),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],i[0]),(e._dayOfYear>_e(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Fe(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Fe:Pe).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(m(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,s,a,o,u,l=""+e._i,c=l.length,d=0;for(u=(i=q(e._f,e._locale).match(O)||[]).length,t=0;t0&&m(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),P[s]?(n?m(e).empty=!1:m(e).unusedTokens.push(s),ve(s,n,e)):e._strict&&!n&&m(e).unusedTokens.push(s);m(e).charsLeftOver=c-d,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),!i&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(o=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),St(e),ct(e)}else kt(e);else _t(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new k(ct(t)):(d(t)?e._d=t:s(n)?function(e){var t,n,i,r,s,a,o=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:v()});function Lt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function cn(e,t){return t.erasAbbrRegex(e)}function dn(){var e,t,n,i,r,s=[],a=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e(s=Ne(e,i,r))&&(t=s),fn.call(this,e,t,n,i,r))}function fn(e,t,n,i,r){var s=je(e,t,n,i,r),a=Fe(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),le("N",cn),le("NN",cn),le("NNN",cn),le("NNNN",function(e,t){return t.erasNameRegex(e)}),le("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),me(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e}),le("y",ne),le("yy",ne),le("yyy",ne),le("yyyy",ne),le("yo",function(e,t){return t._eraYearOrdinalRegex||ne}),me(["y","yy","yyy","yyyy"],0),me(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),le("G",ie),le("g",ie),le("GG",$,G),le("gg",$,G),le("GGGG",ee,Z),le("gggg",ee,Z),le("GGGGG",te,Q),le("ggggg",te,Q),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=pe(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),le("Q",V),me("Q",function(e,t){t[1]=3*(pe(e)-1)}),F("D",["DD",2],"Do","date"),le("D",$,oe),le("DD",$,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],2),me("Do",function(e,t){t[2]=pe(e.match($)[0])});var mn=we("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",X),le("DDDD",W),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=pe(e)}),F("m",["mm",2],0,"minute"),le("m",$,ue),le("mm",$,G),me(["m","mm"],4);var gn=we("Minutes",!1);F("s",["ss",2],0,"second"),le("s",$,ue),le("ss",$,G),me(["s","ss"],5);var vn,yn,_n=we("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),le("S",X,V),le("SS",X,G),le("SSS",X,W),vn="SSSS";vn.length<=9;vn+="S")le(vn,ne);function bn(e,t){t[6]=pe(1e3*("0."+e))}for(vn="S";vn.length<=9;vn+="S")me(vn,bn);yn=we("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var kn=k.prototype;function wn(e){return e}kn.add=Zt,kn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||xt(),i=jt(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",a=t&&(C(t[s])?t[s].call(this,n):t[s]);return this.format(a||this.localeData().calendar(s,this,xt(n)))},kn.clone=function(){return new k(this)},kn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=jt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=H(t)){case"year":s=Xt(this,i)/12;break;case"month":s=Xt(this,i);break;case"quarter":s=Xt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:he(s)},kn.endOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:un,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-on(t+(this._isUTC?0:this.utcOffset()*rn),sn)-1;break;case"minute":t=this._d.valueOf(),t+=rn-on(t,rn)-1;break;case"second":t=this._d.valueOf(),t+=1e3-on(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},kn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},kn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||xt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.fromNow=function(e){return this.from(xt(),e)},kn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||xt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.toNow=function(e){return this.to(xt(),e)},kn.get=function(e){return C(this[e=H(e)])?this[e]():this},kn.invalidAt=function(){return m(this).overflow},kn.isAfter=function(e,t){var n=w(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},kn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),kn.toJSON=function(){return this.isValid()?this.toISOString():null},kn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},kn.unix=function(){return Math.floor(this.valueOf()/1e3)},kn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},kn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},kn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},kn.isLocal=function(){return!!this.isValid()&&!this._isUTC},kn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},kn.isUtc=Nt,kn.isUTC=Nt,kn.zoneAbbr=function(){return this._isUTC?"UTC":""},kn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},kn.dates=E("dates accessor is deprecated. Use date instead.",mn),kn.months=E("months accessor is deprecated. Use month instead",Ie),kn.years=E("years accessor is deprecated. Use year instead",ke),kn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),kn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?f(t._a):xt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted});var Sn=L.prototype;function En(e,t,n,i){var r=lt(),s=f().set(i,t);return r[n](s,e)}function Tn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return En(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=En(e,i,n,"month");return r}function Dn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,s=lt(),a=e?s._week.dow:0,o=[];if(null!=n)return En(t,(n+a)%7,i,"day");for(r=0;r<7;r++)o[r]=En(t,(r+a)%7,i,"day");return o}Sn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=wn,Sn.postformat=wn,Sn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Sn.set=function(e){var t,n;for(n in e)o(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Sn.eras=function(e,t){var n,i,s,a=this._eras||lt("en")._eras;for(n=0,i=a.length;n=0)return u[i]},Sn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Sn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||dn.call(this),e?this._erasAbbrRegex:this._erasRegex},Sn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||dn.call(this),e?this._erasNameRegex:this._erasRegex},Sn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||dn.call(this),e?this._erasNarrowRegex:this._erasRegex},Sn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.monthsParse=function(e,t,n){var i,r,s;if(this._monthsParseExact)return Ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Sn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",lt);var xn=Math.abs;function Cn(e,t,n,i){var r=Ut(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function Ln(e){return 4800*e/146097}function An(e){return 146097*e/4800}function On(e){return function(){return this.as(e)}}var In=On("ms"),Rn=On("s"),Pn=On("m"),Fn=On("h"),Yn=On("d"),jn=On("w"),qn=On("M"),Nn=On("Q"),Hn=On("y"),Bn=In;function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Un("milliseconds"),Vn=Un("seconds"),Gn=Un("minutes"),Wn=Un("hours"),Zn=Un("days"),Qn=Un("months"),$n=Un("years"),Kn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ei=Math.abs;function ti(e){return(e>0)-(e<0)||+e}function ni(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,a,o,u=ei(this._milliseconds)/1e3,l=ei(this._days),c=ei(this._months),d=this.asSeconds();return d?(e=he(u/60),t=he(e/60),u%=60,e%=60,n=he(c/12),c%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=ti(this._months)!==ti(d)?"-":"",a=ti(this._days)!==ti(d)?"-":"",o=ti(this._milliseconds)!==ti(d)?"-":"",r+"P"+(n?s+n+"Y":"")+(c?s+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+i+"S":"")):"P0D"}var ii=Ot.prototype;return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},ii.add=function(e,t){return Cn(this,e,t,1)},ii.subtract=function(e,t){return Cn(this,e,t,-1)},ii.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Ln(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ii.asMilliseconds=In,ii.asSeconds=Rn,ii.asMinutes=Pn,ii.asHours=Fn,ii.asDays=Yn,ii.asWeeks=jn,ii.asMonths=qn,ii.asQuarters=Nn,ii.asYears=Hn,ii.valueOf=Bn,ii._bubble=function(){var e,t,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Mn(An(o)+a),a=0,o=0),u.milliseconds=s%1e3,e=he(s/1e3),u.seconds=e%60,t=he(e/60),u.minutes=t%60,n=he(t/60),u.hours=n%24,a+=he(n/24),o+=r=he(Ln(a)),a-=Mn(An(r)),i=he(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},ii.clone=function(){return Ut(this)},ii.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},ii.milliseconds=zn,ii.seconds=Vn,ii.minutes=Gn,ii.hours=Wn,ii.days=Zn,ii.weeks=function(){return he(this.days()/7)},ii.months=Qn,ii.years=$n,ii.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=Ut(e).abs(),s=Kn(r.as("s")),a=Kn(r.as("m")),o=Kn(r.as("h")),u=Kn(r.as("d")),l=Kn(r.as("M")),c=Kn(r.as("w")),d=Kn(r.as("y")),h=s<=n.ss&&["s",s]||s0,h[4]=i,Xn.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=en,ii.localeData=nn,ii.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=tn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),me("x",function(e,t,n){n._d=new Date(pe(e))}),r.version="2.30.1",t=xt,r.fn=kn,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return xt(1e3*e)},r.months=function(e,t){return Tn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=v,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},r.parseZone=function(){return xt.apply(null,arguments).parseZone()},r.localeData=lt,r.isDuration=It,r.monthsShort=function(e,t){return Tn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},r.defineLocale=ut,r.updateLocale=function(e,t){if(null!=t){var n,i,r=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(M(nt[e]._config,t)):(null!=(i=at(e))&&(r=i._config),t=M(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=nt[e],nt[e]=n),ot(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===ot()&&ot(e)):null!=nt[e]&&delete nt[e]);return nt[e]},r.locales=function(){return T(nt)},r.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},r.normalizeUnits=H,r.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=kn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},70640:function(e,t){"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},36711:function(e,t,n){e.exports=function(e){e.getFirstPage=n(31732).bind(null,e),e.getLastPage=n(15485).bind(null,e),e.getNextPage=n(53508).bind(null,e),e.getPreviousPage=n(40341).bind(null,e),e.hasFirstPage=n(17735),e.hasLastPage=n(60907),e.hasNextPage=n(76671),e.hasPreviousPage=n(70174)}},51664:function(e){e.exports=function(e){t[e]||(console.warn("DEPRECATED (@octokit/rest): ".concat(e)),t[e]=1)};var t={}},31732:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"first",n)};var i=n(36873)},15485:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"last",n)};var i=n(36873)},53508:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"next",n)};var i=n(36873)},56595:function(e){e.exports=function(e){var t={};return(e=e.link||e.headers.link||"").replace(/<([^>]*)>;\s*rel="([\w]*)"/g,function(e,n,i){t[i]=n}),t}},36873:function(e,t,n){e.exports=function(e,t,n,o){i("octokit.get".concat(n.charAt(0).toUpperCase()+n.slice(1),"Page() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."));var u=r(t)[n];if(!u){var l=new s("No ".concat(n," page found"),404);return Promise.reject(l)}var c={url:u,headers:a(t,o)};return e.request(c)};var i=n(51664),r=n(56595),s=n(47079);function a(e,t){var n=e.headers&&e.headers["x-github-media-type"];return!n||t&&t.accept||((t=t||{}).accept="application/vnd."+n.replace("; param=",".").replace("; format=","+")),t}},40341:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"prev",n)};var i=n(36873)},17735:function(e,t,n){e.exports=function(e){return i("octokit.hasFirstPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).first};var i=n(51664),r=n(56595)},60907:function(e,t,n){e.exports=function(e){return i("octokit.hasLastPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).last};var i=n(51664),r=n(56595)},76671:function(e,t,n){e.exports=function(e){return i("octokit.hasNextPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).next};var i=n(51664),r=n(56595)},70174:function(e,t,n){e.exports=function(e){return i("octokit.hasPreviousPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).prev};var i=n(51664),r=n(56595)},47079:function(e){e.exports=function(e){function t(e,n,i){var r;return g(this,t),r=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(r),r.constructor),r.name="HttpError",r.code=n,r.headers=i,r}return _(t,e),m(t)}(b(Error))},99318:function(e,t,n){var i=n(99006);function r(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}e.exports=i(r),e.exports.strict=i(s),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},78320:function(){var e,t;t=e||(e={}),function(e){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(t);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=t:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,o=!s&&!a,u={create:s?function(){return P(Object.create(null))}:a?function(){return P({__proto__:null})}:function(){return P({})},has:o?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:o?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r=0;--n){var i=(0,e[n])(t);if(!S(i)&&!E(i)){if(!M(i))throw new TypeError;t=i}}return t}(e,t)}if(!x(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(i)&&!S(i)&&!E(i))throw new TypeError;return E(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t,n,i);if(!S(s)&&!E(s)){if(!T(s))throw new TypeError;i=s}}return i}(e,t,n=D(n),i)}),e("metadata",function(e,t){return function(n,i){if(!T(n))throw new TypeError;if(!S(i)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;_(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!T(n))throw new TypeError;return S(i)||(i=D(i)),_(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),m(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),v(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),y(e,t,n)}),e("getMetadataKeys",function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=D(t)),b(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=D(t)),k(e,t)}),e("deleteMetadata",function(e,t,n){if(!T(t))throw new TypeError;S(n)||(n=D(n));var i=f(t,n,!1);if(S(i)||!i.delete(e))return!1;if(i.size>0)return!0;var r=p.get(t);return r.delete(n),r.size>0||p.delete(t),!0})}(i)}()},25547:function(e,t,n){"use strict";e=n.hmd(e),function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(i){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e)},13941:function(e,t,n){"use strict";n.d(t,{ej:function(){return o},kG:function(){return u},U6:function(){return p}});var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},r="Invariant Violation",s=Object.setPrototypeOf,a=void 0===s?function(e,t){return e.__proto__=t,e}:s,o=function(e){function t(n){void 0===n&&(n=r);var i=e.call(this,"number"==typeof n?r+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return i.framesToPop=1,i.name=r,a(i,t.prototype),i}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function u(e,t){if(!e)throw new o(t)}var l,c=["log","warn","error","silent"],d=c.indexOf("log");function h(e){return function(){if(c.indexOf(e)>=d)return console[e].apply(console,arguments)}}function p(e){var t=c[d];return d=Math.max(0,c.indexOf(e)),t}(l=u||(u={})).log=h("log"),l.warn=h("warn"),l.error=h("error");var f={env:{}};if("object"==typeof process)f=process;else try{Function("stub","process = stub")(f)}catch(l){}},57505:function(e,t,n){"use strict";function i(){try{return navigator.userAgent}catch(e){return""}}n.r(t),n.d(t,{getUserAgent:function(){return i}})},99006:function(e){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n1,r=!1,s=arguments[1],a=s;return new n(function(n){return t.subscribe({next:function(t){var s=!r;if(r=!0,!s||i)try{a=e(a,t)}catch(o){return n.error(o)}else a=t},error:function(e){n.error(e)},complete:function(){if(!r&&!i)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i=0&&r.splice(e,1),a()}});r.push(s)},error:function(e){i.error(e)},complete:function(){a()}});function a(){s.closed&&0===r.length&&i.complete()}return function(){r.forEach(function(e){return e.unsubscribe()}),s.unsubscribe()}})}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=d(t,l);if(i){var r=i.call(t);if(Object(r)!==r)throw new TypeError(r+" is not an object");return function(e){return e instanceof k}(r)&&r.constructor===n?r:new n(function(e){return r.subscribe(e)})}if(a("iterator")&&(i=d(t,u)))return new n(function(e){f(function(){if(!e.closed){var n=!0,r=!1,s=void 0;try{for(var a,o=i.call(t)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0)if(e.next(a.value),e.closed)return}catch(u){r=!0,s=u}finally{try{!n&&null!=o.return&&o.return()}finally{if(r)throw s}}e.complete()}})});if(Array.isArray(t))return new n(function(e){f(function(){if(!e.closed){for(var n=0;n",this._properties=n&&n.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,n)}return m(t,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]}},{key:"getZoneWith",value:function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}},{key:"fork",value:function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}},{key:"wrap",value:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),i=this;return function(){return i.runGuarded(n,this,arguments,t)}}},{key:"run",value:function(e,t,n,i){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,i)}finally{P=P.parent}}},{key:"runGuarded",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,i)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{P=P.parent}}},{key:"runTask",value:function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||S).name+"; Execution: "+this.name+")");if(e.state!==E||e.type!==O&&e.type!==A){var i=e.state!=x;i&&e._transitionTo(x,D),e.runCount++;var r=F;F=e,P={parent:P,zone:this};try{e.type==A&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==E&&e.state!==M&&(e.type==O||e.data&&e.data.isPeriodic?i&&e._transitionTo(D,x):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(E,x,E))),P=P.parent,F=r}}}},{key:"scheduleTask",value:function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(e.zone.name));t=t.parent}e._transitionTo(T,E);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(M,T,E),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==T&&e._transitionTo(D,T),e}},{key:"scheduleMicroTask",value:function(e,t,n,i){return this.scheduleTask(new h(L,e,t,n,i,void 0))}},{key:"scheduleMacroTask",value:function(e,t,n,i,r){return this.scheduleTask(new h(A,e,t,n,i,r))}},{key:"scheduleEventTask",value:function(e,t,n,i,r){return this.scheduleTask(new h(O,e,t,n,i,r))}},{key:"cancelTask",value:function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||S).name+"; Execution: "+this.name+")");e._transitionTo(C,D,x);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(M,C),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(E,C),e.runCount=0,e}},{key:"_updateTaskCount",value:function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var i=0;i2&&void 0!==arguments[2]&&arguments[2];if(I.hasOwnProperty(r)){if(!o&&a)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){var u="Zone:"+r;n(u),I[r]=s(e,t,R),i(u,u)}}}])}(),o.__symbol__=s,o),c={name:"",onHasTask:function(e,t,n,i){return e.hasTask(n,i)},onScheduleTask:function(e,t,n,i){return e.scheduleTask(n,i)},onInvokeTask:function(e,t,n,i,r,s){return e.invokeTask(n,i,r,s)},onCancelTask:function(e,t,n,i){return e.cancelTask(n,i)}},d=function(){return m(function e(t,n,i){g(this,e),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=n,this._forkZS=i&&(i&&i.onFork?i:n._forkZS),this._forkDlgt=i&&(i.onFork?n:n._forkDlgt),this._forkCurrZone=i&&(i.onFork?this.zone:n._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:n._interceptZS),this._interceptDlgt=i&&(i.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:n._invokeZS),this._invokeDlgt=i&&(i.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:n._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:n._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:n._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:n._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=i&&i.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?i:c,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,i.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),i.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),i.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))},[{key:"fork",value:function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new l(e,t)}},{key:"intercept",value:function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}},{key:"invoke",value:function(e,t,n,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,i,r):t.apply(n,i)}},{key:"handleError",value:function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}},{key:"scheduleTask",value:function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=L)throw new Error("Task is missing scheduleFn.");k(t)}return n}},{key:"invokeTask",value:function(e,t,n,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,i):t.callback.apply(n,i)}},{key:"cancelTask",value:function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}},{key:"hasTask",value:function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}},{key:"_updateTaskCount",value:function(e,t){var n=this._taskCounts,i=n[e],r=n[e]=i+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=i&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}])}(),h=function(){return m(function t(n,i,r,s,a,o){if(g(this,t),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=i,this.data=s,this.scheduleFn=a,this.cancelFn=o,!r)throw new Error("callback is not defined");this.callback=r;var u=this;this.invoke=n===O&&s&&s.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}},[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(E,T)}},{key:"_transitionTo",value:function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(e,"', expecting state '").concat(t,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=e,e==E&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(e,t,n){e||(e=this),Y++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==Y&&w(),Y--}}}])}(),p=s("setTimeout"),f=s("Promise"),v=s("then"),y=[],_=!1;function b(t){if(u||e[f]&&(u=e[f].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,t)}else e[p](t,0)}function k(e){0===Y&&0===y.length&&b(w),e&&y.push(e)}function w(){if(!_){for(_=!0;y.length;){var e=y;y=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function k(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,S=!("nw"in _)&&void 0!==_.process&&"[object process]"==={}.toString.call(_.process),E=!S&&!w&&!(!v||!y.HTMLElement),T=void 0!==_.process&&"[object process]"==={}.toString.call(_.process)&&!w&&!(!v||!y.HTMLElement),D={},x=function(e){if(e=e||_.event){var t=D[e.type];t||(t=D[e.type]=f("ON_PROPERTY"+e.type));var n,i=this||e.target||_,r=i[t];if(E&&i===y&&"error"===e.type){var s=e;!0===(n=r&&r.call(this,s.message,s.filename,s.lineno,s.colno,s.error))&&e.preventDefault()}else null!=(n=r&&r.apply(this,arguments))&&!n&&e.preventDefault();return n}};function C(n,i,r){var s=e(n,i);if(!s&&r&&e(r,i)&&(s={enumerable:!0,configurable:!0}),s&&s.configurable){var a=f("on"+i+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete s.writable,delete s.value;var o=s.get,u=s.set,l=i.slice(2),c=D[l];c||(c=D[l]=f("ON_PROPERTY"+l)),s.set=function(e){var t=this;!t&&n===_&&(t=_),t&&("function"==typeof t[c]&&t.removeEventListener(l,x),u&&u.call(t,null),t[c]=e,"function"==typeof e&&t.addEventListener(l,x,!1))},s.get=function(){var e=this;if(!e&&n===_&&(e=_),!e)return null;var t=e[c];if(t)return t;if(o){var r=o.call(this);if(r)return s.set.call(this,r),"function"==typeof e.removeAttribute&&e.removeAttribute(i),r}return null},t(n,i,s),n[a]=!0}}}function L(e,t,n){if(t)for(var i=0;i=0&&"function"==typeof i[s.cbIdx]?p(s.name,i[s.cbIdx],s,r):e.apply(t,i)}})}function P(e,t){e[f("OriginalDelegate")]=t}var F=!1,Y=!1;function j(){if(F)return Y;F=!0;try{var e=y.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Y=!0)}catch(e){}return Y}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var i=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],o=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=s("Promise"),l=s("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e.throwOriginal?e.rejection:e})}catch(i){!function(e){n.onUnhandledError(e);try{var i=t[c];"function"==typeof i&&i.call(this,e)}catch(i){}}(i)}};a.length;)e()};var c=s("unhandledPromiseRejectionHandler");function d(e){return e&&e.then}function h(e){return e}function p(e){return R.reject(e)}var f=s("state"),v=s("value"),y=s("finally"),_=s("parentPromiseValue"),b=s("parentPromiseState"),k=null,w=!1;function S(e,t){return function(n){try{D(e,t,n)}catch(i){D(e,!1,i)}}}var E=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},T=s("currentTaskTrace");function D(e,i,s){var u=E();if(e===s)throw new TypeError("Promise resolved with itself");if(e[f]===k){var l=null;try{("object"==typeof s||"function"==typeof s)&&(l=s&&s.then)}catch(c){return u(function(){D(e,!1,c)})(),e}if(i!==w&&s instanceof R&&s.hasOwnProperty(f)&&s.hasOwnProperty(v)&&s[f]!==k)C(s),D(e,s[f],s[v]);else if(i!==w&&"function"==typeof l)try{l.call(s,u(S(e,i)),u(S(e,!1)))}catch(c){u(function(){D(e,!1,c)})()}else{e[f]=i;var c=e[v];if(e[v]=s,e[y]===y&&!0===i&&(e[f]=e[b],e[v]=e[_]),i===w&&s instanceof Error){var d=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;d&&r(s,T,{configurable:!0,enumerable:!1,writable:!0,value:d})}for(var h=0;h4&&void 0!==arguments[4]&&arguments[4],h=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var p=this||e,f=arguments[0];i&&i.transferEventName&&(f=i.transferEventName(f));var m=arguments[1];if(!m)return t.apply(this,arguments);if(S&&"uncaughtException"===f)return t.apply(this,arguments);var g=!1;if("function"!=typeof m){if(!m.handleEvent)return t.apply(this,arguments);g=!0}if(!s||s(t,m,p,arguments)){var v=q&&!!R&&-1!==R.indexOf(f),y=M(arguments[2],v);if(I)for(var _=0;_2}).map(function(e){return e.substring(2)})}Zone.__load_patch("util",function(n,o,u){var p=X(n);u.patchOnProperties=L,u.patchMethod=I,u.bindArguments=b,u.patchMacroTask=R;var f=o.__symbol__("BLACK_LISTED_EVENTS"),m=o.__symbol__("UNPATCHED_EVENTS");n[m]&&(n[f]=n[m]),n[f]&&(o[f]=o[m]=n[f]),u.patchEventPrototype=Q,u.patchEventTarget=W,u.isIEOrEdge=j,u.ObjectDefineProperty=t,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=i,u.ArraySlice=r,u.patchClass=O,u.wrapWithCurrentZone=h,u.filterProperties=K,u.attachOriginToPatched=P,u._redefineProperty=Object.defineProperty,u.patchCallbacks=$,u.getGlobalObjects=function(){return{globalSources:U,zoneSymbolEventNames:B,eventNames:p,isBrowser:E,isMix:T,isNode:S,TRUE_STR:l,FALSE_STR:c,ZONE_SYMBOL_PREFIX:d,ADD_EVENT_LISTENER_STR:s,REMOVE_EVENT_LISTENER_STR:a}}});var ee=f("zoneTask");function te(e,t,n,i){var r=null,s=null;n+=i;var a={};function o(t){var n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=r.apply(e,n.args),t}function u(t){return s.call(e,t.data.handleId)}r=I(e,t+=i,function(n){return function(r,s){if("function"==typeof s[0]){var l={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?s[1]||0:void 0,args:s},c=s[0];s[0]=function(){try{return c.apply(this,arguments)}finally{l.isPeriodic||("number"==typeof l.handleId?delete a[l.handleId]:l.handleId&&(l.handleId[ee]=null))}};var d=p(t,s[0],l,o,u);if(!d)return d;var h=d.data.handleId;return"number"==typeof h?a[h]=d:h&&(h[ee]=d),h&&h.ref&&h.unref&&"function"==typeof h.ref&&"function"==typeof h.unref&&(d.ref=h.ref.bind(h),d.unref=h.unref.bind(h)),"number"==typeof h||h?h:d}return n.apply(e,s)}}),s=I(e,n,function(t){return function(n,i){var r,s=i[0];"number"==typeof s?r=a[s]:(r=s&&s[ee])||(r=s),r&&"string"==typeof r.type?"notScheduled"!==r.state&&(r.cancelFn&&r.data.isPeriodic||0===r.runCount)&&("number"==typeof s?delete a[s]:s&&(s[ee]=null),r.zone.cancelTask(r)):t.apply(e,i)}})}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="clear";te(e,"set",t,"Timeout"),te(e,"set",t,"Interval"),te(e,"set",t,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){te(e,"request","cancel","AnimationFrame"),te(e,"mozRequest","mozCancel","AnimationFrame"),te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],i=0;i0){var r=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],s=0;s2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ge(function(n,i){return he(e(n,i)).pipe(ie(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ve(e,n))})}var ve=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n},[{key:"call",value:function(e,t){return t.subscribe(new ye(e,this.project,this.concurrent))}}])}(),ye=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,t),(i=v(this,t,[e])).project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}])}(fe);function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ge(G,e)}function be(e,t){return t?de(e,t):new Q(ae(e))}function ke(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof s&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof Q?t[0]:_e(i)(be(t,r))}function we(){return function(e){return e.lift(new Se(e))}}var Se=function(){return m(function e(t){g(this,e),this.connectable=t},[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new Ee(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}])}(),Ee=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).connectable=n,i}return _(t,e),m(t,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}])}(U),Te=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return _(t,e),m(t,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Y).add(this.source.subscribe(new xe(this.getSubject(),this))),e.closed&&(this._connection=null,e=Y.EMPTY)),e}},{key:"refCount",value:function(){return we()(this)}}])}(Q),De=function(){var e=Te.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),xe=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).connectable=n,i}return _(t,e),m(t,[{key:"_error",value:function(e){this._unsubscribe(),h(E(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(E(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}])}(X);function Ce(){return new ee}function Me(){return function(e){return we()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,De);return i.source=t,i.subjectFactory=n,i}}(Ce)(e))}}function Le(e){for(var t in e)if(e[t]===Le)return t;throw Error("Could not find renamed property on target object.")}function Ae(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Re=Le({__forward_ref__:Le});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Oe(this())},e}function Fe(e){return Ye(e)?e():e}function Ye(e){return"function"==typeof e&&e.hasOwnProperty(Re)&&e.__forward_ref__===Pe}var je=function(e){function t(e,n){var i;return g(this,t),i=v(this,t,[function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,n)]),i.code=e,i}return _(t,e),m(t)}(b(Error));function qe(e){return"string"==typeof e?e:null==e?"":String(e)}function Ne(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():qe(e)}function He(e,t){var n=t?" in ".concat(t):"";throw new je("201","No provider for ".concat(Ne(e)," found").concat(n))}function Be(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function ze(e){return Ve(e,Ze)||Ve(e,$e)}function Ve(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ge(e){return e&&(e.hasOwnProperty(Qe)||e.hasOwnProperty(Ke))?e[Qe]:null}var We,Ze=Le({"\u0275prov":Le}),Qe=Le({"\u0275inj":Le}),$e=Le({ngInjectableDef:Le}),Ke=Le({ngInjectorDef:Le}),Je=((Je=Je||{})[Je.Default=0]="Default",Je[Je.Host=1]="Host",Je[Je.Self=2]="Self",Je[Je.SkipSelf=4]="SkipSelf",Je[Je.Optional=8]="Optional",Je);function Xe(e){var t=We;return We=e,t}function et(e,t,n){var i=ze(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Je.Optional?null:void 0!==t?t:void He(Oe(e),"Injector")}function tt(e){return{toString:e}.toString()}var nt=((nt=nt||{})[nt.OnPush=0]="OnPush",nt[nt.Default=1]="Default",nt),it=((it=it||{})[it.Emulated=0]="Emulated",it[it.None=2]="None",it[it.ShadowDom=3]="ShadowDom",it),rt="undefined"!=typeof globalThis&&globalThis,st="undefined"!=typeof window&&window,at="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ot=rt||"undefined"!=typeof global&&global||st||at,ut={},lt=[],ct=Le({"\u0275cmp":Le}),dt=Le({"\u0275dir":Le}),ht=Le({"\u0275pipe":Le}),pt=Le({"\u0275mod":Le}),ft=Le({"\u0275loc":Le}),mt=Le({"\u0275fac":Le}),gt=Le({__NG_ELEMENT_ID__:Le}),vt=0;function yt(e){return tt(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===nt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=vt++,n.inputs=St(e.inputs,t),n.outputs=St(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(_t)}:null,n.pipeDefs=s?function(){return("function"==typeof s?s():s).map(bt)}:null,n})}function _t(e){return Tt(e)||function(e){return e[dt]||null}(e)}function bt(e){return function(e){return e[ht]||null}(e)}var kt={};function wt(e){return tt(function(){var t={type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(kt[e.id]=e.type),t})}function St(e,t){if(null==e)return ut;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}var Et=yt;function Tt(e){return e[ct]||null}function Dt(e,t){var n=e[pt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Oe(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ct(e){return Array.isArray(e)&&!0===e[1]}function Mt(e){return 0!=(8&e.flags)}function Lt(e){return 2==(2&e.flags)}function At(e){return 1==(1&e.flags)}function Ot(e){return null!==e.template}function It(e){return 0!=(512&e[2])}function Rt(e,t){return e.hasOwnProperty(mt)?e[mt]:null}var Pt=function(){return m(function e(t,n,i){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i},[{key:"isFirstChange",value:function(){return this.firstChange}}])}();function Ft(){return Yt}function Yt(e){return e.type.prototype.ngOnChanges&&(e.setInput=qt),jt}function jt(){var e=Ht(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ut)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function qt(e,t,n,i){var r=Ht(e)||function(e,t){return e[Nt]=t}(e,{previous:ut,current:null}),s=r.current||(r.current={}),a=r.previous,o=this.declaredInputs[n],u=a[o];s[o]=new Pt(u&&u.currentValue,t,a===ut),e[i]=t}Ft.ngInherit=!0;var Nt="__ngSimpleChanges__";function Ht(e){return e[Nt]||null}var Bt,Ut="http://www.w3.org/2000/svg";function zt(){return void 0!==Bt?Bt:"undefined"!=typeof document?document:void 0}function Vt(e){return!!e.listen}var Gt={createRenderer:function(e,t){return zt()}};function Wt(e){for(;Array.isArray(e);)e=e[0];return e}function Zt(e,t){return Wt(t[e])}function Qt(e,t){return Wt(t[e.index])}function $t(e,t){return e.data[t]}function Kt(e,t){return e[t]}function Jt(e,t){var n=t[e];return xt(n)?n:n[0]}function Xt(e){return 4==(4&e[2])}function en(e){return 128==(128&e[2])}function tn(e,t){return null==t?null:e[t]}function nn(e){e[18]=0}function rn(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var sn={lFrame:Ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function an(){return sn.bindingsEnabled}function on(){return sn.lFrame.lView}function un(){return sn.lFrame.tView}function ln(e){return sn.lFrame.contextLView=e,e[8]}function cn(){for(var e=dn();null!==e&&64===e.type;)e=e.parent;return e}function dn(){return sn.lFrame.currentTNode}function hn(e,t){var n=sn.lFrame;n.currentTNode=e,n.isParent=t}function pn(){return sn.lFrame.isParent}function fn(){sn.lFrame.isParent=!1}function mn(){return sn.isInCheckNoChangesMode}function gn(e){sn.isInCheckNoChangesMode=e}function vn(){var e=sn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yn(){return sn.lFrame.bindingIndex}function _n(){return sn.lFrame.bindingIndex++}function bn(e){var t=sn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kn(e,t){var n=sn.lFrame;n.bindingIndex=n.bindingRootIndex=e,wn(t)}function wn(e){sn.lFrame.currentDirectiveIndex=e}function Sn(e){var t=sn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function En(){return sn.lFrame.currentQueryIndex}function Tn(e){sn.lFrame.currentQueryIndex=e}function Dn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function xn(e,t,n){if(n&Je.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Je.Host||(i=Dn(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var s=sn.lFrame=Mn();return s.currentTNode=t,s.lView=e,!0}function Cn(e){var t=Mn(),n=e[1];sn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Mn(){var e=sn.lFrame,t=null===e?null:e.child;return null===t?Ln(e):t}function Ln(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function An(){var e=sn.lFrame;return sn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var On=An;function In(){var e=An();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rn(){return sn.lFrame.selectedIndex}function Pn(e){sn.lFrame.selectedIndex=e}function Fn(){var e=sn.lFrame;return $t(e.tView,e.selectedIndex)}function Yn(){sn.lFrame.currentNamespace=Ut}function jn(){sn.lFrame.currentNamespace=null}function qn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[o]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}var Vn=m(function e(t,n,i){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function Gn(e,t,n){for(var i=Vt(e),r=0;rt){a=s-1;break}}}for(;s>16}(e),i=t;n>0;)i=i[15],n--;return i}var ei=!0;function ti(e){var t=ei;return ei=e,t}var ni=0;function ii(e,t){var n=si(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ri(i.data,e),ri(t,null),ri(i.blueprint,null));var r=ai(e,t),s=e.injectorIndex;if(Kn(r))for(var a=Jn(r),o=Xn(r,t),u=o[1].data,l=0;l<8;l++)t[s+l]=o[a+l]|u[a+l];return t[s+8]=r,s}function ri(e,t){e.push(0,0,0,0,0,0,0,0,t)}function si(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ai(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var s=r[1],a=s.type;if(null===(i=2===a?s.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function oi(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(gt)&&(i=n[gt]),null==i&&(i=n[gt]=ni++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Je.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(gt)?e[gt]:void 0;return"number"==typeof t?t>=0?255&t:hi:t}(n);if("function"==typeof s){if(!xn(t,e,i))return i&Je.Host?ui(r,n,i):li(t,n,i,r);try{var a=s(i);if(null!=a||i&Je.Optional)return a;He(n)}finally{On()}}else if("number"==typeof s){var o=null,u=si(e,t),l=-1,c=i&Je.Host?t[16][6]:null;for((-1===u||i&Je.SkipSelf)&&(-1!==(l=-1===u?ai(e,t):t[u+8])&&vi(i,!1)?(o=t[1],u=Jn(l),t=Xn(l,t)):u=-1);-1!==u;){var d=t[1];if(gi(s,u,d.data)){var h=pi(u,t,n,o,i,c);if(h!==di)return h}-1!==(l=t[u+8])&&vi(i,t[1].data[u+8]===c)&&gi(s,u,t)?(o=d,u=Jn(l),t=Xn(l,t)):u=-1}}}return li(t,n,i,r)}var di={};function hi(){return new yi(cn(),on())}function pi(e,t,n,i,r,s){var a=t[1],o=a.data[e+8],u=fi(o,a,n,null==i?Lt(o)&&ei:i!=a&&0!=(3&o.type),r&Je.Host&&s===o);return null!==u?mi(t,a,u,o):di}function fi(e,t,n,i,r){for(var s=e.providerIndexes,a=t.data,o=1048575&s,u=e.directiveStart,l=s>>20,c=r?o+l:e.directiveEnd,d=i?o:o+l;d=u&&h.type===n)return d}if(r){var p=a[u];if(p&&Ot(p)&&p.type===n)return u}return null}function mi(e,t,n,i){var r=e[n],s=t.data;if(function(e){return e instanceof Vn}(r)){var a=r;a.resolving&&function(e,t){throw new je("200","Circular dependency in DI detected for ".concat(e))}(Ne(s[n]));var o=ti(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Xe(a.injectImpl):null;xn(e,i,Je.Default);try{r=e[n]=a.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,s=i.ngOnInit,a=i.ngDoCheck;if(r){var o=Yt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,s[n],t)}finally{null!==u&&Xe(u),ti(o),a.resolving=!1,On()}}return r}function gi(e,t,n){return!!(n[t+(e>>5)]&1<1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Mi),Ai=Di("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Mi),Oi=Function;function Ii(e,t){void 0===t&&(t=e);for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function qi(e,t){var n=Ni(e,t);if(n>=0)return e[1|n]}function Ni(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var s=i+(r-i>>1),a=e[s<<1];if(t===a)return s<<1;a>t?r=s:i=s+1}return~(r<<1)}(e,t)}var Hi,Bi={},Ui="__NG_DI_FLAG__",zi="ngTempTokenPath",Vi=/\n/gm,Gi="__source",Wi=Le({provide:String,useValue:Le});function Zi(e){var t=Hi;return Hi=e,t}function Qi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.Default;if(void 0===Hi)throw new Error("inject() must be called from an injection context");return null===Hi?et(e,void 0,t):Hi.get(e,t&Je.Optional?null:void 0,t)}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.Default;return(We||Qi)(Fe(e),t)}var Ki=$i;function Ji(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Oe(t);if(Array.isArray(t))r=t.map(Oe).join(" -> ");else if("object"==typeof t){var s=[];for(var a in t)if(t.hasOwnProperty(a)){var o=t[a];s.push(a+":"+("string"==typeof o?JSON.stringify(o):Oe(o)))}r="{".concat(s.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Vi,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[zi]=null,e}var nr=Xi(Ti("Inject",function(e){return{token:e}}),-1),ir=Xi(Ti("Optional"),8),rr=Xi(Ti("SkipSelf"),4),sr=((sr=sr||{})[sr.Important=1]="Important",sr[sr.DashCase=2]="DashCase",sr),ar="__ngContext__";function or(e,t){e[ar]=t}function ur(e){var t=function(e){return e[ar]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function lr(e,t){return(void 0)(e,t)}function cr(e){var t=e[3];return Ct(t)?t[3]:t}function dr(e){return pr(e[13])}function hr(e){return pr(e[4])}function pr(e){for(;null!==e&&!Ct(e);)e=e[4];return e}function fr(e,t,n,i,r){if(null!=i){var s,a=!1;Ct(i)?s=i:xt(i)&&(a=!0,i=i[0]);var o=Wt(i);0===e&&null!==n?null==r?wr(t,n,o):kr(t,n,o,r||null,!0):1===e&&null!==n?kr(t,n,o,r||null,!0):2===e?function(e,t,n){var i=Er(e,t);i&&function(e,t,n,i){Vt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,o,a):3===e&&t.destroyNode(o),null!=s&&function(e,t,n,i,r){var s=n[7];s!==Wt(n)&&fr(t,e,i,s,r);for(var a=10;a0&&(e[n-1][4]=i[4]);var s=Fi(e,10+t);!function(e,t){Rr(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=s[19];null!==a&&a.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function yr(e,t){if(!(256&t[2])){var n=t[11];Vt(n)&&n.destroyNode&&Rr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return _r(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&_r(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&_r(t[1],t),n=t&&t[4]}t=n}}(t)}}function _r(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{var c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(var d=r+1;d"+e;try{var t=(new window.DOMParser).parseFromString(jr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}])}(),$r=function(){return m(function e(t){if(g(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}},[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=jr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=jr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();os.hasOwnProperty(t)&&!rs.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ms(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}])}(),ps=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fs=/([^\#-~ |!])/g;function ms(e){return e.replace(/&/g,"&").replace(ps,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function gs(e,t){var n=null;try{is=is||function(e){var t=new $r(e);return function(){try{return!!(new window.DOMParser).parseFromString(jr(""),"text/html")}catch(e){return!1}}()?new Qr(t):t}(e);var i=t?String(t):"";n=is.getInertBodyElement(i);var r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=is.getInertBodyElement(i)}while(i!==s);return jr((new hs).sanitizeChildren(vs(n)||n))}finally{if(n)for(var a=vs(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function vs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ys=((ys=ys||{})[ys.NONE=0]="NONE",ys[ys.HTML=1]="HTML",ys[ys.STYLE=2]="STYLE",ys[ys.SCRIPT=3]="SCRIPT",ys[ys.URL=4]="URL",ys[ys.RESOURCE_URL=5]="RESOURCE_URL",ys);function _s(e){var t=ks();return t?qr(t.sanitize(ys.HTML,e)||""):Wr(e,"HTML")?qr(Gr(e)):gs(zt(),qe(e))}function bs(e){var t=ks();return t?t.sanitize(ys.URL,e)||"":Wr(e,"URL")?Gr(e):Xr(qe(e))}function ks(){var e=on();return e&&e[12]}function ws(e){return e.ngOriginalError}function Ss(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;is?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==xs(h,l,0)||2&i&&l!==d){if(Is(i))return!1;a=!0}}}}else{if(!a&&!Is(i)&&!Is(u))return!1;if(a&&Is(u))continue;a=!1,i=u|1&i}}return Is(i)||a}function Is(e){return 0==(1&e)}function Rs(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var s=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+o+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Is(a)&&(t+=Ys(s,r),r=""),i=a,s=s||!Is(i);n++}return""!==r&&(t+=Ys(s,r)),t}var qs={};function Ns(e){Hs(un(),on(),Rn()+e,mn())}function Hs(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Nn(t,r,n)}else{var s=e.preOrderHooks;null!==s&&Hn(t,s,0,n)}Pn(n)}function Bs(e,t){return e<<17|t<<2}function Us(e){return e>>17&32767}function zs(e){return 2|e}function Vs(e){return(131068&e)>>2}function Gs(e,t){return-131069&e|t<<2}function Ws(e){return 1|e}function Zs(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&Hs(e,t,20,mn()),n(i,r)}finally{Pn(s)}}function na(e,t,n){if(Mt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Qt,i=t.localNames;if(null!==i)for(var r=t.index+1,s=0;s0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(o)!=u&&o.push(u),o.push(i,r,a)}}function ha(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function pa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function fa(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&wa(n)}}function wa(e){for(var t=dr(e);null!==t;t=hr(t))for(var n=10;n0&&wa(i)}var s=e[1].components;if(null!==s)for(var a=0;a0&&wa(o)}}function Sa(e,t){var n=Jt(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Bi;if(t===Bi){var n=new Error("NullInjectorError: No provider for ".concat(Oe(e),"!"));throw n.name="NullInjectorError",n}return t}}])}(),Na=new xi("Set Injector scope."),Ha={},Ba={};function Ua(){return void 0===Ya&&(Ya=new qa),Ya}function za(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Va(e,n,t||Ua(),i)}var Va=function(){return m(function e(t,n,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ri(n,function(e){return r.processProvider(e,t,n)}),Ri([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ja,Za(void 0,this));var o=this.records.get(Na);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof t?null:Oe(t))},[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je.Default;this.assertNotDestroyed();var i=Zi(this),r=Xe(void 0);try{if(!(n&Je.SkipSelf)){var s=this.records.get(e);if(void 0===s){var a=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof xi}(e)&&ze(e);s=a&&this.injectableDefInScope(a)?Za(Ga(e),Ha):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}return(n&Je.Self?Ua():this.parent).get(e,t=n&Je.Optional&&t===Bi?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[zi]=o[zi]||[]).unshift(Oe(e)),i)throw o;return tr(o,e,"R3InjectorError",this.source)}throw o}finally{Xe(r),Zi(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Oe(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Fe(e)))return!1;var r=Ge(e),s=null==r&&e.ngModule||void 0,a=void 0===s?e:s,o=-1!==n.indexOf(a);if(void 0!==s&&(r=Ge(s)),null==r)return!1;if(null!=r.imports&&!o){var u;n.push(a);try{Ri(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(){var e=u[c],t=e.ngModule,n=e.providers;Ri(n,function(e){return i.processProvider(e,t,n||lt)})},c=0;c0){var n=Yi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Oe(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Ze]||e[$e]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Wa(e,t,n){var i;if($a(e)){var r=Fe(e);return Rt(r)||Ga(r)}if(Qa(e))i=function(){return Fe(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,d(Ji(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return $i(Fe(e.useExisting))};else{var s=Fe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Rt(s)||Ga(s);i=function(){return k(s,d(Ji(e.deps)))}}return i}function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Qa(e){return null!==e&&"object"==typeof e&&Wi in e}function $a(e){return"function"==typeof e}var Ka=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=za(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Ja=function(){var e=function(){return m(function e(){g(this,e)},null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ka(e,t,""):Ka(e.providers,e.parent,e.name||"")}}])}();return e.THROW_IF_NOT_FOUND=Bi,e.NULL=new qa,e.\u0275prov=Be({token:e,providedIn:"any",factory:function(){return $i(ja)}}),e.__NG_ELEMENT_ID__=-1,e}();function Xa(e,t){qn(ur(e)[1],cn())}function eo(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(Ot(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var s=e;s.inputs=to(e.inputs),s.declaredInputs=to(e.declaredInputs),s.outputs=to(e.outputs);var a=r.hostBindings;a&&ro(e,a);var o=r.viewQuery,u=r.contentQueries;if(o&&no(e,o),u&&io(e,u),Ae(e.inputs,r.inputs),Ae(e.declaredInputs,r.declaredInputs),Ae(e.outputs,r.outputs),Ot(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Qn(r.hostAttrs,n=Qn(n,r.hostAttrs))}}(i)}function to(e){return e===ut?{}:e===lt?[]:e}function no(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function io(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function ro(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var so=null;function ao(){if(!so){var e=ot.Symbol;if(e&&e.iterator)so=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Je.Default,n=on();return null===n?$i(e,t):ci(cn(),n,Fe(e),t)}function _o(e,t,n){var i=on();return ho(i,_n(),t)&&la(un(),Fn(),i,e,t,i[11],n,!1),_o}function bo(e,t,n,i,r){var s=r?"class":"style";Ra(e,n,t.inputs[s],s,i)}function ko(e,t,n,i){var r=on(),s=un(),a=20+e,o=r[11],u=r[a]=mr(o,t,sn.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,a){var o=t.consts,u=$s(t,e,2,r,tn(o,s));return ca(t,n,u,tn(o,a)),null!==u.attrs&&Fa(u,u.attrs,!1),null!==u.mergedAttrs&&Fa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,s,r,0,t,n,i):s.data[a];hn(l,!0);var c=l.mergedAttrs;null!==c&&Gn(o,u,c);var d=l.classes;null!==d&&Yr(o,u,d);var h=l.styles;null!==h&&Fr(o,u,h),64!=(64&l.flags)&&Mr(s,r,u,l),0===sn.lFrame.elementDepthCount&&or(u,r),sn.lFrame.elementDepthCount++,At(l)&&(ia(s,r,l),na(s,l,r)),null!==i&&ra(r,l)}function wo(){var e=cn();pn()?fn():hn(e=e.parent,!1);var t=e;sn.lFrame.elementDepthCount--;var n=un();n.firstCreatePass&&(qn(n,e),Mt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&bo(n,t,on(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&bo(n,t,on(),t.stylesWithoutHost,!1)}function So(e,t,n,i){ko(e,t,n,i),wo()}function Eo(e,t,n){var i=on(),r=un(),s=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var s=t.consts,a=tn(s,i),o=$s(t,e,8,"ng-container",a);return null!==a&&Fa(o,a,!0),ca(t,n,o,tn(s,r)),null!==t.queries&&t.queries.elementStart(t,o),o}(s,r,i,t,n):r.data[s];hn(a,!0);var o=i[s]=i[11].createComment("");Mr(r,i,o,a),or(o,i),At(a)&&(ia(r,i,a),na(r,a,i)),null!=n&&ra(i,a)}function To(){var e=cn(),t=un();pn()?fn():hn(e=e.parent,!1),t.firstCreatePass&&(qn(t,e),Mt(e)&&t.queries.elementEnd(e))}function Do(e,t,n){Eo(e,t,n),To()}function xo(){return on()}function Co(e){return!!e&&"function"==typeof e.then}function Mo(e){return!!e&&"function"==typeof e.subscribe}var Lo=Mo;function Ao(e,t,n,i){var r=on(),s=un(),a=cn();return Io(s,r,r[11],a,e,t,!!n,i),Ao}function Oo(e,t){var n=cn(),i=on(),r=un();return Io(r,i,Oa(Sn(r.data),n,i),n,e,t,!1),Oo}function Io(e,t,n,i,r,s,a,o){var u=At(i),l=e.firstCreatePass&&Aa(e),c=t[8],d=La(t),h=!0;if(3&i.type||o){var p=Qt(i,t),f=o?o(p):p,m=d.length,g=o?function(e){return o(Wt(e[i.index]))}:i.index;if(Vt(n)){var v=null;if(!o&&u&&(v=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var s=0;su?o[u]:null}"string"==typeof a&&(s+=2)}return null}(e,t,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=s,v.__ngLastListenerFn__=s,h=!1;else{s=Po(i,t,c,s,!1);var y=n.listen(f,r,s);d.push(s,y),l&&l.push(r,g,m,m+1)}}else s=Po(i,t,c,s,!0),f.addEventListener(r,s,a),d.push(s),l&&l.push(r,g,m,a)}else s=Po(i,t,c,s,!1);var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(sn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,sn.lFrame.contextLView))[8]}(e)}function Yo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=on(),r=un(),s=$s(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),fn(),64!=(64&s.flags)&&function(e,t,n){Pr(t[11],0,t,n,br(e,n,t),Tr(n.parent||t[6],n,t))}(r,i,s)}function No(e,t,n){return Ho(e,"",t,"",n),No}function Ho(e,t,n,i,r){var s=on(),a=mo(s,t,n,i);return a!==qs&&la(un(),Fn(),s,e,a,s[11],r,!1),Ho}function Bo(e,t,n,i,r){for(var s=e[n+1],a=null===t,o=i?Us(s):Vs(s),u=!1;0!==o&&(!1===u||a);){var l=e[o+1];Uo(e[o],t)&&(u=!0,e[o+1]=i?Ws(l):zs(l)),o=i?Us(l):Vs(l)}u&&(e[n+1]=i?zs(s):Ws(s))}function Uo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ni(e,t)>=0}var zo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vo(e){return e.substring(zo.key,zo.keyEnd)}function Go(e,t){var n=zo.textEnd;return n===t?-1:(t=zo.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,zo.key=t,n),Wo(e,t,n))}function Wo(e,t,n){for(;t=0;n=Go(t,n))ji(e,Vo(t),!0)}function Ko(e,t,n,i){var r=on(),s=un(),a=bn(2);s.firstUpdatePass&&Xo(s,e,a,i),t!==qs&&ho(r,a,t)&&nu(s,s.data[Rn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Oe(Gr(e)))),e}(t,n),i,a)}function Jo(e,t){return t>=e.expandoStartIndex}function Xo(e,t,n,i){var r=e.data;if(null===r[n+1]){var s=r[Rn()],a=Jo(e,n);su(s,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=Sn(e),s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=tu(n=eu(null,e,t,n,i),t.attrs,i),s=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=eu(r,e,t,n,i),null===s){var o=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Vs(i))return e[Us(i)]}(e,t,i);void 0!==o&&Array.isArray(o)&&function(e,t,n,i){e[Us(n?t.classBindings:t.styleBindings)]=i}(e,t,i,o=tu(o=eu(null,e,t,o[1],i),t.attrs,i))}else s=function(e,t,n){for(var i,r=t.directiveEnd,s=1+t.directiveStylingLast;s0)&&(c=!0)}else l=n;if(r)if(0!==u){var h=Us(e[o+1]);e[i+1]=Bs(h,o),0!==h&&(e[h+1]=Gs(e[h+1],i)),e[o+1]=function(e,t){return 131071&e|t<<17}(e[o+1],i)}else e[i+1]=Bs(o,0),0!==o&&(e[o+1]=Gs(e[o+1],i)),o=i;else e[i+1]=Bs(u,0),0===o?o=i:e[u+1]=Gs(e[u+1],i),u=i;c&&(e[i+1]=zs(e[i+1])),Bo(e,l,i,!0),Bo(e,l,i,!1),function(e,t,n,i,r){var s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ni(s,t)>=0&&(n[i+1]=Ws(n[i+1]))}(t,l,e,i,s),a=Bs(o,u),s?t.classBindings=a:t.styleBindings=a}(r,s,t,n,a,i)}}function eu(e,t,n,i,r){var s=null,a=n.directiveEnd,o=n.directiveStylingLast;for(-1===o?o=n.directiveStart:o++;o0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[r+1];h===qs&&(h=d?lt:void 0);var p=d?qi(h,i):c===i?h:void 0;if(l&&!ru(p)&&(p=qi(u,i)),ru(p)&&(a=p,o))return a;var f=e[r+1];r=o?Us(f):Vs(f)}if(null!==t){var m=s?t.residualClasses:t.residualStyles;null!=m&&(a=qi(m,i))}return a}function ru(e){return void 0!==e}function su(e,t){return 0!=(e.flags&(t?16:32))}function au(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=on(),i=un(),r=e+20,s=i.firstCreatePass?$s(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Vt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Mr(i,n,a,s),hn(s,!1)}function ou(e){return uu("",e,""),ou}function uu(e,t,n){var i=on(),r=mo(i,e,t,n);return r!==qs&&Pa(i,Rn(),r),uu}function lu(e,t,n,i,r){var s=on(),a=function(e,t,n,i,r,s){var a=po(e,yn(),n,r);return bn(2),a?t+qe(n)+i+qe(r)+s:qs}(s,e,t,n,i,r);return a!==qs&&Pa(s,Rn(),a),lu}function cu(e,t,n){var i=on();return ho(i,_n(),t)&&la(un(),Fn(),i,e,t,i[11],n,!0),cu}function du(e,t,n){var i=on();if(ho(i,_n(),t)){var r=un(),s=Fn();la(r,s,i,e,t,Oa(Sn(r.data),s,i),n,!0)}return du}var hu=void 0,pu=["en",[["a","p"],["AM","PM"],hu],[["AM","PM"],hu,hu],[["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"]],hu,[["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"]],hu,[["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}",hu,"{1} 'at' {0}",hu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],fu={};function mu(e){return e in fu||(fu[e]=ot.ng&&ot.ng.common&&ot.ng.common.locales&&ot.ng.common.locales[e]),fu[e]}var gu=((gu=gu||{})[gu.LocaleId=0]="LocaleId",gu[gu.DayPeriodsFormat=1]="DayPeriodsFormat",gu[gu.DayPeriodsStandalone=2]="DayPeriodsStandalone",gu[gu.DaysFormat=3]="DaysFormat",gu[gu.DaysStandalone=4]="DaysStandalone",gu[gu.MonthsFormat=5]="MonthsFormat",gu[gu.MonthsStandalone=6]="MonthsStandalone",gu[gu.Eras=7]="Eras",gu[gu.FirstDayOfWeek=8]="FirstDayOfWeek",gu[gu.WeekendRange=9]="WeekendRange",gu[gu.DateFormat=10]="DateFormat",gu[gu.TimeFormat=11]="TimeFormat",gu[gu.DateTimeFormat=12]="DateTimeFormat",gu[gu.NumberSymbols=13]="NumberSymbols",gu[gu.NumberFormats=14]="NumberFormats",gu[gu.CurrencyCode=15]="CurrencyCode",gu[gu.CurrencySymbol=16]="CurrencySymbol",gu[gu.CurrencyName=17]="CurrencyName",gu[gu.Currencies=18]="Currencies",gu[gu.Directionality=19]="Directionality",gu[gu.PluralCase=20]="PluralCase",gu[gu.ExtraData=21]="ExtraData",gu),vu="en-US";function yu(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function _u(e,t,n,i,r){if(e=Fe(e),Array.isArray(e))for(var s=0;s>20;if($a(e)||!e.multi){var f=new Vn(l,r,yo),m=wu(u,t,r?d:d+p,h);-1===m?(oi(ii(c,o),a,u),bu(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(f),o.push(f)):(n[m]=f,o[m]=f)}else{var g=wu(u,t,d+p,h),v=wu(u,t,d,d+p),y=g>=0&&n[g],_=v>=0&&n[v];if(r&&!_||!r&&!y){oi(ii(c,o),a,u);var b=function(e,t,n,i,r){var s=new Vn(e,n,yo);return s.multi=[],s.index=t,s.componentProviders=0,ku(s,r,i&&!n),s}(r?Eu:Su,n.length,r,i,l);!r&&_&&(n[v].providerFactory=b),bu(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),o.push(b)}else bu(a,e,g>-1?g:v,ku(n[r?v:g],l,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function bu(e,t,n,i){var r=$a(t);if(r||function(e){return!!e.useClass}(t)){var s=(t.useClass||t).prototype.ngOnDestroy;if(s){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var o=a.indexOf(n);-1===o?a.push(n,[i,s]):a[o+1].push(i,s)}else a.push(n,s)}}}function ku(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wu(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=un();if(i.firstCreatePass){var r=Ot(e);_u(n,i.data,i.blueprint,r,!0),_u(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var xu=m(function e(){g(this,e)}),Cu=function(){return m(function e(){g(this,e)},[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Oe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}])}(),Mu=function(){var e=m(function e(){g(this,e)});return e.NULL=new Cu,e}();function Lu(){}function Au(e,t){return new Iu(Qt(e,t))}var Ou=function(){return Au(cn(),on())},Iu=function(){var e=m(function e(t){g(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Ou,e}();function Ru(e){return e instanceof Iu?e.nativeElement:e}var Pu=m(function e(){g(this,e)}),Fu=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=function(){return Yu()},e}(),Yu=function(){var e=on(),t=Jt(cn().index,e);return function(e){return e[11]}(xt(t)?t:e)},ju=function(){var e=m(function e(){g(this,e)});return e.\u0275prov=Be({token:e,providedIn:"root",factory:function(){return null}}),e}(),qu=m(function e(t){g(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),Nu=new qu("12.2.17"),Hu=function(){return m(function e(){g(this,e)},[{key:"supports",value:function(e){return uo(e)}},{key:"create",value:function(e){return new Uu(e)}}])}(),Bu=function(e,t){return t},Uu=function(){return m(function e(t){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Bu},[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var s=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var s=t[n.index];if(null!==s&&i.push(Wt(s)),Ct(s))for(var a=10;a-1&&(vr(e,n),Fi(t,n))}this._attachedToViewContainer=!1}yr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){oa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ta(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Da(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Da(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,t){Rr(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}])}(),il=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e]))._view=e,n}return _(t,e),m(t,[{key:"detectChanges",value:function(){xa(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{xa(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}])}(nl),rl=function(e){return function(e,t,n){if(Lt(e)&&!n){var i=Jt(e.index,t);return new nl(i,i)}return 47&e.type?new nl(t[16],t):null}(cn(),on(),16==(16&e))},sl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=rl,e}(),al=[new Zu],ol=new Ju([new Hu]),ul=new el(al),ll=function(){return hl(cn(),on())},cl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=ll,e}(),dl=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._declarationLView=e,r._declarationTContainer=n,r.elementRef=i,r}return _(t,e),m(t,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Qs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Js(t,n,e),new nl(n)}}])}(cl);function hl(e,t){return 4&e.type?new dl(t,e,Au(e,t)):null}var pl=m(function e(){g(this,e)}),fl=m(function e(){g(this,e)}),ml=function(){return bl(cn(),on())},gl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=ml,e}(),vl=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._lContainer=e,r._hostTNode=n,r._hostLView=i,r}return _(t,e),m(t,[{key:"element",get:function(){return Au(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new yi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ai(this._hostTNode,this._hostLView);if(Kn(e)){var t=Xn(e,this._hostLView),n=Jn(e);return new yi(t[1].data[n+8],t)}return new yi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=yl(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){var a=s.get(pl,null);a&&(r=a)}var o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}},{key:"insert",value:function(e,n){var i=e._lView,r=i[1];if(function(e){return Ct(e[3])}(i)){var s=this.indexOf(e);if(-1!==s)this.detach(s);else{var a=i[3],o=new t(a,a[6],a[3]);o.detach(o.indexOf(e))}}var u=this._adjustIndex(n),l=this._lContainer;!function(e,t,n,i){var r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}])}(gl);function yl(e){return e[8]}function _l(e){return e[8]||(e[8]=[])}function bl(e,t){var n,i=t[e.index];if(Ct(i))n=i;else{var r;if(8&e.type)r=Wt(i);else{var s=t[11];r=s.createComment("");var a=Qt(e,t);kr(s,Er(s,a),r,function(e,t){return Vt(e)?e.nextSibling(t):t.nextSibling}(s,a),!1)}t[e.index]=n=ba(i,t,r,e),Ea(t,n)}return new vl(n,e,t)}var kl={},wl=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).ngModule=e,n}return _(t,e),m(t,[{key:"resolveComponentFactory",value:function(e){var t=Tt(e);return new Tl(t,this.ngModule)}}])}(Mu);function Sl(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var El=new xi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ts}}),Tl=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).componentDef=e,i.ngModule=n,i.componentType=e.type,i.selector=function(e){return e.map(js).join(",")}(e.selectors),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!n,i}return _(t,e),m(t,[{key:"inputs",get:function(){return Sl(this.componentDef.inputs)}},{key:"outputs",get:function(){return Sl(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,s,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var s=e.get(n,kl,r);return s!==kl||i===kl?s:t.get(n,i,r)}}}(e,i.injector):e,o=a.get(Pu,Gt),u=a.get(ju,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Vt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):mr(o.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Ut:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,p={components:[],scheduler:Ts,clean:Ma,playerHandler:null,flags:0},f=aa(0,null,null,1,0,null,null,null,null,null),m=Qs(null,f,p,h,null,null,o,l,u,a);Cn(m);try{var g=function(e,t,n,i,r,s){var a=n[1];n[20]=e;var o=$s(a,20,2,"#host",null),u=o.mergedAttrs=t.hostAttrs;null!==u&&(Fa(o,u,!0),null!==e&&(Gn(r,e,u),null!==o.classes&&Yr(r,e,o.classes),null!==o.styles&&Fr(r,e,o.styles)));var l=i.createRenderer(e,t),c=Qs(n,sa(t),null,t.onPush?64:16,n[20],o,i,l,null,null);return a.firstCreatePass&&(oi(ii(o,n),a,t.type),pa(a,o),ma(o,n.length,1)),Ea(n,c),n[20]=c}(d,this.componentDef,m,o,l);if(d)if(n)Gn(l,d,["ng-version",Nu.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&Yr(l,d,_.join(" "))}if(s=$t(f,20),void 0!==t)for(var b=s.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ja.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je.Default;return e===Ja||e===pl||e===ja?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}])}(pl),Ml=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).moduleType=e,null!==Dt(e)&&function(e){var t=new Set;!function e(n){var i=Dt(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Oe(t)," vs ").concat(Oe(t.name)))}(r,xl.get(r),n),xl.set(r,n));var s,a=M(Ds(i.imports));try{for(a.s();!(s=a.n()).done;){var o=s.value;t.has(o)||(t.add(o),e(o))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),n}return _(t,e),m(t,[{key:"create",value:function(e){return new Cl(this.moduleType,e)}}])}(fl);function Ll(e,t,n){var i=vn()+e,r=on();return r[i]===qs?co(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Al(e,t,n,i){return Rl(on(),vn(),e,t,n,i)}function Ol(e,t,n,i,r){return function(e,t,n,i,r,s,a){var o=t+n;return po(e,o,r,s)?co(e,o+2,a?i.call(a,r,s):i(r,s)):Il(e,o+2)}(on(),vn(),e,t,n,i,r)}function Il(e,t){var n=e[t];return n===qs?void 0:n}function Rl(e,t,n,i,r,s){var a=t+n;return ho(e,a,r)?co(e,a+1,s?i.call(s,r):i(r)):Il(e,a+1)}function Pl(e,t){var n,i=un(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new je("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var s=n.factory||(n.factory=Rt(n.type)),a=Xe(yo);try{var o=ti(!1),u=s();return ti(o),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,on(),r,u),u}finally{Xe(a)}}function Fl(e,t,n){var i=e+20,r=on(),s=Kt(r,i);return function(e,t){return oo.isWrapped(t)&&(t=oo.unwrap(t),e[yn()]=qs),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?Rl(r,vn(),t,s.transform,n,s):s.transform(n))}function Yl(e){return function(t){setTimeout(e,void 0,t)}}var jl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,t),(e=v(this,t)).__isAsync=n,e}return _(t,e),m(t,[{key:"emit",value:function(e){h(E(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,i){var r,s,a,o=e,u=n||function(){return null},l=i;if(e&&"object"==typeof e){var c=e;o=null===(r=c.next)||void 0===r?void 0:r.bind(c),u=null===(s=c.error)||void 0===s?void 0:s.bind(c),l=null===(a=c.complete)||void 0===a?void 0:a.bind(c)}this.__isAsync&&(u=Yl(u),o&&(o=Yl(o)),l&&(l=Yl(l)));var d=h(E(t.prototype),"subscribe",this).call(this,{next:o,error:u,complete:l});return e instanceof Y&&e.add(d),d}}])}(ee);function ql(){return this._results[ao()]()}var Nl=function(){return m(function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ao(),i=e.prototype;i[n]||(i[n]=ql)},[{key:"changes",get:function(){return this._changes||(this._changes=new jl)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=Ii(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:null;g(this,e),this.predicate=t,this.flags=n,this.read=i}),zl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[o/2]);else{for(var l=s[o+1],c=t[-u],d=10;d0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),Yc=function(){var e=function(){return m(function e(){g(this,e),this._applications=new Map,jc.addToWindow(this)},[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return jc.findTestabilityInTree(this,e,t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),jc=new(function(){return m(function e(){g(this,e)},[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}])}()),qc=!0,Nc=!1;function Hc(){return Nc=!0,qc}var Bc=new xi("AllowMultipleToken"),Uc=m(function e(t,n){g(this,e),this.name=t,this.token=n});function zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new xi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=Vc();if(!s||s.injector.get(Bc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Na,useValue:"platform"});!function(e){if(Rc&&!Rc.destroyed&&!Rc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rc=e.get(Gc);var t=e.get(hc,null);t&&t.forEach(function(e){return e()})}(Ja.create({providers:a,name:i}))}return function(e){var t=Vc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Vc(){return Rc&&!Rc.destroyed?Rc:null}var Gc=function(){var e=function(){return m(function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1},[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new Pc:("zone.js"===e?void 0:e)||new Cc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:Cc,useValue:i}];return i.run(function(){var s=Ja.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(s),o=a.injector.get(Es,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){o.handleError(e)}});a.onDestroy(function(){Qc(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var s=((o=a.injector.get(uc)).runInitializers(),o.donePromise.then(function(){return yu(a.injector.get(gc,vu)||vu),n._moduleDoBootstrap(a),a}));return Co(s)?s.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):s}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var o}(o,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Wc({},n);return function(e,t,n){var i=new Ml(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Zc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Oe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function Wc(e,t){return Array.isArray(t)?t.reduce(Wc,e):Object.assign(Object.assign({},e),t)}var Zc=function(){var e=function(){return m(function e(t,n,i,r,s){var a=this;g(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var o=new Q(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new Q(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Cc.assertNotInAngularZone(),xc(function(){!a._stable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks&&(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Cc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=ke(o,u.pipe(Me()))},[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof xu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get(pl),s=n.create(Ja.NULL,[],t||n.selector,r),a=s.location.nativeElement,o=s.injector.get(Fc,null),u=o&&s.injector.get(Yc);return o&&u&&u.registerApplication(a,o),s.onDestroy(function(){i.detachView(s.hostView),Qc(i.components,s),u&&u.unregisterApplication(a)}),this._loadComponent(s),s}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=M(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Qc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(fc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(Ja),$i(Es),$i(Mu),$i(uc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function Qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $c=m(function e(){g(this,e)}),Kc=m(function e(){g(this,e)}),Jc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xc=function(){var e=function(){return m(function e(t,n){g(this,e),this._compiler=t,this._config=n||Jc},[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=T(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),w(98255)(i).then(function(e){return e[r]}).then(function(e){return ed(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=T(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),w(98255)(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return ed(e,n,i)})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Tc),$i(Kc,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function ed(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var td=zc(null,"core",[{provide:pc,useValue:"unknown"},{provide:Gc,deps:[Ja]},{provide:Yc,deps:[]},{provide:mc,deps:[]}]),nd=[{provide:Zc,useClass:Zc,deps:[Cc,Ja,Es,Mu,uc]},{provide:El,deps:[Cc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:uc,useClass:uc,deps:[[new ir,oc]]},{provide:Tc,useClass:Tc,deps:[]},cc,{provide:Ju,useFactory:function(){return ol},deps:[]},{provide:el,useFactory:function(){return ul},deps:[]},{provide:gc,useFactory:function(e){return yu(e=e||"undefined"!=typeof $localize&&$localize.locale||vu),e},deps:[[new nr(gc),new ir,new rr]]},{provide:vc,useValue:"USD"}],id=function(){var e=m(function e(t){g(this,e)});return e.\u0275fac=function(t){return new(t||e)($i(Zc))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:nd}),e}(),rd=null;function sd(){return rd}var ad=new xi("DocumentToken"),od=function(){var e=function(){return m(function e(){g(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:ud,token:e,providedIn:"platform"}),e}();function ud(){return $i(cd)}var ld=new xi("Location Initialized"),cd=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._doc=e,n._init(),n}return _(t,e),m(t,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return sd().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=sd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=sd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){dd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){dd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}])}(od);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:hd,token:e,providedIn:"platform"}),e}();function dd(){return!!window.history.pushState}function hd(){return new cd($i(ad))}function pd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function fd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function md(e){return e&&"?"!==e[0]?"?"+e:e}var gd=function(){var e=function(){return m(function e(){g(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:vd,token:e,providedIn:"root"}),e}();function vd(e){var t=$i(ad).location;return new _d($i(od),t&&t.origin||"")}var yd=new xi("appBaseHref"),_d=function(){var e=function(e){function t(e,n){var i;if(g(this,t),(i=v(this,t))._platformLocation=e,i._removeListenerFns=[],null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,y(i)}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return pd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+md(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(gd);return e.\u0275fac=function(t){return new(t||e)($i(od),$i(yd,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),bd=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._platformLocation=e,i._baseHref="",i._removeListenerFns=[],null!=n&&(i._baseHref=n),i}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=pd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(gd);return e.\u0275fac=function(t){return new(t||e)($i(od),$i(yd,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),kd=function(){var e=function(){function e(t,n){var i=this;g(this,e),this._subject=new jl,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=fd(Sd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return m(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+md(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Sd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+md(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+md(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(gd),$i(od))},e.normalizeQueryParams=md,e.joinWithSlash=pd,e.stripTrailingSlash=fd,e.\u0275prov=Be({factory:wd,token:e,providedIn:"root"}),e}();function wd(){return new kd($i(gd),$i(od))}function Sd(e){return e.replace(/\/index.html$/,"")}var Ed=((Ed=Ed||{})[Ed.Zero=0]="Zero",Ed[Ed.One=1]="One",Ed[Ed.Two=2]="Two",Ed[Ed.Few=3]="Few",Ed[Ed.Many=4]="Many",Ed[Ed.Other=5]="Other",Ed),Td=m(function e(){g(this,e)}),Dd=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).locale=e,n}return _(t,e),m(t,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=mu(t);if(n)return n;var i=t.split("-")[0];if(n=mu(i))return n;if("en"===i)return pu;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[gu.PluralCase]}(t||this.locale)(e)){case Ed.Zero:return"zero";case Ed.One:return"one";case Ed.Two:return"two";case Ed.Few:return"few";case Ed.Many:return"many";default:return"other"}}}])}(Td);return e.\u0275fac=function(t){return new(t||e)($i(gc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function xd(e,t){t=encodeURIComponent(t);var n,i=M(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,s=r.indexOf("="),a=T(-1==s?[r,""]:[r.slice(0,s),r.slice(s+1)],2),o=a[0],u=a[1];if(o.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var Cd=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null},[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(uo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Oe(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Ju),yo(el),yo(Iu),yo(Fu))},e.\u0275dir=Et({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Md=function(){return m(function e(t,n,i,r){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r},[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}])}(),Ld=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null},[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var s=t._viewContainer.createEmbeddedView(t._template,new Md(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Ad(e,s);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var o=t._viewContainer.get(i);t._viewContainer.move(o,r);var u=new Ad(e,o);n.push(u)}});for(var i=0;i1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},ot.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ot.getAllAngularRootElements=function(){return e.getAllRootElements()},ot.frameworkStabilizers||(ot.frameworkStabilizers=[]),ot.frameworkStabilizers.push(function(e){var t=ot.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?sd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){jc=e}(new e)}}])}(),ih=function(){var e=function(){return m(function e(){g(this,e)},[{key:"build",value:function(){return new XMLHttpRequest}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rh=new xi("EventManagerPlugins"),sh=function(){var e=function(){return m(function e(t,n){var i=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()},[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=s,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&kh.hasOwnProperty(t)&&(t=kh[t]))}return bh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_h.forEach(function(i){i!=n&&wh[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,n,i){return function(r){t.getEventFullKey(r)===e&&i.runGuarded(function(){return n(r)})}}},{key:"_normalizeKey",value:function(e){return"esc"===e?"escape":e}}])}(ah);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),Eh=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return $i(Th)},token:e,providedIn:"root"}),e}(),Th=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._doc=e,n}return _(t,e),m(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case ys.NONE:return t;case ys.HTML:return Wr(t,"HTML")?Gr(t):gs(this._doc,String(t)).toString();case ys.STYLE:return Wr(t,"Style")?Gr(t):t;case ys.SCRIPT:if(Wr(t,"Script"))return Gr(t);throw new Error("unsafe value used in a script context");case ys.URL:return Zr(t),Wr(t,"URL")?Gr(t):Xr(String(t));case ys.RESOURCE_URL:if(Wr(t,"ResourceURL"))return Gr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return function(e){return new Hr(e)}(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return function(e){return new Br(e)}(e)}},{key:"bypassSecurityTrustScript",value:function(e){return function(e){return new Ur(e)}(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return function(e){return new zr(e)}(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return function(e){return new Vr(e)}(e)}}])}(Eh);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return function(e){return new Th(e.get(ad))}($i(ja))},token:e,providedIn:"root"}),e}(),Dh=[{provide:pc,useValue:Vd},{provide:hc,useValue:function(){Jd.makeCurrent(),nh.init()},multi:!0},{provide:ad,useFactory:function(){return function(e){Bt=e}(document),document},deps:[]}],xh=zc(td,"browser",Dh),Ch=[[],{provide:Na,useValue:"root"},{provide:Es,useFactory:function(){return new Es},deps:[]},{provide:rh,useClass:yh,multi:!0,deps:[ad,Cc,pc]},{provide:rh,useClass:Sh,multi:!0,deps:[ad]},[],{provide:fh,useClass:fh,deps:[sh,uh,lc]},{provide:Pu,useExisting:fh},{provide:oh,useExisting:uh},{provide:uh,useClass:uh,deps:[ad]},{provide:Fc,useClass:Fc,deps:[Cc]},{provide:sh,useClass:sh,deps:[rh,Cc]},{provide:Kd,useClass:ih,deps:[]},[]],Mh=function(){var e=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:lc,useValue:t.appId},{provide:eh,useExisting:lc},th]}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(e,12))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:Ch,imports:[zd,id]}),e}();function Lh(){return new Ah($i(ad))}var Ah=function(){var e=function(){return m(function e(t){g(this,e),this._doc=t},[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:Lh,token:e,providedIn:"root"}),e}();function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=e.slice(0,t),r=i.toLowerCase(),s=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(s):n.headers.set(r,[s])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return m(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,d(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var s=this.headers.get(t);if(!s)return;0===(s=s.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}])}(),Nh=function(){return m(function e(){g(this,e)},[{key:"encodeKey",value:function(e){return Uh(e)}},{key:"encodeValue",value:function(e){return Uh(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}])}(),Hh=/%(\d[a-f0-9])/gi,Bh={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Uh(e){return encodeURIComponent(e).replace(Hh,function(e,t){var n;return null!==(n=Bh[t])&&void 0!==n?n:e})}function zh(e){return"".concat(e)}var Vh=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Nh,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=T(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),s=r[0],a=r[1],o=n.get(s)||[];o.push(a),n.set(s,o)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return m(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(zh(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(zh(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}])}(),Gh=function(){return m(function e(){g(this,e),this.map=new Map},[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}])}();function Wh(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Zh(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Qh(e){return"undefined"!=typeof FormData&&e instanceof FormData}var $h=function(){function e(t,n,i,r){var s;if(g(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,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 qh),this.context||(this.context=new Gh),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var o=n.indexOf("?");this.urlWithParams=n+(-1===o?"?":o0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,s=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,o=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,d=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:d,reportProgress:u,responseType:s,withCredentials:o})}}])}(),Kh=((Kh=Kh||{})[Kh.Sent=0]="Sent",Kh[Kh.UploadProgress=1]="UploadProgress",Kh[Kh.ResponseHeader=2]="ResponseHeader",Kh[Kh.DownloadProgress=3]="DownloadProgress",Kh[Kh.Response=4]="Response",Kh[Kh.User=5]="User",Kh),Jh=m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,e),this.headers=t.headers||new qh,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),Xh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,t),(e=v(this,t,[n])).type=Kh.ResponseHeader,e}return _(t,e),m(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(Jh),ep=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,t),(e=v(this,t,[n])).type=Kh.Response,e.body=void 0!==n.body?n.body:null,e}return _(t,e),m(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(Jh),tp=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e,0,"Unknown Error"])).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return _(t,e),m(t)}(Jh);function np(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var ip=function(){var e=function(){return m(function e(t){g(this,e),this.handler=t},[{key:"request",value:function(e,t){var n,i,r,s=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof $h?n=e:(i=a.headers instanceof qh?a.headers:new qh(a.headers),a.params&&(r=a.params instanceof Vh?a.params:new Vh({fromObject:a.params})),n=new $h(e,t,void 0!==a.body?a.body:null,{headers:i,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var o=Oh(n).pipe(Ih(function(e){return s.handler.handle(e)}));if(e instanceof $h||"events"===a.observe)return o;var u=o.pipe(Rh(function(e){return e instanceof ep}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(ie(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(ie(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(ie(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return u.pipe(ie(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Vh).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,np(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,np(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,np(n,t))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Yh))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rp=function(){return m(function e(t,n){g(this,e),this.next=t,this.interceptor=n},[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}])}(),sp=new xi("HTTP_INTERCEPTORS"),ap=function(){var e=function(){return m(function e(){g(this,e)},[{key:"intercept",value:function(e,t){return t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),op=/^\)\]\}',?\n/,up=function(){var e=function(){return m(function e(t){g(this,e),this.xhrFactory=t},[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Q(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var s=e.responseType.toLowerCase();i.responseType="json"!==s?s:"text"}var a=e.serializeBody(),o=null,u=function(){if(null!==o)return o;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new qh(i.getAllResponseHeaders()),s=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return o=new Xh({headers:r,status:t,statusText:n,url:s})},l=function(){var t=u(),r=t.headers,s=t.status,a=t.statusText,o=t.url,l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);var c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(op,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,c&&(c=!1,l={error:h,text:l})}}c?(n.next(new ep({body:l,headers:r,status:s,statusText:a,url:o||void 0})),n.complete()):n.error(new tp({error:l,headers:r,status:s,statusText:a,url:o||void 0}))},c=function(e){var t=u().url,r=new tp({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(u()),d=!0);var r={type:Kh.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:Kh.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:Kh.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Kd))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),lp=new xi("XSRF_COOKIE_NAME"),cp=new xi("XSRF_HEADER_NAME"),dp=m(function e(){g(this,e)}),hp=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0},[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(pc),$i(lp))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),pp=function(){var e=function(){return m(function e(t,n){g(this,e),this.tokenService=t,this.headerName=n},[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(dp),$i(cp))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),fp=function(){var e=function(){return m(function e(t,n){g(this,e),this.backend=t,this.injector=n,this.chain=null},[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(sp,[]);this.chain=t.reduceRight(function(e,t){return new rp(e,t)},this.backend)}return this.chain.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(jh),$i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),mp=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:pp,useClass:ap}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:lp,useValue:t.cookieName}:[],t.headerName?{provide:cp,useValue:t.headerName}:[]]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[pp,{provide:sp,useExisting:pp,multi:!0},{provide:dp,useClass:hp},{provide:lp,useValue:"XSRF-TOKEN"},{provide:cp,useValue:"X-XSRF-TOKEN"}]}),e}(),gp=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ip,{provide:Yh,useClass:fp},up,{provide:jh,useExisting:up}],imports:[[mp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),vp=m(function e(){g(this,e)}),yp="*";function _p(e,t){return{type:7,name:e,definitions:t,options:{}}}function bp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function wp(e){return{type:6,styles:e,offset:null}}function Sp(e,t,n){return{type:0,name:e,styles:t,options:n}}function Ep(e){return{type:5,steps:e}}function Tp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Dp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function xp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Cp(e){Promise.resolve(null).then(e)}var Mp=function(){return m(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Cp(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),Lp=function(){return m(function e(t){var n=this;g(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,s=0,a=this.players.length;0==a?Cp(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++s==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}();function Ap(){return"undefined"!=typeof window&&void 0!==window.document}function Op(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ip(e){switch(e.length){case 0:return new Mp;case 1:return e[0];default:return new Lp(e)}}function Rp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],o=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,o=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),o){case"!":o=r[n];break;case yp:o=s[n];break;default:o=t.normalizeStyleValue(n,i,o,a)}c[i]=o}),i||o.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return o}function Pp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Fp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Fp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Fp(n,"destroy",e))})}}function Fp(e,t,n){var i=n.totalTime,r=Yp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function Yp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!a}}function jp(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function qp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Np=function(e,t){return!1},Hp=function(e,t){return!1},Bp=function(e,t,n){return[]},Up=Op();(Up||"undefined"!=typeof Element)&&(Np=Ap()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},Hp=function(){if(Up||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Hp}(),Bp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function cf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else lf(e,n);return n}function df(e,t,n){return n?t+":"+n+";":""}function hf(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var s=r[1],a=r[2],o=r[3];t.push(Lf(s,o)),"<"==a[0]&&("*"!=s||"*"!=o)&&t.push(Lf(o,s))}(e,n,t)}):n.push(e),n}var Cf=new Set(["true","1"]),Mf=new Set(["false","0"]);function Lf(e,t){var n=Cf.has(e)||Mf.has(e),i=Cf.has(t)||Mf.has(t);return function(r,s){var a="*"==e||e==r,o="*"==t||t==s;return!a&&n&&"boolean"==typeof r&&(a=r?Cf.has(e):Mf.has(e)),!o&&i&&"boolean"==typeof s&&(o=s?Cf.has(t):Mf.has(t)),a&&o}}var Af=new RegExp("s*:selfs*,?","g");function Of(e,t,n){return new If(e).build(t,n)}var If=function(){return m(function e(t){g(this,e),this._driver=t},[{key:"build",value:function(e,t){var n=new Rf(t);return this._resetContextStyleTimingState(n),Tf(this,mf(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,s=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var o=e,u=o.name;u.toString().split(/\s*,\s*/).forEach(function(e){o.name=e,s.push(n.visitState(o,t))}),o.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,s=i||{};if(n.styles.forEach(function(e){if(Pf(e)){var t=e;Object.keys(t).forEach(function(e){vf(t[e]).forEach(function(e){s.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=_f(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=Tf(this,mf(e.animation),t);return{type:1,matchers:xf(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ff(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Tf(n,e,t)}),options:Ff(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,s=e.steps.map(function(e){t.currentTime=i;var s=Tf(n,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:Ff(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Yf(uf(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=Yf(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Yf((n=n||uf(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:wp({});if(5==r.type)i=this.visitKeyframes(r,t);else{var s=e.styles,a=!1;if(!s){a=!0;var o={};n.easing&&(o.easing=n.easing),s=wp(o)}t.currentTime+=n.duration+n.delay;var u=this.visitStyle(s,t);u.isEmptyStep=a,i=u}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==yp?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(Pf(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var s in t)if(t[s].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],o=a[i],u=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(o.startTime,'ms" and "').concat(o.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(r,'ms"')),u=!1),s=o.startTime),u&&(a[i]={startTime:s,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=vf(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,s=[],a=!1,o=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Pf(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Pf(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&r0?r==h?1:d*r:s[r],o=a*m;t.currentTime=p+f.delay+o,f.duration=o,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Tf(this,mf(e.animation),t),options:Ff(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Ff(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ff(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Af,"")),e=e.replace(/@\*/g,nf).replace(/@\w+/g,function(e){return nf+"-"+e.substr(1)}).replace(/:animating/g,sf),[e,t]}(e.selector),s=T(r,2),a=s[0],o=s[1];t.currentQuerySelector=n.length?n+" "+a:a,jp(t.collectedStyles,t.currentQuerySelector,{});var u=Tf(this,mf(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:u,originalSelector:e.selector,options:Ff(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:uf(e.timings,t.errors,!0);return{type:12,animation:Tf(this,mf(e.animation),t),timings:n,options:null}}}])}(),Rf=m(function e(t){g(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Pf(e){return!Array.isArray(e)&&"object"==typeof e}function Ff(e){return e?(e=lf(e)).params&&(e.params=function(e){return e?lf(e):null}(e.params)):e={},e}function Yf(e,t,n){return{duration:e,delay:t,easing:n}}function jf(e,t,n,i,r,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:a,subTimeline:o}}var qf=function(){return m(function e(){g(this,e),this._map=new Map},[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,d(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}])}(),Nf=new RegExp(":enter","g"),Hf=new RegExp(":leave","g");function Bf(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},o=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Uf).buildKeyframes(e,t,n,i,r,s,a,o,u,l)}var Uf=function(){return m(function e(){g(this,e)},[{key:"buildKeyframes",value:function(e,t,n,i,r,s,a,o,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new qf;var c=new Vf(e,t,u,i,r,l,[]);c.options=o,c.currentTimeline.setStyles([s],null,c.errors,o),Tf(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,o)}return d.length?d.map(function(e){return e.buildKeyframes()}):[jf(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?af(n.duration):null,s=null!=n.delay?af(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Tf(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zf);var a=af(s.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Tf(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?af(e.options.delay):0;e.steps.forEach(function(a){var o=t.createSubContext(e.options);s&&o.delayNextStep(s),Tf(n,a,o),r=Math.max(r,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return uf(t.params?yf(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(function(e){s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?af(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=zf);var a=i,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;var u=null;o.forEach(function(i,r){t.currentQueryIndex=r;var o=t.createSubContext(e.options,i);s&&o.delayNextStep(s),i===t.element&&(u=o.currentTimeline),Tf(n,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1),o=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":o=a-o;break;case"full":o=n.currentStaggerTime}var u=t.currentTimeline;o&&u.delayNextStep(o);var l=u.currentTime;Tf(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}])}(),zf={},Vf=function(){function e(t,n,i,r,s,a,o,u){g(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Gf(this._driver,n,0),o.push(this.currentTimeline)}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=af(i.duration)),null!=i.delay&&(r.delay=af(i.delay));var s=i.params;if(s){var a=r.params;a||(a=this.options.params={}),Object.keys(s).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=yf(s[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,s=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=zf,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Wf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,s){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Nf,"."+this._enterClassName)).replace(Hf,"."+this._leaveClassName);var o=this._driver.query(this.element,e,1!=n);0!==n&&(o=n<0?o.slice(o.length+n,o.length):o.slice(0,n)),a.push.apply(a,d(o))}return!r&&0==a.length&&s.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}])}(),Gf=function(){function e(t,n,i,r){g(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return m(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||yp,t._currentKeyframe[e]=yp}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var s=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=yp}):cf(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=yf(a[e],s,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:yp),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(s,a){var o=cf(s,!0);Object.keys(o).forEach(function(e){var i=o[e];"!"==i?t.add(e):i==yp&&n.add(e)}),i||(o.offset=a/e.duration),r.push(o)});var s=t.size?_f(t.values()):[],a=n.size?_f(n.values()):[];if(i){var o=r[0],u=lf(o);o.offset=0,u.offset=1,r=[o,u]}return jf(this.element,r,s,a,this.duration,this.startTime,this.easing,!1)}}])}(),Wf=function(e){function t(e,n,i,r,s,a){var o,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return g(this,t),(o=v(this,t,[e,n,a.delay])).keyframes=i,o.preStyleProps=r,o.postStyleProps=s,o._stretchStartingKeyframe=u,o.timings={duration:a.duration,delay:a.delay,easing:a.easing},o}return _(t,e),m(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var s=[],a=i+n,o=n/a,u=cf(e[0],!1);u.offset=0,s.push(u);var l=cf(e[0],!1);l.offset=Zf(o),s.push(l);for(var c=e.length-1,d=1;d<=c;d++){var h=cf(e[d],!1);h.offset=Zf((n+h.offset*i)/a),s.push(h)}i=a,n=0,r="",e=s}return jf(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}])}(Gf);function Zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Qf=m(function e(){g(this,e)}),$f=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"normalizePropertyName",value:function(e,t){return kf(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",s=n.toString().trim();if(Kf[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return s+r}}])}(Qf),Kf=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Jf(e,t,n,i,r,s,a,o,u,l,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:a,timelines:o,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:h}}var Xf={},em=function(){return m(function e(t,n,i){g(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i},[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}},{key:"build",value:function(e,t,n,i,r,s,a,o,u,l){var c=[],d=this.ast.options&&this.ast.options.params||Xf,h=this.buildStyles(n,a&&a.params||Xf,c),p=o&&o.params||Xf,f=this.buildStyles(i,p,c),m=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},d),p)},b=l?[]:Bf(e,t,this.ast.animation,r,s,h,f,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Jf(t,this._triggerName,n,i,y,h,f,[],[],g,v,k,c);b.forEach(function(e){var n=e.element,i=jp(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=jp(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var w=_f(m.values());return Jf(t,this._triggerName,n,i,y,h,f,b,w,g,v,k)}}])}(),tm=function(){return m(function e(t,n,i){g(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i},[{key:"buildStyles",value:function(e,t){var n=this,i={},r=lf(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var s=e;Object.keys(s).forEach(function(e){var a=s[e];a.length>1&&(a=yf(a,r,t));var o=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,o,a,t),i[o]=a})}}),i}}])}(),nm=function(){return m(function e(t,n,i){var r=this;g(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new tm(e.style,e.options&&e.options.params||{},i)}),im(this.states,"true","1"),im(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new em(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new em(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)},[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}])}();function im(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var rm=new qf,sm=function(){return m(function e(t,n,i){g(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]},[{key:"register",value:function(e,t){var n=[],i=Of(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Rp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],a=this._animations[e],o=new Map;if(a?(n=Bf(this._driver,t,a,Xp,ef,{},{},r,rm,s)).forEach(function(e){var t=jp(o,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),n=[]),s.length)throw new Error("Unable to create the animation due to the following errors: ".concat(s.join("\n")));o.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,yp)})});var u=Ip(n.map(function(e){var t=o.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=Yp(t,"","","");return Pp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}])}(),am="ng-animate-queued",om="ng-animate-disabled",um=".ng-animate-disabled",lm=[],cm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hm="__ng_removed",pm=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";g(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(i?t.value:t),i){var r=lf(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})},[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}])}(),fm="void",mm=new pm(fm),gm=function(){return m(function e(t,n,i){g(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Em(n,this._hostClassName)},[{key:"listen",value:function(e,t,n,i){var r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(n))throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var s=jp(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};s.push(a);var o=jp(this._engine.statesByElement,e,{});return o.hasOwnProperty(t)||(Em(e,tf),Em(e,tf+"-"+t),o[t]=mm),function(){r._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),r._triggers[t]||delete o[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(t),a=new ym(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Em(e,tf),Em(e,tf+"-"+t),this._engine.statesByElement.set(e,o={}));var u=o[t],l=new pm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),o[t]=l,u||(u=mm),l.value===fm||u.value!==l.value){var c=jp(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=s.matchTransition(u.value,l.value,e,l.params),h=!1;if(!d){if(!r)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:u,toState:l,player:a,isFallbackTransition:h}),h||(Em(e,am),a.onStart(function(){Tm(e,am)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(s,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Em(e,om)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Tm(e,om))}},{key:"removeNode",value:function(e,t,n,i){if(_m(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[hm]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return _m(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,nf,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,sf,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Ip(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[hm];if(n&&n.setForRemoval){if(e[hm]=cm,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,um)&&this.markElementAsDisabled(e,!1),this.driver.query(e,um,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(function(e){var t=e.player,s=e.element;if(T.push(t),n.collectedEnterElements.length){var c=s[hm];if(c&&c.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,s),p=S.get(s),f=m.get(s),g=n._buildInstruction(e,i,f,p,d);if(g.errors&&g.errors.length)D.push(g);else{if(d)return t.onStart(function(){return ff(s,g.fromStyles)}),t.onDestroy(function(){return pf(s,g.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return ff(s,g.fromStyles)}),t.onDestroy(function(){return pf(s,g.toStyles)}),void r.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(s,g.timelines),a.push({instruction:g,player:t,element:s}),g.queriedElements.forEach(function(e){return jp(o,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(D.length){var C=[];D.forEach(function(e){C.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return C.push("- ".concat(e,"\n"))})}),T.forEach(function(e){return e.destroy()}),this.reportError(C)}var M=new Map,L=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,M))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){jp(M,t,[]).push(e),e.destroy()})});var A=v.filter(function(e){return Cm(e,u,l)}),O=new Map;km(O,this.driver,_,l,yp).forEach(function(e){Cm(e,u,l)&&A.push(e)});var I=new Map;f.forEach(function(e,t){km(I,n.driver,new Set(e),u,"!")}),A.forEach(function(e){var t=O.get(e),n=I.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var R=[],P=[],F={};a.forEach(function(e){var t=e.element,a=e.player,o=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return pf(t,o.toStyles)}),a.disabled=!0,a.overrideTotalTime(o.totalTime),void r.push(a);var u=F;if(L.size>1){for(var l=t,d=[];l=l.parentNode;){var h=L.get(l);if(h){u=h;break}d.push(l)}d.forEach(function(e){return L.set(e,u)})}var p=n._buildAnimation(a.namespaceId,o,M,s,I,O);if(a.setRealPlayer(p),u===F)R.push(a);else{var f=n.playersByElement.get(u);f&&f.length&&(a.parentPlayer=Ip(f)),r.push(a)}}else ff(t,o.fromStyles),a.onDestroy(function(){return pf(t,o.toStyles)}),P.push(a),c.has(t)&&r.push(a)}),P.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=Ip(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var Y=0;Y0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Mp(e.duration,e.delay)}}])}(),ym=function(){return m(function e(t,n,i){g(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Mp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0},[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Pp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){jp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}])}();function _m(e){return e&&1===e.nodeType}function bm(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function km(e,t,n,i,r){var s=[];n.forEach(function(e){return s.push(bm(e))});var a=[];i.forEach(function(n,i){var s={};n.forEach(function(e){var n=s[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[hm]=dm,a.push(i))}),e.set(i,s)});var o=0;return n.forEach(function(e){return bm(e,s[o++])}),a}function wm(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function s(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:s(a),r.set(e,t),t}return t.forEach(function(e){var t=s(e);1!==t&&n.get(t).push(e)}),n}var Sm="$$classes";function Em(e,t){if(e.classList)e.classList.add(t);else{var n=e[Sm];n||(n=e[Sm]={}),n[t]=!0}}function Tm(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Sm];n&&delete n[t]}}function Dm(e,t,n){Ip(n).onDone(function(){return e.processLeaveNode(t)})}function xm(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}])}();function Lm(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Om(t[0]),t.length>1&&(i=Om(t[t.length-1]))):t&&(n=Om(t)),n||i?new Am(e,n,i):null}var Am=function(){var e=function(){function e(t,n,i){g(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return m(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pf(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pf(this._element,this._initialStyles),this._endStyles&&(pf(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ff(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ff(this._element,this._endStyles),this._endStyles=null),pf(this._element,this._initialStyles),this._state=3)}}])}();return e.initialStylesByElement=new WeakMap,e}();function Om(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Nm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=Bm(e,"").split(","),i=qm(n,t);i>=0&&(n.splice(i,1),Hm(e,"",n.join(",")))}(this._element,this._name))}}])}();function Ym(e,t,n){Hm(e,"PlayState",n,jm(e,t))}function jm(e,t){var n=Bm(e,"");return n.indexOf(",")>0?qm(n.split(","),t):qm([n],t)}function qm(e,t){for(var n=0;n=0)return n;return-1}function Nm(e,t,n){n?e.removeEventListener(Pm,t):e.addEventListener(Pm,t)}function Hm(e,t,n,i){var r=Rm+t;if(null!=i){var s=e.style[r];if(s.length){var a=s.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Bm(e,t){return e.style[Rm+t]||""}var Um=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+s,this._buildStyler()},[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Fm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Df(e.element,i))})}this.currentSnapshot=t}}])}(),zm=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=$p(n),i}return _(t,e),m(t,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(E(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(E(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(E(t.prototype),"destroy",this).call(this))}}])}(Mp),Vm=function(){return m(function e(){g(this,e),this._count=0},[{key:"validateStyleProperty",value:function(e){return Gp(e)}},{key:"matchesElement",value:function(e,t){return Wp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Qp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return $p(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var s=document.createElement("style");return s.textContent=i,s}},{key:"animate",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=s.filter(function(e){return e instanceof Um}),o={};Sf(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=Ef(e,t,o));if(0==n)return new zm(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var d=Lm(e,t),h=new Um(e,t,l,n,i,r,u,d);return h.onDestroy(function(){return function(e){e.parentNode.removeChild(e)}(c)}),h}}])}(),Gm=function(){return m(function e(t,n,i,r){g(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Df(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),Wm=function(){return m(function e(){g(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Zm().toString()),this._cssKeyframesDriver=new Vm},[{key:"validateStyleProperty",value:function(e){return Gp(e)}},{key:"matchesElement",value:function(e,t){return Wp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Qp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);var o={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(o.easing=r);var u={},l=s.filter(function(e){return e instanceof Gm});Sf(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=Lm(e,t=Ef(e,t=t.map(function(e){return cf(e,!1)}),u));return new Gm(e,t,o,c)}}])}();function Zm(){return Ap()&&Element.prototype.animate||{}}var Qm=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),i}return _(t,e),m(t,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?kp(e):e;return Jm(this._renderer,null,t,"register",[n]),new $m(t,this._renderer)}}])}(vp);return e.\u0275fac=function(t){return new(t||e)($i(Pu),$i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),$m=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._id=e,i._renderer=n,i}return _(t,e),m(t,[{key:"create",value:function(e,t){return new Km(this._id,e,t||{},this._renderer)}}])}(function(){return m(function e(){g(this,e)})}()),Km=function(){return m(function e(t,n,i,r){g(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)},[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Xm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}])}(),ng=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[n,i,r])).factory=e,s.namespaceId=n,s}return _(t,e),m(t,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Xm?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,s,a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),o=t.substr(1),u="";return"@"!=o.charAt(0)&&(r=function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(o),o=(s=T(r,2))[0],u=s[1]),this.engine.listen(this.namespaceId,a,o,u,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}])}(tg),ig=function(){var e=function(e){function t(e,n,i){return g(this,t),v(this,t,[e.body,n,i])}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){this.flush()}}])}(Mm);return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(Jp),$i(Qf))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rg=new xi("AnimationModuleType"),sg=[{provide:vp,useClass:Qm},{provide:Qf,useFactory:function(){return new $f}},{provide:Mm,useClass:ig},{provide:Pu,useFactory:function(e,t,n){return new eg(e,t,n)},deps:[fh,Mm,Cc]}],ag=[{provide:Jp,useFactory:function(){return"function"==typeof Zm()?new Wm:new Vm}},{provide:rg,useValue:"BrowserAnimations"}].concat(sg),og=[{provide:Jp,useClass:Kp},{provide:rg,useValue:"NoopAnimations"}].concat(sg),ug=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?og:ag}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:ag,imports:[Mh]}),e}(),lg=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._value=e,n}return _(t,e),m(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var n=h(E(t.prototype),"_subscribe",this).call(this,e);return n&&!n.closed&&e.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new K;return this._value}},{key:"next",value:function(e){h(E(t.prototype),"next",this).call(this,this._value=e)}}])}(ee),cg=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}])}(U),dg=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t)).parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return _(t,e),m(t,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}])}(U);function hg(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new dg(e,n,i);if(!r.closed)return t instanceof Q?t.subscribe(r):ce(t)(r)}var pg={};function fg(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(i){return i.lift(new Ag(e,t,n))}}var Ag=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i},[{key:"call",value:function(e,t){return t.subscribe(new Og(e,this.accumulator,this.seed,this.hasSeed))}}])}(),Og=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e])).accumulator=n,s._seed=i,s.hasSeed=r,s.index=0,s}return _(t,e),m(t,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}])}(U);function Ig(e){return function(t){var n=new Rg(e),i=t.lift(n);return n.caught=i}}var Rg=function(){return m(function e(t){g(this,e),this.selector=t},[{key:"call",value:function(e,t){return t.subscribe(new Pg(e,this.selector,this.caught))}}])}(),Pg=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).selector=n,r.caught=i,r}return _(t,e),m(t,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(s){return void h(E(t.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var i=new pe(this);this.add(i);var r=me(n,i);r!==i&&this.add(r)}}}])}(fe);function Fg(e){return function(t){return 0===e?bg():t.lift(new Yg(e))}}var Yg=function(){return m(function e(t){if(g(this,e),this.total=t,this.total<0)throw new Tg},[{key:"call",value:function(e,t){return t.subscribe(new jg(e,this.total))}}])}(),jg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).total=n,i.ring=new Array,i.count=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Bg;return function(t){return t.lift(new Ng(e))}}var Ng=function(){return m(function e(t){g(this,e),this.errorFactory=t},[{key:"call",value:function(e,t){return t.subscribe(new Hg(e,this.errorFactory))}}])}(),Hg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).errorFactory=n,i.hasValue=!1,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}])}(U);function Bg(){return new vg}function Ug(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new zg(e))}}var zg=function(){return m(function e(t){g(this,e),this.defaultValue=t},[{key:"call",value:function(e,t){return t.subscribe(new Vg(e,this.defaultValue))}}])}(),Vg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).defaultValue=n,i.isEmpty=!0,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}])}(U);function Gg(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Rh(function(t,n){return e(t,n,i)}):G,Dg(1),n?Ug(t):qg(function(){return new vg}))}}function Wg(){}function Zg(e,t,n){return function(i){return i.lift(new Qg(e,t,n))}}var Qg=function(){return m(function e(t,n,i){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=i},[{key:"call",value:function(e,t){return t.subscribe(new $g(e,this.nextOrObserver,this.error,this.complete))}}])}(),$g=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e]))._tapNext=Wg,s._tapError=Wg,s._tapComplete=Wg,s._tapError=i||Wg,s._tapComplete=r||Wg,S(n)?(s._context=y(s),s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||Wg,s._tapError=n.error||Wg,s._tapComplete=n.complete||Wg),s}return _(t,e),m(t,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}])}(U);function Kg(e){return function(t){return t.lift(new Jg(e))}}var Jg=function(){return m(function e(t){g(this,e),this.callback=t},[{key:"call",value:function(e,t){return t.subscribe(new Xg(e,this.callback))}}])}(),Xg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).add(new Y(n)),i}return _(t,e),m(t)}(U),ev=m(function e(t,n){g(this,e),this.id=t,this.url=n}),tv=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,t),(i=v(this,t,[e,n])).navigationTrigger=r,i.restoredState=s,i}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(ev),nv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).urlAfterRedirects=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}])}(ev),iv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).reason=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(ev),rv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).error=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}])}(ev),sv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),av=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),ov=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t,[e,n])).urlAfterRedirects=i,a.state=r,a.shouldActivate=s,a}return _(t,e),m(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}])}(ev),uv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),lv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),cv=function(){return m(function e(t){g(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}])}(),dv=function(){return m(function e(t){g(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}])}(),hv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),pv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),fv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),mv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),gv=function(){return m(function e(t,n,i){g(this,e),this.routerEvent=t,this.position=n,this.anchor=i},[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}])}(),vv="primary",yv=function(){return m(function e(t){g(this,e),this.params=t||{}},[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}])}();function _v(e){return new yv(e)}var bv="ngNavigationCancelingError";function kv(e){var t=Error("NavigationCancelingError: "+e);return t[bv]=!0,t}function wv(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function xv(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Cv(e){return Lo(e)?e:Co(e)?he(Promise.resolve(e)):Oh(e)}var Mv={exact:function e(t,n,i){if(!jv(t.segments,n.segments)||!Rv(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Ov},Lv={exact:function(e,t){return Sv(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Ev(e[n],t[n])})},ignored:function(){return!0}};function Av(e,t,n){return Mv[n.paths](e.root,t.root,n.matrixParams)&&Lv[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ov(e,t,n){return Iv(e,t,t.segments,n)}function Iv(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!jv(r,n)||t.hasChildren()||!Rv(r,n,i))}if(e.segments.length===n.length){if(!jv(e.segments,n)||!Rv(e.segments,n,i))return!1;for(var s in t.children)if(!e.children[s]||!Ov(e.children[s],t.children[s],i))return!1;return!0}var a=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(jv(e.segments,a)&&Rv(e.segments,a,i)&&e.children[vv])&&Iv(e.children[vv],t,o,i)}function Rv(e,t,n){return t.every(function(t,i){return Lv[n](e[i].parameters,t.parameters)})}var Pv=function(){return m(function e(t,n,i){g(this,e),this.root=t,this.queryParams=n,this.fragment=i},[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_v(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hv.serialize(this)}}])}(),Fv=function(){return m(function e(t,n){var i=this;g(this,e),this.segments=t,this.children=n,this.parent=null,xv(n,function(e,t){return e.parent=i})},[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Bv(this)}}])}(),Yv=function(){return m(function e(t,n){g(this,e),this.path=t,this.parameters=n},[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=_v(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Qv(this)}}])}();function jv(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var qv=m(function e(){g(this,e)}),Nv=function(){return m(function e(){g(this,e)},[{key:"parse",value:function(e){var t=new ey(e);return new Pv(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t="/".concat(Uv(e.root,!0)),n=function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Vv(t),"=").concat(Vv(e))}).join("&"):"".concat(Vv(t),"=").concat(Vv(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams),i="string"==typeof e.fragment?"#".concat(function(e){return encodeURI(e)}(e.fragment)):"";return"".concat(t).concat(n).concat(i)}}])}(),Hv=new Nv;function Bv(e){return e.segments.map(function(e){return Qv(e)}).join("/")}function Uv(e,t){if(!e.hasChildren())return Bv(e);if(t){var n=e.children[vv]?Uv(e.children[vv],!1):"",i=[];return xv(e.children,function(e,t){t!==vv&&i.push("".concat(t,":").concat(Uv(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return xv(e.children,function(e,i){i===vv&&(n=n.concat(t(e,i)))}),xv(e.children,function(e,i){i!==vv&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===vv?[Uv(e.children[vv],!1)]:["".concat(n,":").concat(Uv(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[vv]?"".concat(Bv(e),"/").concat(r[0]):"".concat(Bv(e),"/(").concat(r.join("//"),")")}function zv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vv(e){return zv(e).replace(/%3B/gi,";")}function Gv(e){return zv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wv(e){return decodeURIComponent(e)}function Zv(e){return Wv(e.replace(/\+/g,"%20"))}function Qv(e){return"".concat(Gv(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(Gv(t),"=").concat(Gv(e[t]))}).join("")}(e.parameters))}var $v=/^[^\/()?;=#]+/;function Kv(e){var t=e.match($v);return t?t[0]:""}var Jv=/^[^=?&#]+/,Xv=/^[^?&#]+/,ey=function(){return m(function e(t){g(this,e),this.url=t,this.remaining=t},[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fv([],{}):new Fv([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[vv]=new Fv(e,t)),n}},{key:"parseSegment",value:function(){var e=Kv(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Yv(Wv(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Kv(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Kv(this.remaining);i&&(n=i,this.capture(n))}e[Wv(t)]=Wv(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Jv);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Xv);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Zv(t),s=Zv(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Kv(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=vv);var s=this.parseChildren();t[r]=1===Object.keys(s).length?s[vv]:new Fv([],s),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}])}(),ty=function(){return m(function e(t){g(this,e),this._root=t},[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=ny(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=ny(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=iy(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return iy(e,this._root).map(function(e){return e.value})}}])}();function ny(e,t){if(e===t.value)return t;var n,i=M(t.children);try{for(i.s();!(n=i.n()).done;){var r=ny(e,n.value);if(r)return r}}catch(s){i.e(s)}finally{i.f()}return null}function iy(e,t){if(e===t.value)return[t];var n,i=M(t.children);try{for(i.s();!(n=i.n()).done;){var r=iy(e,n.value);if(r.length)return r.unshift(t),r}}catch(s){i.e(s)}finally{i.f()}return[]}var ry=function(){return m(function e(t,n){g(this,e),this.value=t,this.children=n},[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}])}();function sy(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var ay=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).snapshot=n,hy(y(i),e),i}return _(t,e),m(t,[{key:"toString",value:function(){return this.snapshot.toString()}}])}(ty);function oy(e,t){var n=function(e,t){var n=new cy([],{},{},"",{},vv,t,null,e.root,-1,{});return new dy("",new ry(n,[]))}(e,t),i=new lg([new Yv("",{})]),r=new lg({}),s=new lg({}),a=new lg({}),o=new lg(""),u=new uy(i,r,a,o,s,vv,t,n.root);return u.snapshot=n.root,new ay(new ry(u,[]),n)}var uy=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=u},[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ie(function(e){return _v(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(function(e){return _v(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}])}();function ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],s=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var cy=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d},[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=_v(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_v(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}])}(),dy=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[n])).url=e,hy(y(i),n),i}return _(t,e),m(t,[{key:"toString",value:function(){return py(this._root)}}])}(ty);function hy(e,t){t.value._routerState=e,t.children.forEach(function(t){return hy(e,t)})}function py(e){var t=e.children.length>0?" { ".concat(e.children.map(py).join(", ")," } "):"";return"".concat(e.value).concat(t)}function fy(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Sv(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Sv(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yy(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(_y);if(r&&r!==Dv(i))throw new Error("{outlets:{}} has to be the last command")},[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}])}(),Sy=m(function e(t,n,i){g(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i});function Ey(e,t,n){if(e||(e=new Fv([],{})),0===e.segments.length&&e.hasChildren())return Ty(e,t,n);var i=function(e,t,n){for(var i=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};r=n.length)return s;var a=e.segments[r],o=n[i];if(_y(o))break;var u="".concat(o),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!My(u,l,a))return s;i+=2}else{if(!My(u,{},a))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},zy):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wv)(n,e,t);if(!r)return Object.assign({},zy);var s={};xv(r.posParams,function(e,t){s[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Gy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Wy(e,t,n)&&By(n)!==vv})}(e,n,i)){var s=new Fv(t,function(e,t,n,i){var r={};r[vv]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var s,a=M(n);try{for(a.s();!(s=a.n()).done;){var o=s.value;if(""===o.path&&By(o)!==vv){var u=new Fv([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[By(o)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Fv(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Wy(e,t,n)})}(e,n,i)){var a=new Fv(e.segments,function(e,t,n,i,r,s){var a,o={},u=M(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Wy(e,n,l)&&!r[By(l)]){var c=new Fv([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[By(l)]=c}}}catch(d){u.e(d)}finally{u.f()}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var o=new Fv(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Wy(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Zy(e,t,n,i){return!!(By(e)===i||i!==vv&&Wy(t,n,e))&&("**"===e.path||Vy(t,e,n).matched)}function Qy(e,t,n){return 0===t.length&&!e.children[n]}var $y=m(function e(t){g(this,e),this.segmentGroup=t||null}),Ky=m(function e(t){g(this,e),this.urlTree=t});function Jy(e){return new Q(function(t){return t.error(new $y(e))})}function Xy(e){return new Q(function(t){return t.error(new Ky(e))})}function e_(e){return new Q(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var t_=function(){return m(function e(t,n,i,r,s){g(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(pl)},[{key:"apply",value:function(){var e=this,t=Gy(this.urlTree.root,[],[],this.config).segmentGroup,n=new Fv(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,vv).pipe(ie(function(t){return e.createUrlTree(n_(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Ig(function(t){if(t instanceof Ky)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof $y?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,vv).pipe(ie(function(n){return t.createUrlTree(n_(n),e.queryParams,e.fragment)})).pipe(Ig(function(e){throw e instanceof $y?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Fv([],D({},vv,e)):e;return new Pv(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ie(function(e){return new Fv([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,a=Object.keys(n.children);s=2;return function(i){return i.pipe(e?Rh(function(t,n){return e(t,n,i)}):G,Fg(1),n?Ug(t):qg(function(){return new vg}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,s){var a=this;return he(n).pipe(Ih(function(o){return a.expandSegmentAgainstRoute(e,t,n,o,i,r,s).pipe(Ig(function(e){if(e instanceof $y)return Oh(null);throw e}))}),Gg(function(e){return!!e}),Ig(function(e,n){if(e instanceof vg||"EmptyError"===e.name){if(Qy(t,i,r))return Oh(new Fv([],{}));throw new $y(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,s,a){return Zy(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Jy(t):Jy(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Xy(s):this.lineralizeSegments(n,s).pipe(ge(function(n){var s=new Fv(n,{});return r.expandSegment(e,s,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,s){var a=this,o=Vy(t,i,r),u=o.matched,l=o.consumedSegments,c=o.lastChild,d=o.positionalParamSegments;if(!u)return Jy(t);var h=this.applyRedirectCommands(l,i.redirectTo,d);return i.redirectTo.startsWith("/")?Xy(h):this.lineralizeSegments(i,h).pipe(ge(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Oh(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ie(function(e){return n._loadedConfig=e,new Fv(i,{})})):Oh(new Fv(i,{}));var a=Vy(t,n,i),o=a.matched,u=a.consumedSegments,l=a.lastChild;if(!o)return Jy(t);var c=i.slice(l);return this.getChildConfig(e,n,i).pipe(ge(function(e){var i=e.module,a=e.routes,o=Gy(t,u,c,a),l=o.segmentGroup,d=o.slicedSegments,h=new Fv(l.segments,l.children);if(0===d.length&&h.hasChildren())return s.expandChildren(i,a,h).pipe(ie(function(e){return new Fv(u,e)}));if(0===a.length&&0===d.length)return Oh(new Fv(u,{}));var p=By(n)===r;return s.expandSegment(i,h,a,d,p?vv:r,!0).pipe(ie(function(e){return new Fv(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Oh(new Oy(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Oh(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(ge(function(n){return n?i.configLoader.load(e.injector,t).pipe(ie(function(e){return t._loadedConfig=e,e})):function(e){return new Q(function(t){return t.error(kv("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Oh(new Oy([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return Oh(!0);var s=r.map(function(i){var r,s=e.get(i);if(function(e){return e&&Iy(e.canLoad)}(s))r=s.canLoad(t,n);else{if(!Iy(s))throw new Error("Invalid CanLoad guard");r=s(t,n)}return Cv(r)});return Oh(s).pipe(Fy(),Zg(function(e){if(Ry(e)){var t=kv('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ie(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Oh(n);if(i.numberOfChildren>1||!i.children[vv])return e_(e.redirectTo);i=i.children[vv]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Pv(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return xv(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,s=this.createSegments(e,t.segments,n,i),a={};return xv(t.children,function(t,s){a[s]=r.createSegmentGroup(e,t,n,i)}),new Fv(s,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=M(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;if(s.path===e.path)return t.splice(i),s;i++}}catch(a){r.e(a)}finally{r.f()}return e}}])}();function n_(e){for(var t={},n=0,i=Object.keys(e.children);n0||s.hasChildren())&&(t[r]=s)}return function(e){if(1===e.numberOfChildren&&e.children[vv]){var t=e.children[vv];return new Fv(e.segments.concat(t.segments),t.children)}return e}(new Fv(e.segments,t))}var i_=m(function e(t){g(this,e),this.path=t,this.route=this.path[this.path.length-1]}),r_=m(function e(t,n){g(this,e),this.component=t,this.route=n});function s_(e,t,n){var i=e._root;return o_(i,t?t._root:null,n,[i.value])}function a_(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function o_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},s=sy(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},s=e.value,a=t?t.value:null,o=n?n.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!jv(e.url,t.url);case"pathParamsOrQueryParamsChange":return!jv(e.url,t.url)||!Sv(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!my(e,t)||!Sv(e.queryParams,t.queryParams);default:return!my(e,t)}}(a,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new i_(i)):(s.data=a.data,s._resolvedData=a._resolvedData),o_(e,t,s.component?o?o.children:null:n,i,r),u&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new r_(o.outlet.component,a))}else a&&u_(t,o,r),r.canActivateChecks.push(new i_(i)),o_(e,null,s.component?o?o.children:null:n,i,r)})(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),xv(s,function(e,t){return u_(e,n.getContext(t),r)}),r}function u_(e,t,n){var i=sy(e),r=e.value;xv(i,function(e,i){u_(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new r_(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var l_=m(function e(){g(this,e)});function c_(e){return new Q(function(t){return t.error(e)})}var d_=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a},[{key:"recognize",value:function(){var e=Gy(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,vv);if(null===t)return null;var n=new cy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},vv,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ry(n,t),r=new dy(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ly(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Dv(n).parameters:{};r=new cy(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,m_(e),By(e),e.component,e,p_(t),f_(t)+n.length,g_(e))}else{var u=Vy(t,e,n);if(!u.matched)return null;s=u.consumedSegments,a=n.slice(u.lastChild),r=new cy(s,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,m_(e),By(e),e.component,e,p_(t),f_(t)+s.length,g_(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Gy(t,s,a,l.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return null===p?null:[new ry(r,p)]}if(0===l.length&&0===h.length)return[new ry(r,[])];var f=By(e)===i,m=this.processSegment(l,d,h,f?vv:i);return null===m?null:[new ry(r,m)]}}])}();function h_(e){var t,n=[],i=new Set,r=M(e);try{var s=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),1;var s=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==s?((e=s.children).push.apply(e,d(r.children)),i.add(s)):n.push(r)};for(r.s();!(t=r.n()).done;)s()}catch(c){r.e(c)}finally{r.f()}var a,o=M(i);try{for(o.s();!(a=o.n()).done;){var u=a.value,l=h_(u.children);n.push(new ry(u.value,l))}}catch(c){o.e(c)}finally{o.f()}return n.filter(function(e){return!i.has(e)})}function p_(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function f_(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function m_(e){return e.data||{}}function g_(e){return e.resolve||{}}function v_(e){return wg(function(t){var n=e(t);return n?he(n).pipe(ie(function(){return t})):Oh(t)})}var y_=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(function(){return m(function e(){g(this,e)},[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}])}()),__=new xi("ROUTES"),b_=function(){return m(function e(t,n,i,r){g(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r},[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ie(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Oy(Tv(r.injector.get(__,void 0,Je.Self|Je.Optional)).map(Hy),r)}),Ig(function(e){throw t._loader$=void 0,e}));return t._loader$=new Te(i,function(){return new ee}).pipe(we()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?he(this.loader.load(e)):Cv(e()).pipe(ge(function(e){return e instanceof fl?Oh(e):he(t.compiler.compileModuleAsync(e))}))}}])}(),k_=m(function e(){g(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new w_,this.attachRef=null}),w_=function(){return m(function e(){g(this,e),this.contexts=new Map},[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new k_,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}])}(),S_=function(){return m(function e(){g(this,e)},[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}])}();function E_(e){throw e}function T_(e,t,n){return t.parse("/")}function D_(e,t){return Oh(null)}var x_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},C_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},M_=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){var l=this;g(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ee,this.errorHandler=E_,this.malformedUriErrorHandler=T_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:D_,afterPreactivation:D_},this.urlHandlingStrategy=new S_,this.routeReuseStrategy=new y_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(pl),this.console=s.get(mc);var c=s.get(Cc);this.isNgZoneEnabled=c instanceof Cc&&Cc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Pv(new Fv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new b_(a,o,function(e){return l.triggerEvent(new cv(e))},function(e){return l.triggerEvent(new dv(e))}),this.routerState=oy(this.currentUrlTree,this.rootComponentType),this.transitions=new lg({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()},[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Rh(function(e){return 0!==e.id}),ie(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),wg(function(e){var i=!1,r=!1;return Oh(e).pipe(Zg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),wg(function(e){var i=t.browserUrlTree.toString(),s=!t.navigated||e.extractedUrl.toString()!==i||i!==t.currentUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return L_(e.source)&&(t.browserUrlTree=e.extractedUrl),Oh(e).pipe(wg(function(e){var i=t.transitions.getValue();return n.next(new tv(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?_g:Promise.resolve(e)}),function(e,t,n,i){return wg(function(r){return function(e,t,n,i,r){return new t_(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(ie(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),Zg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,s,a){return ge(function(i){return function(e,t,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new d_(e,t,n,i,s,a).recognize();return null===o?c_(new l_):Oh(o)}catch(r){return c_(r)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),s,a).pipe(ie(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Zg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new sv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,o=e.extractedUrl,u=e.source,l=e.restoredState,c=e.extras,d=new tv(a,t.serializeUrl(o),u,l);n.next(d);var h=oy(o,t.rootComponentType).snapshot;return Oh(Object.assign(Object.assign({},e),{targetSnapshot:h,urlAfterRedirects:o,extras:Object.assign(Object.assign({},c),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),_g}),v_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,s=e.rawUrl,a=e.extras,o=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!u})}),Zg(function(e){var n=new av(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ie(function(e){return Object.assign(Object.assign({},e),{guards:s_(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return ge(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,o=s.canDeactivateChecks;return 0===o.length&&0===a.length?Oh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return he(e).pipe(ge(function(e){return function(e,t,n,i,r){var s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Oh(s.map(function(s){var a,o=a_(s,t,r);if(function(e){return e&&Iy(e.canDeactivate)}(o))a=Cv(o.canDeactivate(e,t,n,i));else{if(!Iy(o))throw new Error("Invalid CanDeactivate guard");a=Cv(o(e,t,n,i))}return a.pipe(Gg())})).pipe(Fy()):Oh(!0)}(e.component,e.route,n,t,i)}),Gg(function(e){return!0!==e},!0))}(o,i,r,e).pipe(ge(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return he(t).pipe(Ih(function(t){return yg(function(e,t){return null!==e&&t&&t(new hv(e)),Oh(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new fv(e)),Oh(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return kg(function(){return Oh(t.guards.map(function(r){var s,a=a_(r,t.node,n);if(function(e){return e&&Iy(e.canActivateChild)}(a))s=Cv(a.canActivateChild(i,e));else{if(!Iy(a))throw new Error("Invalid CanActivateChild guard");s=Cv(a(i,e))}return s.pipe(Gg())})).pipe(Fy())})});return Oh(r).pipe(Fy())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Oh(!0);var r=i.map(function(i){return kg(function(){var r,s=a_(i,t,n);if(function(e){return e&&Iy(e.canActivate)}(s))r=Cv(s.canActivate(t,e));else{if(!Iy(s))throw new Error("Invalid CanActivate guard");r=Cv(s(t,e))}return r.pipe(Gg())})});return Oh(r).pipe(Fy())}(e,t.route,n))}),Gg(function(e){return!0!==e},!0))}(i,a,e,t):Oh(n)}),ie(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Zg(function(e){if(Ry(e.guardsResult)){var n=kv('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ov(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Rh(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),v_(function(e){if(e.guards.canActivateChecks.length)return Oh(e).pipe(Zg(function(e){var n=new uv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),wg(function(e){var n=!1;return Oh(e).pipe(function(e,t){return ge(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return Oh(n);var s=0;return he(r).pipe(Ih(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Oh({});var s={};return he(r).pipe(ge(function(r){return function(e,t,n,i){var r=a_(e,t,i);return Cv(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Zg(function(e){s[r]=e}))}),Fg(1),ge(function(){return Object.keys(s).length===r.length?Oh(s):_g}))}(e._resolve,e,t,i).pipe(ie(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ly(e,n).resolve),null}))}(n.route,i,e,t)}),Zg(function(){return s++}),Fg(1),ge(function(e){return s===r.length?Oh(n):_g}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),Zg({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),Zg(function(e){var n=new lv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),v_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,s=e.rawUrl,a=e.extras,o=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!u})}),ie(function(e){var n=function(e,t,n){var i=gy(e,t._root,n?n._root:void 0);return new ay(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Zg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(e.urlAfterRedirects,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return ie(function(i){return new Ly(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),Zg({next:function(){i=!0},complete:function(){i=!0}}),Kg(function(){var n;if(!i&&!r){var s="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,s)):t.cancelNavigationTransition(e,s)}(null===(n=t.currentNavigation)||void 0===n?void 0:n.id)===e.id&&(t.currentNavigation=null)}),Ig(function(i){if(r=!0,function(e){return e&&e[bv]}(i)){var s=Ry(i.url);s||(t.navigated=!0,t.restoreHistory(e,!0));var a=new iv(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),s?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||L_(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var o=new rv(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return _g}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,s={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(s.state=a)}e.scheduleNavigation(r,t,i,s)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){jy(e),this.config=e.map(Hy),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,s=t.queryParamsHandling,a=t.preserveFragment,o=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return by(t.root,t.root,t,i,r);var s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new wy(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var s={};return xv(i.outlets,function(e,t){s[t]="string"==typeof e?e.split("/"):e}),[].concat(d(e),[{outlets:s}])}if(i.segmentPath)return[].concat(d(e),[i.segmentPath])}return"string"!=typeof i?[].concat(d(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(d(e),[i])},[]);return new wy(n,t,i)}(n);if(s.toRoot())return by(t.root,new Fv([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new Sy(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new Sy(i,i===t.root,0)}var r=yy(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,s=n;s>r;){if(s-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Sy(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),o=a.processChildren?Ty(a.segmentGroup,a.index,s.commands):Ey(a.segmentGroup,a.index,s.commands);return by(a.segmentGroup,o,t,i,r)}(o,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Ry(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new iv(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Oi),$i(qv),$i(w_),$i(kd),$i(Ja),$i($c),$i(Tc),$i(void 0))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function L_(e){return"imperative"!==e}var A_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new ee,null==i&&r.setAttribute(s.nativeElement,"tabindex","0")},[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:I_(this.skipLocationChange),replaceUrl:I_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:I_(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(uy),ki("tabindex"),yo(Fu),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Ao("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ft]}),e}(),O_=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new ee,this.subscription=t.events.subscribe(function(e){e instanceof nv&&r.updateTargetUrlAndHref()})},[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var s={skipLocationChange:I_(this.skipLocationChange),replaceUrl:I_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:I_(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(uy),yo(gd))},e.\u0275dir=Et({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(cu("href",t.href,bs),fo("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ft]}),e}();function I_(e){return""===e||!!e}var R_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new jl,this.deactivateEvents=new jl,this.name=r||vv,t.onChildOutletCreated(this.name,this)},[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new P_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(w_),yo(gl),yo(Mu),ki("name"),yo(sl))},e.\u0275dir=Et({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),P_=function(){return m(function e(t,n,i){g(this,e),this.route=t,this.childContexts=n,this.parent=i},[{key:"get",value:function(e,t){return e===uy?this.route:e===w_?this.childContexts:this.parent.get(e,t)}}])}(),F_=m(function e(){g(this,e)}),Y_=function(){return m(function e(){g(this,e)},[{key:"preload",value:function(e,t){return Oh(null)}}])}(),j_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new b_(n,i,function(e){return t.triggerEvent(new cv(e))},function(e){return t.triggerEvent(new dv(e))})},[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Rh(function(e){return e instanceof nv}),Ih(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(pl);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=M(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(e,s)):s.children&&i.push(this.processRoutes(e,s.children))}}catch(o){r.e(o)}finally{r.f()}return he(i).pipe(_e(),ie(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Oh(t._loadedConfig):n.loader.load(e.injector,t)).pipe(ge(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i($c),$i(Tc),$i(Ja),$i(F_))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),q_=function(){var e=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};g(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"},[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof tv?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nv&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof gv&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new gv(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Wd),$i(void 0))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),N_=new xi("ROUTER_CONFIGURATION"),H_=new xi("ROUTER_FORROOT_GUARD"),B_=[kd,{provide:qv,useClass:Nv},{provide:M_,useFactory:function(e,t,n,i,r,s,a){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new M_(null,e,t,n,i,r,s,Tv(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(o,c),o.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[qv,w_,kd,Ja,$c,Tc,__,N_,[function(){return m(function e(){g(this,e)})}(),new ir],[function(){return m(function e(){g(this,e)})}(),new ir]]},w_,{provide:uy,useFactory:function(e){return e.routerState.root},deps:[M_]},{provide:$c,useClass:Xc},j_,Y_,function(){return m(function e(){g(this,e)},[{key:"preload",value:function(e,t){return t().pipe(Ig(function(){return Oh(null)}))}}])}(),{provide:N_,useValue:{enableTracing:!1}}];function U_(){return new Uc("Router",M_)}var z_=function(){var e=function(){function e(t,n){g(this,e)}return m(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[B_,Z_(t),{provide:H_,useFactory:W_,deps:[[M_,new ir,new rr]]},{provide:N_,useValue:n||{}},{provide:gd,useFactory:G_,deps:[od,[new nr(yd),new ir],N_]},{provide:q_,useFactory:V_,deps:[M_,Wd,N_]},{provide:F_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Y_},{provide:Uc,multi:!0,useFactory:U_},[Q_,{provide:oc,multi:!0,useFactory:$_,deps:[Q_]},{provide:J_,useFactory:K_,deps:[Q_]},{provide:fc,multi:!0,useExisting:J_}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Z_(t)]}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(H_,8),$i(M_,8))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}();function V_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new q_(e,t,n)}function G_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new bd(e,t):new _d(e,t)}function W_(e){return"guarded"}function Z_(e){return[{provide:Ci,multi:!0,useValue:e},{provide:__,multi:!0,useValue:e}]}var Q_=function(){var e=function(){return m(function e(t){g(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ee},[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ld,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(M_),r=e.injector.get(N_);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Oh(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(N_),n=this.injector.get(j_),i=this.injector.get(q_),r=this.injector.get(M_),s=this.injector.get(Zc);e===s.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function $_(e){return e.appInitializer.bind(e)}function K_(e){return e.bootstrapListener.bind(e)}var J_=new xi("Router Initializer"),X_=w(76088),eb=w(20884),tb=w(92309),nb=w(11459);function ib(e){return new tb.i0(function(t,n){var i=(0,eb._T)(t,[]);return new nb.y$(function(r){var s;return Promise.resolve(i).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){s=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})}).catch(r.error.bind(r)),function(){s&&s.unsubscribe()}})})}var rb=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e,n])).scheduler=e,i.work=n,i.pending=!1,i}return _(t,e),m(t,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}])}(function(e){function t(e,n){return g(this,t),v(this,t)}return _(t,e),m(t,[{key:"schedule",value:function(e){return this}}])}(Y)),sb=function(){var e=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.SchedulerAction=t,this.now=n},[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}])}();return e.now=function(){return Date.now()},e}(),ab=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sb.now;return g(this,t),(n=v(this,t,[e,function(){return t.delegate&&t.delegate!==y(n)?t.delegate.now():i()}])).actions=[],n.active=!1,n.scheduled=void 0,n}return _(t,e),m(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,i):h(E(t.prototype),"schedule",this).call(this,e,n,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}])}(sb),ob=new(function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(ab))(function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e,n])).scheduler=e,i.work=n,i}return _(t,e),m(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?h(E(t.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?h(E(t.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):e.flush(this)}}])}(rb)),ub=ob;function lb(e,t){return new Q(t?function(n){return t.schedule(cb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function cb(e){var t=e.error;e.subscriber.error(t)}var db=function(){function e(t,n,i){g(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return m(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Oh(this.value);case"E":return lb(this.error);case"C":return bg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}])}();db.completeNotification=new db("C"),db.undefinedValueNotification=new db("N",void 0);var hb=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this.scheduler=t,this.delay=n},[{key:"call",value:function(e,t){return t.subscribe(new pb(e,this.scheduler,this.delay))}}])}(),pb=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(this,t),(i=v(this,t,[e])).scheduler=n,i.delay=r,i}return _(t,e),m(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new fb(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(db.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(db.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(db.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}])}(U),fb=m(function e(t,n){g(this,e),this.notification=t,this.destination=n});function mb(e){return new Q(function(t){return e().then(function(e){t.closed||(t.next(e),t.complete())},function(e){t.closed||t.error(e)}),function(){return t.unsubscribe()}})}var gb=function(){return m(function e(t){g(this,e),this.zone=t,this.now=Date.now?Date.now:function(){return+new Date}},[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return this.zone.run(function(){return ob.schedule(e,t,n)})}}])}();function vb(e){return e[V]=function(){return e},e}function yb(e,t){return e.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new hb(e,t))}}(new gb(t)))}var _b=function(){return m(function e(t,n,i){g(this,e),this.obsQuery=t;var r=yb(he(vb(this.obsQuery)),n);this.valueChanges=i.useInitialLoading?r.pipe(Mg(Object.assign(Object.assign({},this.obsQuery.getCurrentResult(!1)),{error:void 0,partial:void 0,stale:!0}))):r,this.queryId=this.obsQuery.queryId},[{key:"result",value:function(){return this.obsQuery.result()}},{key:"getCurrentResult",value:function(){return this.obsQuery.getCurrentResult()}},{key:"getLastResult",value:function(){return this.obsQuery.getLastResult()}},{key:"getLastError",value:function(){return this.obsQuery.getLastError()}},{key:"resetLastResults",value:function(){return this.obsQuery.resetLastResults()}},{key:"refetch",value:function(e){return this.obsQuery.refetch(e)}},{key:"fetchMore",value:function(e){return this.obsQuery.fetchMore(e)}},{key:"subscribeToMore",value:function(e){return this.obsQuery.subscribeToMore(e)}},{key:"updateQuery",value:function(e){return this.obsQuery.updateQuery(e)}},{key:"stopPolling",value:function(){return this.obsQuery.stopPolling()}},{key:"startPolling",value:function(e){return this.obsQuery.startPolling(e)}},{key:"setOptions",value:function(e){return this.obsQuery.setOptions(e)}},{key:"setVariables",value:function(e){return this.obsQuery.setVariables(e)}}])}(),bb=new xi("APOLLO_FLAGS"),kb=new xi("APOLLO_OPTIONS"),wb=new xi("APOLLO_NAMED_OPTIONS"),Sb=function(){return m(function e(t,n,i){g(this,e),this.ngZone=t,this.flags=n,this._client=i,this.useInitialLoading=function(e,t,n){return!(!e||void 0===e[t])&&e[t]}(n,"useInitialLoading")},[{key:"watchQuery",value:function(e){return new _b(this.ensureClient().watchQuery(Object.assign({},e)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},e))}},{key:"query",value:function(e){var t=this;return mb(function(){return t.ensureClient().query(Object.assign({},e))})}},{key:"mutate",value:function(e){var t=this;return mb(function(){return t.ensureClient().mutate(Object.assign({},e))})}},{key:"subscribe",value:function(e,t){var n=he(vb(this.ensureClient().subscribe(Object.assign({},e))));return t&&!0!==t.useZone?n:yb(n,this.ngZone)}},{key:"getClient",value:function(){return this.client}},{key:"setClient",value:function(e){this.client=e}},{key:"client",get:function(){return this._client},set:function(e){if(this._client)throw new Error("Client has been already defined");this._client=e}},{key:"ensureClient",value:function(){return this.checkInstance(),this._client}},{key:"checkInstance",value:function(){if(!this._client)throw new Error("Client has not been defined yet")}}])}(),Eb=function(){var e=function(e){function t(e,n,i,r){var s;if(g(this,t),(s=v(this,t,[e,r]))._ngZone=e,s.map=new Map,n&&s.createDefault(n),i&&"object"==typeof i)for(var a in i)i.hasOwnProperty(a)&&s.createNamed(a,i[a]);return y(s)}return _(t,e),m(t,[{key:"create",value:function(e,t){Tb(t)?this.createDefault(e):this.createNamed(t,e)}},{key:"default",value:function(){return this}},{key:"use",value:function(e){return Tb(e)?this.default():this.map.get(e)}},{key:"createDefault",value:function(e){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new X_.fe(e))}},{key:"createNamed",value:function(e,t){if(this.map.has(e))throw new Error("Client ".concat(e," has been already created"));this.map.set(e,new Sb(this._ngZone,this.flags,new X_.fe(t)))}},{key:"removeClient",value:function(e){Tb(e)?this._client=void 0:this.map.delete(e)}}])}(Sb);return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(kb,8),$i(wb,8),$i(bb,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(kb,8),$i(wb,8),$i(bb,8))},token:e,providedIn:"root"}),e}();function Tb(e){return!e||"default"===e}var Db={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},xb=/[&<>"']/,Cb=new RegExp(xb.source,"g"),Mb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lb=new RegExp(Mb.source,"g"),Ab={"&":"&","<":"<",">":">",'"':""","'":"'"},Ob=function(e){return Ab[e]};function Ib(e,t){if(t){if(xb.test(e))return e.replace(Cb,Ob)}else if(Mb.test(e))return e.replace(Lb,Ob);return e}var Rb=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Pb(e){return e.replace(Rb,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var Fb=/(^|[^\[])\^/g;function Yb(e,t){e="string"==typeof e?e:e.source,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(Fb,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var jb=/[^\w:]/g,qb=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Nb(e,t,n){if(e){var i;try{i=decodeURIComponent(Pb(n)).replace(jb,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!qb.test(n)&&(n=function(e,t){Hb[" "+e]||(Hb[" "+e]=Bb.test(e)?e+"/":Wb(e,"/",!0));var n=-1===(e=Hb[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ub,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(zb,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var Hb={},Bb=/^[^:]+:\/*[^/]*$/,Ub=/^([^:]+:)[\s\S]*$/,zb=/^([^:]+:\/*[^/]*)[\s\S]*$/,Vb={exec:function(){}};function Gb(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Qb(e,t,n,i){var r=t.href,s=t.title?Ib(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;var o={type:"link",raw:n,href:r,title:s,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:s,text:Ib(a)}}var $b=function(){return m(function e(t){g(this,e),this.options=t||Db},[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Wb(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:T(t,1)[0].length>=i.length?e.slice(i.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=Wb(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,s,a,o,u,l,c,d,h,p,f=t[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=m?f:"[*+-]");for(var v=new RegExp("^( {0,3}".concat(f,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(p=!1,(t=v.exec(e))&&!this.rules.block.hr.test(e));){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0].replace(/^\t+/,function(e){return" ".repeat(3*e.length)}),c=e.split("\n",1)[0],this.options.pedantic?(s=2,h=l.trimLeft()):(s=(s=t[2].search(/[^ ]/))>4?1:s,h=l.slice(s),s+=t[1].length),o=!1,!l&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p)for(var y=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),_=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),b=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:```|~~~)")),k=new RegExp("^ {0,".concat(Math.min(3,s-1),"}#"));e&&(c=d=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(b.test(c)||k.test(c)||y.test(c)||_.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())h+="\n"+c.slice(s);else{if(o||l.search(/[^ ]/)>=4||b.test(l)||k.test(l)||_.test(l))break;h+="\n"+c}!o&&!c.trim()&&(o=!0),n+=d+"\n",e=e.substring(d.length+1),l=c.slice(s)}g.loose||(u?g.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&((i=/^\[[ xX]\] /.exec(h))&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var w=g.items.length;for(a=0;a0&&S.some(function(e){return/\n.*\n/.test(e.raw)});g.loose=E}if(g.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:r}}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:Gb(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r,s,a,o=n.align.length;for(i=0;i/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ib(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=Wb(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],o="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);u&&(a=u[1],o=u[3])}else o=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),Qb(t,{href:a&&a.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Qb(n,i,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=this.rules.inline.emStrong.lDelim.exec(e);if(!(!i||i[3]&&n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=i[0].length-1,u=o,l=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=s.length,i[3]||i[4])u+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((u-=a)>0)){a=Math.min(a,a+u+l);var d=e.slice(0,o+i.index+(i[0].length-s.length)+a);if(Math.min(o,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else l+=a}}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=Ib(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return"@"===r[2]?i="mailto:"+(n=Ib(this.options.mangle?t(r[1]):r[1])):i=n=Ib(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=Ib(this.options.mangle?t(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=Ib(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}},{key:"inlineText",value:function(e,t){var n,i=this.rules.inline.text.exec(e);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Ib(i[0]):i[0]:Ib(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:n}}}])}(),Kb={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Vb,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Kb.def=Yb(Kb.def).replace("label",Kb._label).replace("title",Kb._title).getRegex(),Kb.bullet=/(?:[*+-]|\d{1,9}[.)])/,Kb.listItemStart=Yb(/^( *)(bull) */).replace("bull",Kb.bullet).getRegex(),Kb.list=Yb(Kb.list).replace(/bull/g,Kb.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Kb.def.source+")").getRegex(),Kb._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Kb._comment=/|$)/,Kb.html=Yb(Kb.html,"i").replace("comment",Kb._comment).replace("tag",Kb._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Kb.paragraph=Yb(Kb._paragraph).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.blockquote=Yb(Kb.blockquote).replace("paragraph",Kb.paragraph).getRegex(),Kb.normal=q({},Kb),Kb.gfm=N(q({},Kb.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Kb.gfm.table=Yb(Kb.gfm.table).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.gfm.paragraph=Yb(Kb._paragraph).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Kb.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.pedantic=N(q({},Kb.normal),{html:Yb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Kb._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vb,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yb(Kb.normal._paragraph).replace("hr",Kb.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Kb.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Jb={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vb,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vb,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}Jb._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Jb.punctuation=Yb(Jb.punctuation).replace(/punctuation/g,Jb._punctuation).getRegex(),Jb.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Jb.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Jb._comment=Yb(Kb._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Jb.emStrong.lDelim=Yb(Jb.emStrong.lDelim).replace(/punct/g,Jb._punctuation).getRegex(),Jb.emStrong.rDelimAst=Yb(Jb.emStrong.rDelimAst,"g").replace(/punct/g,Jb._punctuation).getRegex(),Jb.emStrong.rDelimUnd=Yb(Jb.emStrong.rDelimUnd,"g").replace(/punct/g,Jb._punctuation).getRegex(),Jb._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Jb._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Jb._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Jb.autolink=Yb(Jb.autolink).replace("scheme",Jb._scheme).replace("email",Jb._email).getRegex(),Jb._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Jb.tag=Yb(Jb.tag).replace("comment",Jb._comment).replace("attribute",Jb._attribute).getRegex(),Jb._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Jb._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Jb._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Jb.link=Yb(Jb.link).replace("label",Jb._label).replace("href",Jb._href).replace("title",Jb._title).getRegex(),Jb.reflink=Yb(Jb.reflink).replace("label",Jb._label).replace("ref",Kb._label).getRegex(),Jb.nolink=Yb(Jb.nolink).replace("ref",Kb._label).getRegex(),Jb.reflinkSearch=Yb(Jb.reflinkSearch,"g").replace("reflink",Jb.reflink).replace("nolink",Jb.nolink).getRegex(),Jb.normal=q({},Jb),Jb.pedantic=N(q({},Jb.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Yb(/^!?\[(label)\]\((.*?)\)/).replace("label",Jb._label).getRegex(),reflink:Yb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Jb._label).getRegex()}),Jb.gfm=N(q({},Jb.normal),{escape:Yb(Jb.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[],u=function(){if(!(a.options.extensions&&a.options.extensions.block&&a.options.extensions.block.some(function(n){return!!(t=n.call({lexer:a},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)}))){if(t=a.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(t),0;if(t=a.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=o[o.length-1])||"paragraph"!==n.type&&"text"!==n.type?o.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue[a.inlineQueue.length-1].src=n.text),0;if(t=a.tokenizer.fences(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.heading(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.hr(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.blockquote(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.list(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.html(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=o[o.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.tokens.links[t.tag]||(a.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,a.inlineQueue[a.inlineQueue.length-1].src=n.text),0;if(t=a.tokenizer.table(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.lheading(e))return e=e.substring(t.raw.length),o.push(t),0;if(i=e,a.options.extensions&&a.options.extensions.startBlock){var s,u=1/0,l=e.slice(1);a.options.extensions.startBlock.forEach(function(e){"number"==typeof(s=e.call({lexer:this},l))&&s>=0&&(u=Math.min(u,s))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(a.state.top&&(t=a.tokenizer.paragraph(i)))return n=o[o.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue.pop(),a.inlineQueue[a.inlineQueue.length-1].src=n.text):o.push(t),r=i.length!==e.length,e=e.substring(t.raw.length),0;if(t=a.tokenizer.text(e))return e=e.substring(t.raw.length),(n=o[o.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue.pop(),a.inlineQueue[a.inlineQueue.length-1].src=n.text):o.push(t),0;if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(a.options.silent)return console.error(c),1;throw new Error(c)}}};for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(e,t,n){return t+" ".repeat(n.length)});e&&(0===(s=u())||1!==s););return this.state.top=!0,o}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,i,r,s,a,o=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+Zb("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+Zb("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,r.index+r[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var d,h=function(){if(s||(a=""),s=!1,!(o.options.extensions&&o.options.extensions.inline&&o.options.extensions.inline.some(function(n){return!!(t=n.call({lexer:o},e,u))&&(e=e.substring(t.raw.length),u.push(t),!0)}))){if(t=o.tokenizer.escape(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=o.tokenizer.link(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.reflink(e,o.tokens.links))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=o.tokenizer.emStrong(e,l,a))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.codespan(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.br(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.del(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.autolink(e,ek))return e=e.substring(t.raw.length),u.push(t),0;if(!o.state.inLink&&(t=o.tokenizer.url(e,ek)))return e=e.substring(t.raw.length),u.push(t),0;if(i=e,o.options.extensions&&o.options.extensions.startInline){var r,c=1/0,d=e.slice(1);o.options.extensions.startInline.forEach(function(e){"number"==typeof(r=e.call({lexer:this},d))&&r>=0&&(c=Math.min(c,r))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(t=o.tokenizer.inlineText(i,Xb))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),s=!0,(n=u[u.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(h),1;throw new Error(h)}}};e&&(0===(d=h())||1!==d););return u}}],[{key:"rules",get:function(){return{block:Kb,inline:Jb}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])}(),nk=function(){return m(function e(t){g(this,e),this.options=t||Db},[{key:"code",value:function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
'+(n?e:Ib(e,!0))+"
\n":"
"+(n?e:Ib(e,!0))+"
\n"}},{key:"blockquote",value:function(e){return"
\n".concat(e,"
\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,t,n,i){return this.options.headerIds?"').concat(e,"\n"):"").concat(e,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
\n":"
\n"}},{key:"list",value:function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}},{key:"listitem",value:function(e){return"
  • ".concat(e,"
  • \n")}},{key:"checkbox",value:function(e){return" "}},{key:"paragraph",value:function(e){return"

    ".concat(e,"

    \n")}},{key:"table",value:function(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}},{key:"tablerow",value:function(e){return"\n".concat(e,"\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}},{key:"strong",value:function(e){return"".concat(e,"")}},{key:"em",value:function(e){return"".concat(e,"")}},{key:"codespan",value:function(e){return"".concat(e,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(e){return"".concat(e,"")}},{key:"link",value:function(e,t,n){if(null===(e=Nb(this.options.sanitize,this.options.baseUrl,e)))return n;var i='
    "}},{key:"image",value:function(e,t,n){if(null===(e=Nb(this.options.sanitize,this.options.baseUrl,e)))return n;var i='').concat(n,'":">"}},{key:"text",value:function(e){return e}}])}(),ik=function(){return m(function e(){g(this,e)},[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}])}(),rk=function(){return m(function e(){g(this,e),this.seen={}},[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}])}(),sk=function(){function e(t){g(this,e),this.options=t||Db,this.options.renderer=this.options.renderer||new nk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ik,this.slugger=new rk}return m(e,[{key:"parse",value:function(e){var t,n,i,r,s,a,o,u,l,c,d,h,p,f,m,g,v,y,_,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="",w=e.length;for(t=0;t0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(m.tokens,p),l+=this.renderer.listitem(f,v,g);k+=this.renderer.list(l,d,h);continue;case"html":k+=this.renderer.html(c.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;t+1";return t?Promise.resolve(r):n?void n(null,r):r}if(t)return Promise.reject(i);if(!n)throw i;n(i)}}((i=q(q({},uk.defaults),s)).silent,i.async,r);if(null==n)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){var o,u=i.highlight;try{i.hooks&&(n=i.hooks.preprocess(n)),o=e(n,i)}catch(p){return a(p)}var l=function(e){var n;if(!e)try{i.walkTokens&&uk.walkTokens(o,i.walkTokens),n=t(o,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(s){e=s}return i.highlight=u,e?a(e):r(null,n)};if(!u||u.length<3||(delete i.highlight,!o.length))return l();var c=0;return uk.walkTokens(o,function(e){"code"===e.type&&(c++,setTimeout(function(){u(e.text,e.lang,function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--c&&l()})},0))}),void(0===c&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(function(t){return e(t,i)}).then(function(e){return i.walkTokens?Promise.all(uk.walkTokens(e,i.walkTokens)).then(function(){return e}):e}).then(function(e){return t(e,i)}).then(function(e){return i.hooks?i.hooks.postprocess(e):e}).catch(a);try{i.hooks&&(n=i.hooks.preprocess(n));var d=e(n,i);i.walkTokens&&uk.walkTokens(d,i.walkTokens);var h=t(d,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(u){return a(u)}}}function uk(e,t,n){return ok(tk.lex,sk.parse)(e,t,n)}(function(e,t,n){j(e,"symbol"!=typeof t?t+"":t,n)})(ak,"passThroughHooks",new Set(["preprocess","postprocess"])),uk.options=uk.setOptions=function(e){return function(e){Db=e}(uk.defaults=q(q({},uk.defaults),e)),uk},uk.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},uk.defaults=Db,uk.use=function(){for(var e=uk.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options,r=this.trimIndentation(e),s=t?this.decodeHtml(r):r,a=uk(n?this.renderEmoji(s):s,i);return this.sanitizer.sanitize(this.securityContext,a)||""}},{key:"getSource",value:function(e){var t=this;if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ie(function(n){return t.handleExtension(e,n)}))}},{key:"highlight",value:function(e){if(Gd(this.platform)&&"undefined"!=typeof Prism){e||(e=document);var t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,function(e){return e.classList.add("language-none")}),Prism.highlightAllUnder(e)}}},{key:"renderKatex",value:function(e,t){if(!Gd(this.platform))return e;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,function(e,n){return katex.renderToString(n,t)})}},{key:"decodeHtml",value:function(e){if(!Gd(this.platform))return e;var t=document.createElement("textarea");return t.innerHTML=e,t.value}},{key:"handleExtension",value:function(e,t){var n=e?e.split("?")[0].split(".").splice(-1).join():"";return"md"!==n?"```"+n+"\n"+t+"\n```":t}},{key:"renderEmoji",value:function(e){if(!Gd(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}},{key:"trimIndentation",value:function(e){return e?e.split("\n").map(function(e){var n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n"):"";var t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(pc),$i(hk),$i(ip,8),$i(dk,8),$i(Eh))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),fk=function(){var e=function(){return m(function e(t,n){g(this,e),this.element=t,this.markdownService=n,this.error=new jl,this.load=new jl,this.ready=new jl,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1},[{key:"emoji",get:function(){return this._emoji},set:function(e){this._emoji=this.coerceBooleanProperty(e)}},{key:"katex",get:function(){return this._katex},set:function(e){this._katex=this.coerceBooleanProperty(e)}},{key:"lineHighlight",get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)}},{key:"lineNumbers",get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)}},{key:"ngOnChanges",value:function(){null==this.data?null==this.src||this.handleSrc():this.handleData()}},{key:"ngAfterViewInit",value:function(){!this.data&&!this.src&&this.handleTransclusion()}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}},{key:"coerceBooleanProperty",value:function(e){return null!=e&&"false"!="".concat(String(e))}},{key:"handleData",value:function(){this.render(this.data)}},{key:"handleSrc",value:function(){var e=this;this.markdownService.getSource(this.src).subscribe(function(t){e.render(t),e.load.emit(t)},function(t){return e.error.emit(t)})}},{key:"handleTransclusion",value:function(){this.render(this.element.nativeElement.innerHTML,!0)}},{key:"handlePlugins",value:function(){this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,ck.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}},{key:"setPluginClass",value:function(e,t){for(var n=e.querySelectorAll("pre"),i=0;ie?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Bk(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Fk(e.value)||Nk.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Fk(t.value)||!Yk(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function zk(e){return null}function Vk(e){return null!=e}function Gk(e){var t=Co(e)?he(e):e;return Lo(t),t}function Wk(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Zk(e,t){return t.map(function(t){return t(e)})}function Qk(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function $k(e){if(!e)return null;var t=e.filter(Vk);return 0==t.length?null:function(e){return Wk(Zk(e,t))}}function Kk(e){return null!=e?$k(Qk(e)):null}function Jk(e){if(!e)return null;var t=e.filter(Vk);return 0==t.length?null:function(e){return Ck(Zk(e,t).map(Gk)).pipe(ie(Wk))}}function Xk(e){return null!=e?Jk(Qk(e)):null}function ew(e,t){return null===e?[t]:Array.isArray(e)?[].concat(d(e),[t]):[e,t]}function tw(e){return e._rawValidators}function nw(e){return e._rawAsyncValidators}function iw(e){return e?Array.isArray(e)?e:[e]:[]}function rw(e,t){return Array.isArray(e)?e.includes(t):e===t}function sw(e,t){var n=iw(t);return iw(e).forEach(function(e){rw(n,e)||n.push(e)}),n}function aw(e,t){return iw(t).filter(function(t){return!rw(e,t)})}var ow=function(){var e=function(){return m(function e(){g(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]},[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Kk(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xk(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e}),e}(),uw=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}])}(ow);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,features:[eo]}),t}(),lw=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return _(t,e),m(t)}(ow),cw=function(){return m(function e(t){g(this,e),this._cd=t},[{key:"is",value:function(e){var t,n,i;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[e])}}])}(),dw=function(){var e=function(e){function t(e){return g(this,t),v(this,t,[e])}return _(t,e),m(t)}(cw);return e.\u0275fac=function(t){return new(t||e)(yo(lw,2))},e.\u0275dir=Et({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Qo("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[eo]}),e}(),hw=function(){var e=function(e){function t(e){return g(this,t),v(this,t,[e])}return _(t,e),m(t)}(cw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,10))},e.\u0275dir=Et({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&Qo("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[eo]}),e}();function pw(e,t){return[].concat(d(t.path),[e])}function fw(e,t){vw(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_w(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_w(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function mw(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),yw(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function gw(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vw(e,t){var n=tw(e);null!==t.validator?e.setValidators(ew(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=nw(e);null!==t.asyncValidator?e.setAsyncValidators(ew(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};gw(t._rawValidators,r),gw(t._rawAsyncValidators,r)}function yw(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=tw(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var s=nw(e);if(Array.isArray(s)&&s.length>0){var a=s.filter(function(e){return e!==t.asyncValidator});a.length!==s.length&&(n=!0,e.setAsyncValidators(a))}}}var o=function(){};return gw(t._rawValidators,o),gw(t._rawAsyncValidators,o),n}function _w(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bw(e,t){vw(e,t)}function kw(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function ww(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Sw(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===Pk?n=e:function(e){return Object.getPrototypeOf(e.constructor)===Ak}(e)?i=e:r=e}),r||i||n||null):null;var n,i,r}function Ew(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Tw="VALID",Dw="INVALID",xw="PENDING",Cw="DISABLED";function Mw(e){return(Iw(e)?e.validators:e)||null}function Lw(e){return Array.isArray(e)?Kk(e):e||null}function Aw(e,t){return(Iw(t)?t.asyncValidators:e)||null}function Ow(e){return Array.isArray(e)?Xk(e):e||null}function Iw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Rw=function(){return m(function e(t,n){g(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Lw(this._rawValidators),this._composedAsyncValidatorFn=Ow(this._rawAsyncValidators)},[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Tw}},{key:"invalid",get:function(){return this.status===Dw}},{key:"pending",get:function(){return this.status==xw}},{key:"disabled",get:function(){return this.status===Cw}},{key:"enabled",get:function(){return this.status!==Cw}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Lw(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Ow(e)}},{key:"addValidators",value:function(e){this.setValidators(sw(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(sw(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(aw(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(aw(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return rw(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return rw(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=xw,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Cw,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Tw,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tw||this.status===xw)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Cw:Tw}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=xw,this._hasOwnPendingAsyncValidator=!0;var n=Gk(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof Fw?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Yw&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new jl,this.statusChanges=new jl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Cw:this.errors?Dw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xw)?xw:this._anyControlsHaveStatus(Dw)?Dw:Tw}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Iw(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}])}(),Pw=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return g(this,t),(e=v(this,t,[Mw(i),Aw(r,i)]))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _(t,e),m(t,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Ew(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Ew(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}])}(Rw),Fw=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[Mw(n),Aw(i,n)])).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return _(t,e),m(t,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Pw?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}])}(Rw),Yw=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[Mw(n),Aw(i,n)])).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return _(t,e),m(t,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Pw?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=M(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}])}(Rw),jw={provide:uw,useExisting:Pe(function(){return Nw})},qw=Promise.resolve(null),Nw=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).submitted=!1,i._directives=[],i.ngSubmit=new jl,i.form=new Fw({},Kk(e),Xk(n)),i}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),fw(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Ew(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path),i=new Fw({});bw(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;qw.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ww(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}])}(uw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10))},e.\u0275dir=Et({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ao("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Du([jw]),eo]}),e}(),Hw={provide:lw,useExisting:Pe(function(){return Uw})},Bw=Promise.resolve(null),Uw=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t)).control=new Pw,s._registered=!1,s.update=new jl,s._parent=e,s._setValidators(n),s._setAsyncValidators(i),s.valueAccessor=Sw(0,r),s}return _(t,e),m(t,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),kw(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?pw(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){fw(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Bw.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Bw.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,9),yo(jk,10),yo(qk,10),yo(Ok,10))},e.\u0275dir=Et({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Du([Hw]),eo,Ft]}),e}(),zw=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Vw=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),Gw=new xi("NgModelWithFormControlWarning"),Ww={provide:lw,useExisting:Pe(function(){return Zw})},Zw=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t))._ngModelWarningConfig=r,s.update=new jl,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(n),s.valueAccessor=Sw(0,i),s}return _(t,e),m(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&mw(t,this,!1),fw(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}kw(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&mw(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10),yo(Ok,10),yo(Gw,8))},e.\u0275dir=Et({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Du([Ww]),eo,Ft]}),e._ngModelWarningSentOnce=!1,e}(),Qw={provide:uw,useExisting:Pe(function(){return $w})},$w=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).validators=e,i.asyncValidators=n,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new jl,i._setValidators(e),i._setAsyncValidators(n),i}return _(t,e),m(t,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(yw(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return fw(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){mw(e.control||null,e,!1),Ew(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ww(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(mw(n||null,t),i instanceof Pw&&(fw(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);bw(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return yw(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){vw(this.form,this),this._oldForm&&yw(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}])}(uw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10))},e.\u0275dir=Et({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Ao("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Du([Qw]),eo,Ft]}),e}(),Kw={provide:lw,useExisting:Pe(function(){return Jw})},Jw=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._ngModelWarningConfig=s,a._added=!1,a.update=new jl,a._ngModelWarningSent=!1,a._parent=e,a._setValidators(n),a._setAsyncValidators(i),a.valueAccessor=Sw(0,r),a}return _(t,e),m(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),kw(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return pw(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,13),yo(jk,10),yo(qk,10),yo(Ok,10),yo(Gw,8))},e.\u0275dir=Et({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Du([Kw]),eo,Ft]}),e._ngModelWarningSentOnce=!1,e}(),Xw={provide:jk,useExisting:Pe(function(){return eS}),multi:!0},eS=function(){var e=function(){return m(function e(){g(this,e),this._required=!1},[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Bk(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&fo("required",t.required?"":null)},inputs:{required:"required"},features:[Du([Xw])]}),e}(),tS={provide:jk,useExisting:Pe(function(){return nS}),multi:!0},nS=function(){var e=function(){return m(function e(){g(this,e),this._validator=zk},[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this.enabled()?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=this.enabled()?Uk(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):zk}},{key:"enabled",value:function(){return null!=this.maxlength}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fo("maxlength",t.enabled()?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Du([tS]),Ft]}),e}(),iS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[Vw]]}),e}(),rS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[iS]}),e}(),sS=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Gw,useValue:t.warnOnNgModelWithFormControl}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[iS]}),e}(),aS=function(){var e=function(){return m(function e(){g(this,e)},[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),r=null,s=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(r=null!=n.validators?n.validators:null,s=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(r=null!=n.validator?n.validator:null,s=null!=n.asyncValidator?n.asyncValidator:null)),new Fw(i,{asyncValidators:s,updateOn:t,validators:r})}},{key:"control",value:function(e,t,n){return new Pw(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Yw(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof Pw||e instanceof Fw||e instanceof Yw?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:sS}),e}();function oS(e){return null!=e&&"false"!="".concat(e)}function uS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function lS(e){return Array.isArray(e)?e:[e]}function cS(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function dS(e){return e instanceof Iu?e.nativeElement:e}function hS(e,t,n,i){return S(n)&&(i=n,n=void 0),i?hS(e,t,n).pipe(ie(function(e){return I(e)?i.apply(void 0,d(e)):i(e)})):new Q(function(i){pS(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function pS(e,t,n,i,r){var s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),s=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var o=e;e.on(t,n),s=function(){return o.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),s=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(E(t.prototype),"recycleAsyncId",this).call(this,e,n,i);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}}])}(rb)),mS=1,gS=Promise.resolve(),vS={};function yS(e){return e in vS&&(delete vS[e],!0)}var _S=function(e){var t=mS++;return vS[t]=!0,gS.then(function(){return yS(t)&&e()}),t},bS=function(e){yS(e)},kS=new(function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=_S(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(E(t.prototype),"recycleAsyncId",this).call(this,e,n,i);0===e.actions.length&&(bS(n),e.scheduled=void 0)}}])}(rb));function wS(e,t){return function(n){return n.lift(new SS(e,t))}}var SS=function(){return m(function e(t,n){g(this,e),this.compare=t,this.keySelector=n},[{key:"call",value:function(e,t){return t.subscribe(new ES(e,this.compare,this.keySelector))}}])}(),ES=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return _(t,e),m(t,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}])}(U),TS=new ab(rb),DS=function(){return m(function e(t){g(this,e),this.durationSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new xS(e,this.durationSelector))}}])}(),xS=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).durationSelector=n,i.hasValue=!1,i}return _(t,e),m(t,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{var n;t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var i=me(t,new pe(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(fe);function CS(e){return!I(e)&&e-parseFloat(e)+1>=0}function MS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return CS(t)?i=Number(t)<1?1:Number(t):ne(t)&&(n=t),ne(n)||(n=TS),new Q(function(t){var r=CS(e)?e:+e-n.now();return n.schedule(LS,r,{index:0,period:i,subscriber:t})})}function LS(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function AS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TS;return function(e){return function(t){return t.lift(new DS(e))}}(function(){return MS(e,t)})}function OS(e){return function(t){return t.lift(new IS(e))}}var IS=function(){return m(function e(t){g(this,e),this.notifier=t},[{key:"call",value:function(e,t){var n=new RS(e),i=me(this.notifier,new pe(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}])}(),RS=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e])).seenValue=!1,n}return _(t,e),m(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(fe);function PS(){return function(e){return e.lift(new YS)}}var FS,YS=function(){return m(function e(){g(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new jS(e))}}])}(),jS=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e])).hasPrev=!1,n}return _(t,e),m(t,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}])}(U),qS=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return g(this,t),(e=v(this,t)).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _(t,e),m(t,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}h(E(t.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new NS(this._getNow(),e)),this._trimBufferThenGetEvents()),h(E(t.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;if(this.closed)throw new K;if(this.isStopped||this.hasError?t=Y.EMPTY:(this.observers.push(e),t=new J(this,e)),r&&e.add(e=new pb(e,r)),n)for(var a=0;at&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}])}(ee),NS=m(function e(t,n){g(this,e),this.time=t,this.value=n});try{FS="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(P){FS=!1}var HS,BS,US,zS,VS=function(){var e=m(function e(t){g(this,e),this._platformId=t,this.isBrowser=this._platformId?Gd(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&&!FS)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)($i(pc))},e.\u0275prov=Be({factory:function(){return new e($i(pc))},token:e,providedIn:"root"}),e}(),GS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),WS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ZS(){if(HS)return HS;if("object"!=typeof document||!document)return HS=new Set(WS);var e=document.createElement("input");return HS=new Set(WS.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function QS(e){return function(){if(null==BS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return BS=!0}}))}finally{BS=BS||!1}return BS}()?e:!!e.capture}function $S(e){if(function(){if(null==zS){var e="undefined"!=typeof document?document.head:null;zS=!(!e||!e.createShadowRoot&&!e.attachShadow)}return zS}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function KS(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function JS(e){return e.composedPath?e.composedPath()[0]:e.target}function XS(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var eE=new xi("cdk-dir-doc",{providedIn:"root",factory:function(){return Ki(ad)}}),tE=function(){var e=function(){return m(function e(t){if(g(this,e),this.value="ltr",this.change=new jl,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}},[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(eE,8))},e.\u0275prov=Be({factory:function(){return new e($i(eE,8))},token:e,providedIn:"root"}),e}(),nE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}();function iE(e){return e&&"function"==typeof e.connect}var rE=function(){return m(function e(){g(this,e)},[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,s){var a,o;if(null==e.previousIndex){var u=n(e,i,s);a=t.createEmbeddedView(u.templateRef,u.context,u.index),o=1}else null==s?(t.remove(i),o=3):(a=t.get(i),t.move(a,s),o=2);r&&r({context:null==a?void 0:a.context,operation:o,record:e})})}},{key:"detach",value:function(){}}])}(),sE=function(){return m(function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ee,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)},[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Q(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(AS(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Oh()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Rh(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=dS(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return hS(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(VS),$i(ad,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(VS),$i(ad,8))},token:e,providedIn:"root"}),e}(),lE=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this._platform=t,this._change=new ee,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})},[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(AS(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(Cc),$i(ad,8))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(Cc),$i(ad,8))},token:e,providedIn:"root"}),e}(),cE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),dE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[nE,GS,cE],nE,cE]}),e}();function hE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:TS;return function(n){return n.lift(new fE(e,t))}}var fE=function(){return m(function e(t,n){g(this,e),this.dueTime=t,this.scheduler=n},[{key:"call",value:function(e,t){return t.subscribe(new mE(e,this.dueTime,this.scheduler))}}])}(),mE=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _(t,e),m(t,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gE,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}])}(U);function gE(e){e.debouncedNext()}function vE(e){return function(t){return t.lift(new yE(e))}}var yE=function(){return m(function e(t){g(this,e),this.total=t},[{key:"call",value:function(e,t){return t.subscribe(new _E(e,this.total))}}])}(),_E=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).total=n,i.count=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}])}(U),bE=function(){var e=function(){return m(function e(){g(this,e)},[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kE=function(){var e=function(){return m(function e(t){g(this,e),this._mutationObserverFactory=t,this._observedElements=new Map},[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=dS(e);return new Q(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ee,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(bE))},e.\u0275prov=Be({factory:function(){return new e($i(bE))},token:e,providedIn:"root"}),e}(),wE=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new jl,this._disabled=!1,this._currentSubscription=null},[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=uS(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pE(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(kE),yo(Iu),yo(Cc))},e.\u0275dir=Et({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),SE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[bE]}),e}();function EE(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var TE="cdk-describedby-message-container",DE="cdk-describedby-message",xE="cdk-describedby-host",CE=0,ME=new Map,LE=null,AE=function(){var e=function(){return m(function e(t){g(this,e),this._document=t},[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=OE(t,n);"string"!=typeof t?(IE(t),ME.set(i,{messageElement:t,referenceCount:0})):ME.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=OE(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=ME.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}LE&&0===LE.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(xE,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})},[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Zg(function(t){return e._pressedLetters.push(t)}),pE(t),Rh(function(){return e._pressedLetters.length>0}),ie(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||hE(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Nl?this._items.toArray():this._items}}])}(),PE=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(E(t.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}])}(RE),FE=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._origin="program",e}return _(t,e),m(t,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(E(t.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}])}(RE),YE=function(){var e=function(){return m(function e(t){g(this,e),this._platform=t},[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===qE(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=qE(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||jE(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(VS))},token:e,providedIn:"root"}),e}();function jE(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function qE(e){if(!jE(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var NE=function(){return m(function e(t,n,i,r){var s=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];g(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return s.focusLastTabbableElement()},this.endAnchorListener=function(){return s.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()},[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Dg(1)).subscribe(e)}}])}(),HE=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._checker=t,this._ngZone=n,this._document=i},[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new NE(e,this._checker,this._ngZone,this._document,t)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(YE),$i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(YE),$i(Cc),$i(ad))},token:e,providedIn:"root"}),e}();function BE(e){return 0===e.offsetX&&0===e.offsetY}function UE(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var zE=new xi("cdk-input-modality-detector-options"),VE={ignoreKeys:[18,17,224,91,16]},GE=QS({passive:!0,capture:!0}),WE=function(){var e=function(){return m(function e(t,n,i,r){var s=this;g(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new lg(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=s._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(s._modality.next("keyboard"),s._mostRecentTarget=JS(e))},this._onMousedown=function(e){Date.now()-s._lastTouchMs<650||(s._modality.next(BE(e)?"keyboard":"mouse"),s._mostRecentTarget=JS(e))},this._onTouchstart=function(e){UE(e)?s._modality.next("keyboard"):(s._lastTouchMs=Date.now(),s._modality.next("touch"),s._mostRecentTarget=JS(e))},this._options=Object.assign(Object.assign({},VE),r),this.modalityDetected=this._modality.pipe(vE(1)),this.modalityChanged=this.modalityDetected.pipe(wS()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",s._onKeydown,GE),i.addEventListener("mousedown",s._onMousedown,GE),i.addEventListener("touchstart",s._onTouchstart,GE)})},[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,GE),document.removeEventListener("mousedown",this._onMousedown,GE),document.removeEventListener("touchstart",this._onTouchstart,GE))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(Cc),$i(ad),$i(zE,8))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(Cc),$i(ad),$i(zE,8))},token:e,providedIn:"root"}),e}(),ZE=new xi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),QE=new xi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),$E=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()},[{key:"announce",value:function(e){for(var t,n,i,r=this,s=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=dS(e);if(!this._platform.isBrowser||1!==n.nodeType)return Oh(null);var i=$S(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var s={checkChildren:t,subject:new ee,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}},{key:"stopMonitoring",value:function(e){var t=dS(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=dS(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=T(e,2),r=n[0],s=n[1];return i._originChanged(r,t,s)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=JS(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,JE),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,JE)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(OS(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,JE),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,JE),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(VS),$i(WE),$i(ad,8),$i(KE,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(VS),$i(WE),$i(ad,8),$i(KE,8))},token:e,providedIn:"root"}),e}(),eT=function(){var e=function(){return m(function e(t,n){g(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new jl},[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(XE))},e.\u0275dir=Et({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),tT="cdk-high-contrast-black-on-white",nT="cdk-high-contrast-white-on-black",iT="cdk-high-contrast-active",rT=function(){var e=function(){return m(function e(t,n){g(this,e),this._platform=t,this._document=n},[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(iT),e.remove(tT),e.remove(nT),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(iT),e.add(tT)):2===t&&(e.add(iT),e.add(nT))}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(ad))},token:e,providedIn:"root"}),e}(),sT=function(){var e=m(function e(t){g(this,e),t._applyBodyHighContrastModeCssClasses()});return e.\u0275fac=function(t){return new(t||e)($i(rT))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[GS,SE]]}),e}();function aT(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function oT(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];r?e.setProperty(i,r,(null==n?void 0:n.has(i))?"important":""):e.removeProperty(i)}return e}function uT(e,t){var n=t?"":"none";oT(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function lT(e,t,n){oT(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function cT(e,t){return t&&"none"!=t?e+" "+t:e}function dT(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function hT(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function pT(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function fT(e,t,n){var i=e.top,r=e.bottom,s=e.left,a=e.right;return n>=i&&n<=r&&t>=s&&t<=a}function mT(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function gT(e,t,n,i){var r=e.top,s=e.right,a=e.bottom,o=e.left,u=e.width*t,l=e.height*t;return i>r-l&&io-u&&n=o._config.dragStartThreshold){var r=Date.now()>=o._dragStartTime+o._getDragStartDelay(e),s=o._dropContainer;if(!r)return void o._endDragSequence(e);(!s||!s.isDragging()&&!s.isReceiving())&&(e.preventDefault(),o._hasStartedDragging=!0,o._ngZone.run(function(){return o._startDragSequence(e)}))}},this._pointerUp=function(e){o._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new vT(i,s),a.registerDragItem(this)},[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=oS(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return uT(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return dS(e)}),this._handles.forEach(function(e){return uT(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=dS(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,ET),n.addEventListener("touchstart",t._pointerDown,ST)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?dS(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&MT(this._rootElement),MT(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),uT(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),uT(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&MT(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&MT(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){LT(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(s,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),lT(n,!1,TT),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=LT(t),s=!r&&0!==t.button,a=this._rootElement,o=JS(t),u=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?UE(t):BE(t);if(o&&o.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||s||u||l)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(e){return n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=pT(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;lT(this._rootElement,!0,TT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),s=t._getDragDistance(r),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:s,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:s,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,a,s,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,s=t.x,a=t.y,o=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=o,n._dropContainer.enter(n,i,r,o===n._initialContainer&&o.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:o,currentIndex:o.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(s,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),e=AT(s,this._document),this._previewRef=s,t.matchSize?OT(e,r):e.style.transform=xT(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;OT(e=yT(a),a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return oT(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},TT),uT(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=hT(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),s=hT(t,"transition-duration"),a=hT(t,"transition-delay");return dT(s[r])+dT(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){var s;(!i||JS(i)===e._preview&&"transform"===i.propertyName)&&(null===(s=e._preview)||void 0===s||s.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=AT(this._placeholderRef,this._document)):e=yT(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,s=LT(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(s.pageX-r.left-a.left),y:r.top-n.top+(s.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=LT(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var s=this._ownerSVGElement.getScreenCTM();if(s){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(s.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){var s=this._pickupPositionInElement,a=s.x,o=s.y,u=this._boundaryRect,l=this._previewRect,c=u.top+o,d=u.bottom-(l.height-o);i=CT(i,u.left+a,u.right-(l.width-a)),r=CT(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),a=Math.abs(n-r.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,uT(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,ET),e.removeEventListener("touchstart",this._pointerDown,ST)}},{key:"_applyRootElementTransform",value:function(e,t){var n=xT(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=cT(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=xT(e,t);this._preview.style.transform=cT(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var s=i.left-r.left,a=r.right-i.right,o=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>r.height?(o>0&&(n+=o),u>0&&(n-=u)):n=0,(t!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:LT(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=JS(e);this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&mT(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$S(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return dS(n)}}])}();function xT(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function CT(e,t,n){return Math.max(t,Math.min(n,e))}function MT(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function LT(e){return"t"===e.type[0]}function AT(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function OT(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=xT(t.left,t.top)}function IT(e,t){return Math.max(0,Math.min(t,e))}var RT=function(){return m(function e(t,n,i,r,s){var a=this;g(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new ee,this.entered=new ee,this.exited=new ee,this.dropped=new ee,this.sorted=new ee,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Y.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ee,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TS;return(!CS(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=TS),new Q(function(n){return n.add(t.schedule(aT,e,{subscriber:n,counter:0,period:e})),n})}(0,fS).pipe(OS(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?FT(e,-t):2===a._verticalScrollDirection&&FT(e,t),1===a._horizontalScrollDirection?YT(e,-t):2===a._horizontalScrollDirection&&YT(e,t)})},this.element=dS(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new vT(i,s)},[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var s=this._activeDraggables,a=s.indexOf(e),o=e.getPlaceholderElement(),u=s[r];if(u===e&&(u=s[r+1]),a>-1&&s.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(o,l),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=s[0].getRootElement();c.parentNode.insertBefore(o,c),s.unshift(e)}else dS(this.element).appendChild(o),s.push(e);o.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,s,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:s,dropPoint:a})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=dS(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(d(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?PT("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&gT(this._clientRect,.05,t,n)){var r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===s&&r.length>0)){var a="horizontal"===this._orientation,o=PT(r,function(t){return t.drag===e}),u=r[s],l=u.clientRect,c=o>s?1:-1,d=this._getItemOffsetPx(r[o].clientRect,l,c),h=this._getSiblingOffsetPx(o,r,c),p=r.slice();(function(e,t,n){var i=IT(t,e.length-1),r=IT(n,e.length-1);if(i!==r){for(var s=e[i],a=r0&&(a=1):e.scrollHeight-u>e.clientHeight&&(a=2)}if(s){var l=e.scrollLeft;1===s?l>0&&(o=1):e.scrollWidth-l>e.clientWidth&&(o=2)}return[a,o]}(o,a.clientRect,e,t),l=T(u,2),r=l[0],s=l[1],(r||s)&&(i=o))}),!r&&!s){var a=this._viewportRuler.getViewportSize(),o=a.width,u=a.height,l={width:o,height:u,top:0,right:o,bottom:u,left:0};r=jT(l,t),s=qT(l,e),i=window}i&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=i,(r||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=dS(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=dS(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:pT(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=dS(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*n],a=r[i?"width":"height"]*n;if(s){var o=i?"left":"top",u=i?"right":"bottom";-1===n?a-=s.clientRect[o]-r[u]:a+=r[o]-s.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var s=n[0].clientRect;return i?e<=s.left:t<=s.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,s="horizontal"===this._orientation,a=PT(this._itemPositions,function(a,o,u){var l=a.drag,c=a.clientRect;if(l===e)return u.length<2;if(i){var d=s?i.x:i.y;if(l===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return s?t>=Math.floor(c.left)&&t=Math.floor(c.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){mT(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=$S(dS(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}])}();function PT(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function qT(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var NT=QS({passive:!1,capture:!0}),HT=function(){var e=function(){return m(function e(t,n){var i=this;g(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ee,this.pointerUp=new ee,this.scroll=new ee,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n},[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,NT)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NT)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NT}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:NT}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var t=this,n=[this.scroll];return e&&e!==this._document&&n.push(new Q(function(n){return t._ngZone.runOutsideAngular(function(){var i=function(e){t._activeDragInstances.length&&n.next(e)};return e.addEventListener("scroll",i,!0),function(){e.removeEventListener("scroll",i,!0)}})})),ke.apply(void 0,n)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(ad))},token:e,providedIn:"root"}),e}(),BT={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UT=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r},[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BT;return new DT(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new RT(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(Cc),$i(lE),$i(HT))},e.\u0275prov=Be({factory:function(){return new e($i(ad),$i(Cc),$i(lE),$i(HT))},token:e,providedIn:"root"}),e}(),zT=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[UT],imports:[cE]}),e}(),VT=[[["caption"]],[["colgroup"],["col"]]],GT=["caption","colgroup, col"];function WT(e){return function(e){function t(){var e;g(this,t);for(var n=arguments.length,i=new Array(n),r=0;r4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=arguments.length>6?arguments[6]:void 0;g(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=a,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}},[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],s=M(e);try{for(s.s();!(n=s.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var o=0;o3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var s=e[0],a=s.children.length,o=this._getCellWidths(s,r),u=this._getStickyStartColumnPositions(o,t),l=this._getStickyEndColumnPositions(o,n),c=t.lastIndexOf(!0),d=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,s="rtl"===i.direction,h=s?"right":"left",p=s?"left":"right",f=M(e);try{for(f.s();!(r=f.n()).done;)for(var m=r.value,g=0;g1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}])}(),bD=new xi("CDK_SPL"),kD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","rowOutlet",""]]}),e}(),wD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),SD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),ED=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),TD=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._stickyPositioningListener=d,this._onDestroy=new ee,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new jl,this.viewChange=new lg({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName},[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=oS(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=oS(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(OS(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),iE(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(d(t),d(n),d(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),s=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,s,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=M(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;fD.mostRecentCellOutlet&&fD.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(s){i.e(s)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:0;return function(e){function n(){var e;g(this,n);for(var i=arguments.length,r=new Array(i),s=0;s0?n:e}}])}(),WD=new xi("mat-date-formats");try{zD="undefined"!=typeof Intl}catch(P){zD=!1}var ZD={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},QD=JD(31,function(e){return String(e+1)}),$D={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},KD=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function JD(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(KD.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return h(E(t.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}])}(GD);return e.\u0275fac=function(t){return new(t||e)($i(VD,8),$i(VS))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),ex=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[{provide:GD,useClass:XD}],imports:[[GS]]}),e}(),tx={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[{provide:WD,useValue:tx}],imports:[[ex]]}),e}(),ix=function(){var e=function(){return m(function e(){g(this,e)},[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),rx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function sx(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var ax=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),ox=function(){return m(function e(t,n,i){g(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3},[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}])}(),ux={enterDuration:225,exitDuration:150},lx=QS({passive:!0}),cx=["mousedown","touchstart"],dx=["mouseup","mouseleave","touchend","touchcancel"],hx=function(){return m(function e(t,n,i,r){g(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=dS(i))},[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},ux),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),o=e-r.left,u=t-r.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),function(e){window.getComputedStyle(e).getPropertyValue("opacity")}(c),c.style.transform="scale(1)";var d=new ox(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,!i.persistent&&(!e||!n._isPointerDown)&&d.fadeOut()},l),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},ux),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=dS(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(cx))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(dx),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=BE(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,lx)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(cx.forEach(function(t){e._triggerElement.removeEventListener(t,e,lx)}),this._pointerUpEventsRegistered&&dx.forEach(function(t){e._triggerElement.removeEventListener(t,e,lx)}))}}])}(),px=new xi("mat-ripple-global-options"),fx=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new hx(this,n,t,i)},[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(VS),yo(px,8),yo(rg,8))},e.\u0275dir=Et({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),mx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD,GS],YD]}),e}(),gx=function(){var e=m(function e(t){g(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1});return e.\u0275fac=function(t){return new(t||e)(yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Qo("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),vx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD]]}),e}(),yx=new xi("MAT_OPTION_PARENT_COMPONENT"),_x=jD(function(){return m(function e(){g(this,e)})}()),bx=0,kx=function(){var e=function(e){function t(e){var n,i;return g(this,t),(n=v(this,t))._labelId="mat-optgroup-label-"+bx++,n._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i,n}return _(t,e),m(t)}(_x);return e.\u0275fac=function(t){return new(t||e)(yo(yx,8))},e.\u0275dir=Et({type:e,inputs:{label:"label"},features:[eo]}),e}(),wx=new xi("MatOptgroup"),Sx=0,Ex=m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.source=t,this.isUserInput=n}),Tx=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Sx++,this.onSelectionChange=new jl,this._stateChanges=new ee},[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=oS(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(13===e.keyCode||32===e.keyCode)&&!hE(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Ex(this,e))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(void 0),yo(kx))},e.\u0275dir=Et({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Dx=function(){var e=function(e){function t(e,n,i,r){return g(this,t),v(this,t,[e,n,i,r])}return _(t,e),m(t)}(Tx);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(yx,8),yo(wx,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(cu("id",t.id),fo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Qo("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[eo],ngContentSelectors:OD,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(jo(),go(0,LD,1,2,"mat-pseudo-checkbox",0),ko(1,"span",1),qo(2),wo(),go(3,AD,2,1,"span",2),So(4,"div",3)),2&e&&(_o("ngIf",t.multiple),Ns(3),_o("ngIf",t.group&&t.group._inert),Ns(1),_o("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Od,fx,gx],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function xx(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),s=0,a=0;a1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,h(E(t.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(E(t.prototype),"detach",this).call(this)}}])}(Mx),Ox=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).element=e instanceof Iu?e.nativeElement:e,n}return _(t,e),m(t)}(Mx),Ix=function(){return m(function e(){g(this,e),this._isDisposed=!1,this.attachDomPortal=null},[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Lx?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ax?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Ox?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}(),Rx=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t)).outletElement=e,a._componentFactoryResolver=n,a._appRef=i,a._defaultInjector=r,a.attachDomPortal=function(e){var n=e.element,i=a._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),a.outletElement.appendChild(n),a._attachedPortal=e,h((y(a),E(t.prototype)),"setDisposeFn",y(a)).call(y(a),function(){i.parentNode&&i.parentNode.replaceChild(n,i)})},a._document=s,a}return _(t,e),m(t,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){h(E(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}])}(Ix),Px=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new jl,r.attachDomPortal=function(e){var n=e.element,i=r._document.createComment("dom-portal");e.setAttachedHost(y(r)),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),r._attachedPortal=e,h((y(r),E(t.prototype)),"setDisposeFn",y(r)).call(y(r),function(){i.parentNode&&i.parentNode.replaceChild(n,i)})},r._document=i,r}return _(t,e),m(t,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&h(E(t.prototype),"detach",this).call(this),e&&h(E(t.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=n.createComponent(i,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(E(t.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(E(t.prototype),"setDisposeFn",this).call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Mu),yo(gl),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[eo]}),e}(),Fx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),Yx=function(){return m(function e(t,n){g(this,e),this.predicate=t,this.inclusive=n},[{key:"call",value:function(e,t){return t.subscribe(new jx(e,this.predicate,this.inclusive))}}])}(),jx=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).predicate=n,r.inclusive=i,r.index=0,r}return _(t,e),m(t,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}])}(U),qx=function(){if(null==US){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return US=!1;if("scrollBehavior"in document.documentElement.style)US=!0;else{var e=Element.prototype.scrollTo;US=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return US}(),Nx=function(){return m(function e(t,n){g(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n},[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=cS(-this._previousScrollPosition.left),e.style.top=cS(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),qx&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qx&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}])}(),Hx=function(){return m(function e(t,n,i,r){var s=this;g(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){s.disable(),s._overlayRef.hasAttached()&&s._ngZone.run(function(){return s._overlayRef.detach()})}},[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),Bx=function(){return m(function e(){g(this,e)},[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function Ux(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function zx(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Vx=function(){return m(function e(t,n,i,r){g(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null},[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ux(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),Gx=function(){var e=m(function e(t,n,i,r){var s=this;g(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Bx},this.close=function(e){return new Hx(s._scrollDispatcher,s._ngZone,s._viewportRuler,e)},this.block=function(){return new Nx(s._viewportRuler,s._document)},this.reposition=function(e){return new Vx(s._scrollDispatcher,s._viewportRuler,s._ngZone,e)},this._document=r});return e.\u0275fac=function(t){return new(t||e)($i(uE),$i(lE),$i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(uE),$i(lE),$i(Cc),$i(ad))},token:e,providedIn:"root"}),e}(),Wx=m(function e(t){if(g(this,e),this.scrollStrategy=new Bx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(ad))},token:e,providedIn:"root"}),e}(),Kx=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e]))._keydownListener=function(e){for(var t=n._attachedOverlays,i=t.length-1;i>-1;i--)if(t[i]._keydownEvents.observers.length>0){t[i]._keydownEvents.next(e);break}},n}return _(t,e),m(t,[{key:"add",value:function(e){h(E(t.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}])}($x);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(ad))},token:e,providedIn:"root"}),e}(),Jx=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e]))._platform=n,i._cursorStyleIsSet=!1,i._pointerDownListener=function(e){i._pointerDownEventTarget=JS(e)},i._clickListener=function(e){var t=JS(e),n="click"===e.type&&i._pointerDownEventTarget?i._pointerDownEventTarget:t;i._pointerDownEventTarget=null;for(var r=i._attachedOverlays.slice(),s=r.length-1;s>-1;s--){var a=r[s];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t)||a.overlayElement.contains(n))break;a._outsidePointerEvents.next(e)}}},i}return _(t,e),m(t,[{key:"add",value:function(e){if(h(E(t.prototype),"add",this).call(this,e),!this._isAttached){var n=this._document.body;n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}])}($x);return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(ad),$i(VS))},token:e,providedIn:"root"}),e}(),Xx=function(){var e=function(){return m(function e(t,n){g(this,e),this._platform=n,this._document=t},[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||XS())for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;np&&(p=g,h=m)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&rC(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tC),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=aC(t),s=e.x,a=e.y,o=this._getOffset(i,"x"),u=this._getOffset(i,"y");o&&(s+=o),u&&(a+=u);var l=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-s,s+r.width-n.width),h=this._subtractOverflows(r.height,l,c),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,s=sC(this._overlayRef.getConfig().minHeight),a=sC(this._overlayRef.getConfig().minWidth),o=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=s&&s<=i)&&o}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,s=aC(t),a=this._viewportRect,o=Math.max(e.x+s.width-a.width,0),u=Math.max(e.y+s.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=s.width<=a.width?c||-o:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)o=u.width-e.x+this._viewportMargin,s=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,s=u.right-e.x;else{var h=Math.min(u.right-e.x+u.left,e.x),p=this._lastBoundingBoxSize.width;s=2*h,a=e.x-h,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-p/2)}return{top:i,left:a,bottom:r,right:o,width:s,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=cS(n.height),i.top=cS(n.top),i.bottom=cS(n.bottom),i.width=cS(n.width),i.left=cS(n.left),i.right=cS(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=cS(r)),s&&(i.maxWidth=cS(s))}this._lastBoundingBoxSize=n,rC(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){rC(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){rC(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();rC(n,this._getExactOverlayY(t,e,a)),rC(n,this._getExactOverlayX(t,e,a))}else n.position="static";var o="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(o+="translateX(".concat(u,"px) ")),l&&(o+="translateY(".concat(l,"px)")),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=cS(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=cS(s.maxWidth):r&&(n.maxWidth="")),rC(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=cS(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=cS(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:zx(e,n),isOriginOutsideView:Ux(e,n),isOverlayClipped:zx(t,n),isOverlayOutsideView:Ux(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,s=n.maxWidth,a=n.maxHeight,o=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=o?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,o?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(uC),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),cC=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r},[{key:"global",value:function(){return new lC}},{key:"connectedTo",value:function(e,t,n){return new oC(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new iC(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(lE),$i(ad),$i(VS),$i(Xx))},e.\u0275prov=Be({factory:function(){return new e($i(lE),$i(ad),$i(VS),$i(Xx))},token:e,providedIn:"root"}),e}(),dC=0,hC=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=d},[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Wx(e);return r.direction=r.direction||this._directionality.value,new eC(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+dC++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Zc)),new Rx(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Gx),$i(Xx),$i(Mu),$i(cC),$i(Kx),$i(Ja),$i(Cc),$i(ad),$i(tE),$i(kd),$i(Jx))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),pC=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fC=new xi("cdk-connected-overlay-scroll-strategy"),mC=function(){var e=m(function e(t){g(this,e),this.elementRef=t});return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),gC=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Y.EMPTY,this._attachSubscription=Y.EMPTY,this._detachSubscription=Y.EMPTY,this._positionSubscription=Y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new jl,this.positionChange=new jl,this.attach=new jl,this.detach=new jl,this.overlayKeydown=new jl,this.overlayOutsideClick=new jl,this._templatePortal=new Ax(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()},[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=oS(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=oS(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=oS(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=oS(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=oS(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=pC);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27===t.keyCode&&!e.disableClose&&!hE(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Wx({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Yx(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(cl),yo(gl),yo(fC),yo(tE,8))},e.\u0275dir=Et({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ft]}),e}(),vC={provide:fC,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},yC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[hC,vC],imports:[[nE,Fx,dE],dE]}),e}(),_C=["underline"],bC=["connectionContainer"],kC=["inputContainer"],wC=["label"];function SC(e,t){1&e&&(Eo(0),ko(1,"div",14),So(2,"div",15),So(3,"div",16),So(4,"div",17),wo(),ko(5,"div",18),So(6,"div",15),So(7,"div",16),So(8,"div",17),wo(),To())}function EC(e,t){1&e&&(ko(0,"div",19),qo(1,1),wo())}function TC(e,t){if(1&e&&(Eo(0),qo(1,2),ko(2,"span"),au(3),wo(),To()),2&e){var n=Fo(2);Ns(3),ou(n._control.placeholder)}}function DC(e,t){1&e&&qo(0,3,["*ngSwitchCase","true"])}function xC(e,t){1&e&&(ko(0,"span",23),au(1," *"),wo())}function CC(e,t){if(1&e){var n=xo();ko(0,"label",20,21),Ao("cdkObserveContent",function(){return ln(n),Fo().updateOutlineGap()}),go(2,TC,4,1,"ng-container",12),go(3,DC,1,0,"ng-content",12),go(4,xC,2,0,"span",22),wo()}if(2&e){var i=Fo();Qo("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),_o("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),fo("for",i._control.id)("aria-owns",i._control.id),Ns(2),_o("ngSwitchCase",!1),Ns(1),_o("ngSwitchCase",!0),Ns(1),_o("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function MC(e,t){1&e&&(ko(0,"div",24),qo(1,4),wo())}function LC(e,t){if(1&e&&(ko(0,"div",25,26),So(2,"span",27),wo()),2&e){var n=Fo();Ns(2),Qo("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function AC(e,t){1&e&&(ko(0,"div"),qo(1,5),wo()),2&e&&_o("@transitionMessages",Fo()._subscriptAnimationState)}function OC(e,t){if(1&e&&(ko(0,"div",31),au(1),wo()),2&e){var n=Fo(2);_o("id",n._hintLabelId),Ns(1),ou(n.hintLabel)}}function IC(e,t){if(1&e&&(ko(0,"div",28),go(1,OC,2,2,"div",29),qo(2,6),So(3,"div",30),qo(4,7),wo()),2&e){var n=Fo();_o("@transitionMessages",n._subscriptAnimationState),Ns(1),_o("ngIf",n.hintLabel)}}var RC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],FC=0,YC=new xi("MatError"),jC=function(){var e=m(function e(t,n){g(this,e),this.id="mat-error-"+FC++,t||n.nativeElement.setAttribute("aria-live","polite")});return e.\u0275fac=function(t){return new(t||e)(ki("aria-live"),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&fo("id",t.id)},inputs:{id:"id"},features:[Du([{provide:YC,useExisting:e}])]}),e}(),qC={transitionMessages:_p("transitionMessages",[Sp("enter",wp({opacity:1,transform:"translateY(0%)"})),Tp("void => enter",[wp({opacity:0,transform:"translateY(-5px)"}),bp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},NC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e}),e}(),HC=0,BC=new xi("MatHint"),UC=function(){var e=m(function e(){g(this,e),this.align="start",this.id="mat-hint-"+HC++});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(fo("id",t.id)("align",null),Qo("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Du([{provide:BC,useExisting:e}])]}),e}(),zC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-label"]]}),e}(),VC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-placeholder"]]}),e}(),GC=new xi("MatPrefix"),WC=new xi("MatSuffix"),ZC=0,QC=qD(function(){return m(function e(t){g(this,e),this._elementRef=t})}(),"primary"),$C=new xi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KC=new xi("MatFormField"),JC=function(){var e=function(e){function t(e,n,i,r,s,a,o,u){var l;return g(this,t),(l=v(this,t,[e]))._changeDetectorRef=n,l._dir=r,l._defaults=s,l._platform=a,l._ngZone=o,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new ee,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+ZC++,l._labelId="mat-form-field-label-"+ZC++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==u,l.appearance=s&&s.appearance?s.appearance:"legacy",l._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,l}return _(t,e),m(t,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=oS(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Mg(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(OS(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(OS(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),ke(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Mg(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Mg(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(OS(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,hS(this._label.nativeElement,"transitionend").pipe(Dg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,d(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,d(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var o=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,d=0;d0?.75*c+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:TS,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new nM(n,t))}}var tM,nM=function(){return m(function e(t,n){g(this,e),this.delay=t,this.scheduler=n},[{key:"call",value:function(e,t){return t.subscribe(new iM(e,this.delay,this.scheduler))}}])}(),iM=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return _(t,e),m(t,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new rM(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(db.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(db.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var s=Math.max(0,n[0].time-i.now());this.schedule(e,s)}else this.unsubscribe(),t.active=!1}}])}(U),rM=m(function e(t,n){g(this,e),this.time=t,this.notification=n}),sM={provide:new xi("mat-autocomplete-scroll-strategy"),deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},aM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[sM],imports:[[yC,Cx,YD,zd],cE,Cx,YD]}),e}(),oM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[sT,YD],YD]}),e}(),uM=new Set,lM=function(){var e=function(){return m(function e(t){g(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):cM},[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(e){if(!uM.has(e))try{tM||((tM=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(tM)),tM.sheet&&(tM.sheet.insertRule("@media ".concat(e," {body{ }}"),0),uM.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(VS))},token:e,providedIn:"root"}),e}();function cM(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var dM=function(){var e=function(){return m(function e(t,n){g(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ee},[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return hM(lS(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=fg(hM(lS(e)).map(function(e){return t._registerQuery(e).observable}));return(n=yg(n.pipe(Dg(1)),n.pipe(vE(1),pE(0)))).pipe(ie(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new Q(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Mg(n),ie(function(t){var n=t.matches;return{query:e,matches:n}}),OS(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}])}();return e.\u0275fac=function(t){return new(t||e)($i(lM),$i(Cc))},e.\u0275prov=Be({factory:function(){return new e($i(lM),$i(Cc))},token:e,providedIn:"root"}),e}();function hM(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var pM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[yC,YD,Fx],YD]}),e}(),fM=["mat-button",""],mM=["*"],gM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],vM=qD(jD(ND(function(){return m(function e(t){g(this,e),this._elementRef=t})}()))),yM=function(){var e=function(e){function t(e,n,i){var r;g(this,t),(r=v(this,t,[e]))._focusMonitor=n,r._animationMode=i,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var s,a=M(gM);try{for(a.s();!(s=a.n()).done;){var o=s.value;r._hasHostAttributes(o)&&r._getHostElement().classList.add(o)}}catch(u){a.e(u)}finally{a.f()}return e.nativeElement.classList.add("mat-button-base"),r.isRoundButton&&(r.color="accent"),r}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),_M=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[mx,YD],YD]}),e}(),bM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD,mx],YD]}),e}(),kM=["*",[["mat-card-footer"]]],wM=["*","mat-card-footer"],SM=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],EM=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],TM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),DM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),xM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),CM=function(){var e=m(function e(){g(this,e),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),MM=function(){var e=m(function e(t){g(this,e),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:wM,decls:2,vars:0,template:function(e,t){1&e&&(jo(kM),qo(0),qo(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),LM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:EM,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(jo(SM),qo(0),ko(1,"div",0),qo(2,1),wo(),qo(3,2))},encapsulation:2,changeDetection:0}),e}(),AM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),OM=["input"],IM=function(e){return{enterDuration:e}},RM=["*"],PM=new xi("mat-checkbox-default-options",{providedIn:"root",factory:FM});function FM(){return{color:"accent",clickAction:"check-indeterminate"}}var YM=0,jM={color:"accent",clickAction:"check-indeterminate"},qM={provide:Ok,useExisting:Pe(function(){return BM}),multi:!0},NM=m(function e(){g(this,e)}),HM=HD(qD(ND(jD(function(){return m(function e(t){g(this,e),this._elementRef=t})}())))),BM=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e]))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._animationMode=a,u._options=o,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++YM,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new jl,u.indeterminateChange=new jl,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||jM,u.color=u.defaultColor=u._options.color||jM.color,u.tabIndex=parseInt(s)||0,u}return _(t,e),m(t,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=oS(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=oS(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new NM;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}])}(HM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(XE),yo(Cc),ki("tabindex"),yo(rg,8),yo(PM,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(Kl(OM,5),Kl(fx,5)),2&e)&&($l(n=Xl())&&(t._inputElement=n.first),$l(n=Xl())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(cu("id",t.id),fo("tabindex",null),Qo("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Du([qM]),eo],ngContentSelectors:RM,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(jo(),ko(0,"label",0,1),ko(2,"span",2),ko(3,"input",3,4),Ao("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),wo(),ko(5,"span",5),So(6,"span",6),wo(),So(7,"span",7),ko(8,"span",8),Yn(),ko(9,"svg",9),So(10,"path",10),wo(),jn(),So(11,"span",11),wo(),wo(),ko(12,"span",12,13),Ao("cdkObserveContent",function(){return t._onLabelTextChange()}),ko(14,"span",14),au(15,"\xa0"),wo(),qo(16),wo(),wo()),2&e){var n=vo(1),i=vo(13);fo("for",t.inputId),Ns(2),Qo("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Ns(1),_o("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),fo("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Ns(2),_o("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Al(19,IM,"NoopAnimations"===t._animationMode?0:150))}},directives:[fx,wE],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),UM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),zM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[mx,YD,SE,UM],YD,UM]}),e}(),VM=["*"],GM=new xi("MatChipRemove"),WM=new xi("MatChipAvatar"),ZM=new xi("MatChipTrailingIcon"),QM=HD(qD(ND(m(function e(t){g(this,e),this._elementRef=t})),"primary"),-1),$M=function(){var e=function(e){function t(e,n,i,r,s,a,o,u){var l;return g(this,t),(l=v(this,t,[e]))._ngZone=n,l._changeDetectorRef=s,l._hasFocus=!1,l.chipListSelectable=!0,l._chipListMultiple=!1,l._chipListDisabled=!1,l._selected=!1,l._selectable=!0,l._disabled=!1,l._removable=!0,l._onFocus=new ee,l._onBlur=new ee,l.selectionChange=new jl,l.destroyed=new jl,l.removed=new jl,l._addHostClassName(),l._chipRippleTarget=a.createElement("div"),l._chipRippleTarget.classList.add("mat-chip-ripple"),l._elementRef.nativeElement.appendChild(l._chipRippleTarget),l._chipRipple=new hx(y(l),n,l._chipRippleTarget,i),l._chipRipple.setupTriggerEvents(e),l.rippleConfig=r||{},l._animationsDisabled="NoopAnimations"===o,l.tabIndex=null!=u&&parseInt(u)||-1,l}return _(t,e),m(t,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=oS(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=oS(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=oS(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=oS(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}])}(QM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(VS),yo(px,8),yo(sl),yo(ad),yo(rg,8),ki("tabindex"))},e.\u0275dir=Et({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,WM,5),Jl(n,ZM,5),Jl(n,GM,5)),2&e)&&($l(i=Xl())&&(t.avatar=i.first),$l(i=Xl())&&(t.trailingIcon=i.first),$l(i=Xl())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(fo("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Qo("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[eo]}),e}(),KM=function(){var e=function(){return m(function e(t,n){g(this,e),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")},[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo($M),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._handleClick(e)})},features:[Du([{provide:GM,useExisting:e}])]}),e}(),JM=new xi("mat-chips-default-options"),XM=BD(function(){return m(function e(t,n,i,r){g(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})}()),eL=0,tL=m(function e(t,n){g(this,e),this.source=t,this.value=n}),nL=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[a,r,s,o]))._elementRef=e,u._changeDetectorRef=n,u._dir=i,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new ee,u._uid="mat-chip-list-"+eL++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new jl,u.valueChange=new jl,u.ngControl&&(u.ngControl.valueAccessor=y(u)),u}return _(t,e),m(t,[{key:"selected",get:function(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=oS(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=oS(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=oS(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new FE(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(OS(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(OS(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Mg(null),OS(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new sE(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new tL(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}])}(XM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(tE,8),yo(Nw,8),yo($w,8),yo(ix),yo(lw,10))},e.\u0275cmp=yt({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,$M,5),2&e)&&($l(i=Xl())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&Ao("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(cu("id",t._uid),fo("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Qo("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Du([{provide:NC,useExisting:e}]),eo],ngContentSelectors:VM,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),qo(1),wo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),iL={separatorKeyCodes:[13]},rL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ix,{provide:JM,useValue:iL}],imports:[[YD]]}),e}(),sL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[nE]]}),e}(),aL=["*"];function oL(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function uL(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function lL(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var cL=m(function e(t,n,i){g(this,e),this.url=t,this.svgText=n,this.options=i}),dL=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i},[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new cL(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(ys.HTML,n);if(!r)throw lL(n);return this._addSvgIconConfig(e,t,new cL("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new cL(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(ys.HTML,t);if(!i)throw lL(t);return this._addSvgIconSetConfig(e,new cL("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(ys.RESOURCE_URL,e);if(!n)throw uL(e);var i=this._cachedIconsByUrl.get(n);return i?Oh(hL(i)):this._loadSvgIconFromConfig(new cL(e,null)).pipe(Zg(function(e){return t._cachedIconsByUrl.set(n,e)}),ie(function(e){return hL(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=pL(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):lb(oL(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Oh(hL(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ie(function(e){return hL(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Oh(i):Ck(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Ig(function(t){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(ys.RESOURCE_URL,e.url)," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(i)),Oh(null)}))})).pipe(ie(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw oL(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),s=this._extractSvgIconFromSet(r,e,i.options);if(s)return s}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}),ie(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Oh(null):this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),s=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(s,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,n)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(Cc),yo(ad,8))},e.\u0275dir=Et({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&Ao("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),CL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[GS]]}),e}(),ML=new xi("MAT_INPUT_VALUE_ACCESSOR"),LL=["button","checkbox","file","hidden","image","radio","range","reset","submit"],AL=0,OL=BD(function(){return m(function e(t,n,i,r){g(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})}()),IL=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c){var d;g(this,t),(d=v(this,t,[a,r,s,i]))._elementRef=e,d._platform=n,d._autofillMonitor=u,d._formField=c,d._uid="mat-input-"+AL++,d.focused=!1,d.stateChanges=new ee,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ZS().has(e)});var h=d._elementRef.nativeElement,p=h.nodeName.toLowerCase();return d._inputValueAccessor=o||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;!t.value&&0===t.selectionStart&&0===t.selectionEnd&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isInFormField=!!c,d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _(t,e),m(t,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=oS(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ZS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=oS(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){LL.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}])}(OL);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(lw,10),yo(Nw,8),yo($w,8),yo(ix),yo(ML,10),yo(DL),yo(Cc),yo(KC,8))},e.\u0275dir=Et({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,t){1&e&&Ao("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(cu("disabled",t.disabled)("required",t.required),fo("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Qo("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Du([{provide:NC,useExisting:e}]),eo,Ft]}),e}(),RL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ix],imports:[[CL,XC,YD],CL,XC]}),e}(),PL=function(){var e=function(){return m(function e(){g(this,e),this.changes=new ee,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"},[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),FL={provide:new xi("mat-datepicker-scroll-strategy"),deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},YL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[PL,FL],imports:[[zd,_M,yC,sT,Fx,YD],cE]}),e}();function jL(e,t){}var qL=m(function e(){g(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}),NL={dialogContainer:_p("dialogContainer",[Sp("void, exit",wp({opacity:0,transform:"scale(0.7)"})),Sp("enter",wp({transform:"none"})),Tp("* => enter",bp("150ms cubic-bezier(0, 0, 0.2, 1)",wp({transform:"none",opacity:1}))),Tp("* => void, * => exit",bp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",wp({opacity:0})))])},HL=function(){var e=function(e){function t(e,n,i,r,s,a){var o;return g(this,t),(o=v(this,t))._elementRef=e,o._focusTrapFactory=n,o._changeDetectorRef=i,o._config=s,o._focusMonitor=a,o._animationStateChanged=new jl,o._elementFocusedBeforeDialogWasOpened=null,o._closeInteractionType=null,o.attachDomPortal=function(e){return o._portalOutlet.hasAttached(),o._portalOutlet.attachDomPortal(e)},o._ariaLabelledBy=s.ariaLabelledBy||null,o._document=r,o}return _(t,e),m(t,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=KS(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=KS())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=KS();return e===t||e.contains(t)}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(HE),yo(sl),yo(ad,8),yo(qL),yo(XE))},e.\u0275dir=Et({type:e,viewQuery:function(e,t){var n;(1&e&&Kl(Px,7),2&e)&&($l(n=Xl())&&(t._portalOutlet=n.first))},features:[eo]}),e}(),BL=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._state="enter",e}return _(t,e),m(t,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}])}(HL);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Oo("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(cu("id",t._id),fo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),du("@dialogContainer",t._state))},features:[eo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&go(0,jL,0,0,"ng-template",0)},directives:[Px],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[NL.dialogContainer]}}),t}(),UL=0,zL=function(){return m(function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+UL++;g(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ee,this._afterClosed=new ee,this._beforeClosed=new ee,this._state=0,n._id=r,n._animationStateChanged.pipe(Rh(function(e){return"opened"===e.state}),Dg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Rh(function(e){return"closed"===e.state}),Dg(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Rh(function(e){return 27===e.keyCode&&!i.disableClose&&!hE(e)})).subscribe(function(e){e.preventDefault(),VL(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():VL(i,"mouse")})},[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Rh(function(e){return"closing"===e.state}),Dg(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}])}();function VL(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var GL=new xi("MatDialogData"),WL=new xi("mat-dialog-default-options"),ZL=new xi("mat-dialog-scroll-strategy"),QL={provide:ZL,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},$L=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l){var c=this;g(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee,this._afterOpenedAtThisLevel=new ee,this._ariaHiddenElements=new Map,this.afterAllClosed=kg(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Mg(void 0))}),this._scrollStrategy=a},[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new qL),t.id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),s=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return n._removeOpenDialog(s)}),this.afterOpened.next(s),r._initializeWithAttachedContent(),s}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Wx({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Ja.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:qL,useValue:t}]}),i=new Lx(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof cl)t.attachTemplatePortal(new Ax(e,null,{$implicit:i.data,dialogRef:r}));else{var s=this._createInjector(i,r,t),a=t.attachComponentPortal(new Lx(e,i.viewContainerRef,s));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(tE,null,Je.Optional))&&r.push({provide:tE,useValue:{value:e.direction,change:Oh()}}),Ja.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Ja),yo(void 0),yo(void 0),yo(Xx),yo(void 0),yo(Oi),yo(Oi),yo(xi))},e.\u0275dir=Et({type:e}),e}(),KL=function(){var e=function(e){function t(e,n,i,r,s,a,o){return g(this,t),v(this,t,[e,n,r,a,o,s,zL,BL,GL])}return _(t,e),m(t)}($L);return e.\u0275fac=function(t){return new(t||e)($i(hC),$i(Ja),$i(kd,8),$i(WL,8),$i(ZL),$i(e,12),$i(Xx))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),JL=0,XL=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"},[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=iA(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){VL(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL,8),yo(Iu),yo(KL))},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._onButtonClick(e)}),2&e&&fo("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ft]}),e}(),eA=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+JL++},[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=iA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL,8),yo(Iu),yo(KL))},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&cu("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),tA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),nA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function iA(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var rA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[KL,QL],imports:[[yC,Fx,YD],YD]}),e}(),sA=function(){var e=function(){return m(function e(){g(this,e),this._vertical=!1,this._inset=!1},[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=oS(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=oS(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(fo("aria-orientation",t.vertical?"vertical":"horizontal"),Qo("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),aA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),oA=0,uA=new xi("CdkAccordion"),lA=function(){var e=function(){return m(function e(){g(this,e),this._stateChanges=new ee,this._openCloseAllActions=new ee,this.id="cdk-accordion-"+oA++,this._multi=!1},[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=oS(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Du([{provide:uA,useExisting:e}]),Ft]}),e}(),cA=0,dA=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=Y.EMPTY,this.closed=new jl,this.opened=new jl,this.destroyed=new jl,this.expandedChange=new jl,this.id="cdk-accordion-child-"+cA++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())},[{key:"expanded",get:function(){return this._expanded},set:function(e){e=oS(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uA,12),yo(sl),yo(aE))},e.\u0275dir=Et({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Du([{provide:uA,useValue:void 0}])]}),e}(),hA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),pA=["body"];function fA(e,t){}var mA=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],gA=["mat-expansion-panel-header","*","mat-action-row"];function vA(e,t){1&e&&So(0,"span",2),2&e&&_o("@indicatorRotate",Fo()._getExpandedState())}var yA=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_A=["mat-panel-title","mat-panel-description","*"],bA=new xi("MAT_ACCORDION"),kA="225ms cubic-bezier(0.4,0.0,0.2,1)",wA={indicatorRotate:_p("indicatorRotate",[Sp("collapsed, void",wp({transform:"rotate(0deg)"})),Sp("expanded",wp({transform:"rotate(180deg)"})),Tp("expanded <=> collapsed, void => collapsed",bp(kA))]),bodyExpansion:_p("bodyExpansion",[Sp("collapsed, void",wp({height:"0px",visibility:"hidden"})),Sp("expanded",wp({height:"*",visibility:"visible"})),Tp("expanded <=> collapsed, void => collapsed",bp(kA))])},SA=function(){var e=m(function e(t){g(this,e),this._template=t});return e.\u0275fac=function(t){return new(t||e)(yo(cl))},e.\u0275dir=Et({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),EA=0,TA=new xi("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),DA=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e,n,i]))._viewContainerRef=r,u._animationMode=a,u._hideToggle=!1,u.afterExpand=new jl,u.afterCollapse=new jl,u._inputChanges=new ee,u._headerId="mat-expansion-panel-header-"+EA++,u._bodyAnimationDone=new ee,u.accordion=e,u._document=s,u._bodyAnimationDone.pipe(wS(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())}),o&&(u.hideToggle=o.hideToggle),u}return _(t,e),m(t,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=oS(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Mg(null),Rh(function(){return e.expanded&&!e._portal}),Dg(1)).subscribe(function(){e._portal=new Ax(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}])}(dA);return e.\u0275fac=function(t){return new(t||e)(yo(bA,12),yo(sl),yo(aE),yo(gl),yo(ad),yo(rg,8),yo(TA,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,SA,5),2&e)&&($l(i=Xl())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Kl(pA,5),2&e)&&($l(n=Xl())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Qo("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Du([{provide:bA,useValue:void 0}]),eo,Ft],ngContentSelectors:gA,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(jo(mA),qo(0),ko(1,"div",0,1),Ao("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),ko(3,"div",2),qo(4,1),go(5,fA,0,0,"ng-template",3),wo(),qo(6,2),wo()),2&e&&(Ns(1),_o("@bodyExpansion",t._getExpandedState())("id",t.id),fo("aria-labelledby",t._headerId),Ns(4),_o("cdkPortalOutlet",t._portal))},directives:[Px],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[wA.bodyExpansion]},changeDetection:0}),e}(),xA=HD(m(function e(){g(this,e)})),CA=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;g(this,t),(u=v(this,t)).panel=e,u._element=n,u._focusMonitor=i,u._changeDetectorRef=r,u._animationMode=a,u._parentChangeSubscription=Y.EMPTY;var l=e.accordion?e.accordion._stateChanges.pipe(Rh(function(e){return!(!e.hideToggle&&!e.togglePosition)})):_g;return u.tabIndex=parseInt(o||"")||0,u._parentChangeSubscription=ke(e.opened,e.closed,l,e._inputChanges.pipe(Rh(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return u._changeDetectorRef.markForCheck()}),e.closed.pipe(Rh(function(){return e._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),s&&(u.expandedHeight=s.expandedHeight,u.collapsedHeight=s.collapsedHeight),u}return _(t,e),m(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:hE(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}])}(xA);return e.\u0275fac=function(t){return new(t||e)(yo(DA,1),yo(Iu),yo(XE),yo(sl),yo(TA,8),yo(rg,8),ki("tabindex"))},e.\u0275cmp=yt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(fo("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Zo("height",t._getHeaderHeight()),Qo("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[eo],ngContentSelectors:_A,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(jo(yA),ko(0,"span",0),qo(1),qo(2,1),qo(3,2),wo(),go(4,vA,1,1,"span",1)),2&e&&(Ns(4),_o("ngIf",t._showToggle()))},directives:[Od],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[wA.indicatorRotate]},changeDetection:0}),e}(),MA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),LA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),AA=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._ownHeaders=new Nl,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _(t,e),m(t,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=oS(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Mg(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new FE(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}])}(lA);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,CA,5),2&e)&&($l(i=Xl())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Du([{provide:bA,useExisting:t}]),eo]}),t}(),OA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YD,hA,Fx]]}),e}(),IA=["*"],RA=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n",PA=function(){return m(function e(){g(this,e),this.columnIndex=0,this.rowIndex=0},[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,d(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}},{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(function(e){return n._trackTile(e)})}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new FA(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t-1?new BA(e):new HA(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new PA);var t=this._tileCoordinator,n=this._tiles.filter(function(t){return!t._gridList||t._gridList===e}),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,i),n.forEach(function(n,i){var r=t.positions[i];e._tileStyler.setStyle(n,r.row,r.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,jA,5),2&e)&&($l(i=Xl())&&(t._tiles=i))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&fo("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Du([{provide:YA,useExisting:e}])],ngContentSelectors:IA,decls:2,vars:0,template:function(e,t){1&e&&(jo(),ko(0,"div"),qo(1),wo())},styles:[RA],encapsulation:2,changeDetection:0}),e}(),WA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[ax,YD],ax,YD]}),e}(),ZA=["*"],QA=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],$A=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],KA=jD(ND(function(){return m(function e(){g(this,e)})}())),JA=ND(function(){return m(function e(){g(this,e)})}()),XA=new xi("MatList"),eO=new xi("MatNavList"),tO=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._elementRef=e,n._stateChanges=new ee,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return _(t,e),m(t,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}])}(KA);return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275cmp=yt({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Du([{provide:XA,useExisting:e}]),eo,Ft],ngContentSelectors:ZA,decls:1,vars:0,template:function(e,t){1&e&&(jo(),qo(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),e}(),nO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),iO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),rO=function(){var e=function(e){function t(e,n,i,r){var s;g(this,t),(s=v(this,t))._element=e,s._isInteractiveList=!1,s._destroyed=new ee,s._disabled=!1,s._isInteractiveList=!!(i||r&&"action-list"===r._getListType()),s._list=i||r;var a=s._getHostElement();return"button"===a.nodeName.toLowerCase()&&!a.hasAttribute("type")&&a.setAttribute("type","button"),s._list&&s._list._stateChanges.pipe(OS(s._destroyed)).subscribe(function(){n.markForCheck()}),s}return _(t,e),m(t,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=oS(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Mg(e)).subscribe(function(e){var i=e.length;sx(t,"".concat(n,"-2-line"),!1),sx(t,"".concat(n,"-3-line"),!1),sx(t,"".concat(n,"-multi-line"),!1),2===i||3===i?sx(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&sx(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}])}(JA);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(eO,8),yo(XA,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,nO,5),Jl(n,iO,5),Jl(n,rx,5)),2&e)&&($l(i=Xl())&&(t._avatar=i.first),$l(i=Xl())&&(t._icon=i.first),$l(i=Xl())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Qo("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[eo],ngContentSelectors:$A,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(jo(QA),ko(0,"div",0),So(1,"div",1),qo(2),ko(3,"div",2),qo(4,1),wo(),qo(5,2),wo()),2&e&&(Ns(1),_o("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[fx],encapsulation:2,changeDetection:0}),e}(),sO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[ax,mx,YD,vx,zd],ax,YD,vx,aA]}),e}(),aO=["mat-menu-item",""];function oO(e,t){1&e&&(Yn(),ko(0,"svg",2),So(1,"polygon",3),wo())}var uO=["*"];function lO(e,t){if(1&e){var n=xo();ko(0,"div",0),Ao("keydown",function(e){return ln(n),Fo()._handleKeydown(e)})("click",function(){return ln(n),Fo().closed.emit("click")})("@transformMenu.start",function(e){return ln(n),Fo()._onAnimationStart(e)})("@transformMenu.done",function(e){return ln(n),Fo()._onAnimationDone(e)}),ko(1,"div",1),qo(2),wo(),wo()}if(2&e){var i=Fo();_o("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),fo("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var cO={transformMenu:_p("transformMenu",[Sp("void",wp({opacity:0,transform:"scale(0.8)"})),Tp("void => enter",bp("120ms cubic-bezier(0, 0, 0.2, 1)",wp({opacity:1,transform:"scale(1)"}))),Tp("* => void",bp("100ms 25ms linear",wp({opacity:0})))]),fadeInItems:_p("fadeInItems",[Sp("showing",wp({opacity:1})),Tp("void => *",[wp({opacity:0}),bp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dO=new xi("MatMenuContent"),hO=new xi("MAT_MENU_PANEL"),pO=ND(jD(function(){return m(function e(){g(this,e)})}())),fO=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._elementRef=e,a._focusMonitor=i,a._parentMenu=r,a._changeDetectorRef=s,a.role="menuitem",a._hovered=new ee,a._focused=new ee,a._highlighted=!1,a._triggersSubmenu=!1,r&&r.addItem&&r.addItem(y(a)),a}return _(t,e),m(t,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Mg(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(mO))},e.\u0275dir=Et({type:e,contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,dO,5),Jl(n,fO,5),Jl(n,fO,4)),2&e)&&($l(i=Xl())&&(t.lazyContent=i.first),$l(i=Xl())&&(t._allItems=i),$l(i=Xl())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&Kl(cl,5),2&e)&&($l(n=Xl())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),yO=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n,i]))._elevationPrefix="mat-elevation-z",r._baseElevation=4,r}return _(t,e),m(t)}(vO);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(mO))},e.\u0275cmp=yt({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&fo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Du([{provide:hO,useExisting:e}]),eo],ngContentSelectors:uO,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(jo(),go(0,lO,3,6,"ng-template"))},directives:[Cd],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[cO.transformMenu,cO.fadeInItems]},changeDetection:0}),e}(),_O=new xi("mat-menu-scroll-strategy"),bO={provide:_O,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},kO=QS({passive:!0}),wO=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){var l=this;g(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=o,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Y.EMPTY,this._hoverSubscription=Y.EMPTY,this._menuCloseSubscription=Y.EMPTY,this._handleTouchStart=function(e){UE(e)||(l._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new jl,this.onMenuOpen=this.menuOpened,this.menuClosed=new jl,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof vO?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,kO),a&&(a._triggersSubmenu=this.triggersSubmenu())},[{key:"_ariaExpanded",get:function(){return this.menuOpen||null}},{key:"_ariaControl",get:function(){return this.menuOpen?this.menu.panelId:null}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,kO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof vO&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof vO?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Rh(function(e){return"void"===e.toState}),Dg(1),OS(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Wx({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=T("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=T("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),s=r[0],a=r[1],o=s,u=a,l=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(o="top"===s?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:d},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:d},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-d},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ke(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Oh(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Rh(function(t){return t!==e._menuItemInstance}),Rh(function(){return e._menuOpen})):Oh(),n)}},{key:"_handleMousedown",value:function(e){BE(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Rh(function(t){return t===e._menuItemInstance&&!t.disabled}),eM(0,kS)).subscribe(function(){e._openedBy="mouse",e.menu instanceof vO&&e.menu._isAnimating?e.menu._animationDone.pipe(Dg(1),eM(0,kS),OS(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ax(this.menu.templateRef,this._viewContainerRef)),this._portal}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(gl),yo(_O),yo(hO,8),yo(fO,10),yo(tE,8),yo(XE))},e.\u0275dir=Et({type:e,hostVars:3,hostBindings:function(e,t){1&e&&Ao("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&fo("aria-haspopup",t._ariaHaspopup)("aria-expanded",t._ariaExpanded)("aria-controls",t._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),e}(),SO=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(wO);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[eo]}),t}(),EO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[bO],imports:[[zd,YD,mx,yC],cE,YD]}),e}(),TO=["trigger"],DO=["panel"];function xO(e,t){if(1&e&&(ko(0,"span",8),au(1),wo()),2&e){var n=Fo();Ns(1),ou(n.placeholder)}}function CO(e,t){if(1&e&&(ko(0,"span",12),au(1),wo()),2&e){var n=Fo(2);Ns(1),ou(n.triggerValue)}}function MO(e,t){1&e&&qo(0,0,["*ngSwitchCase","true"])}function LO(e,t){1&e&&(ko(0,"span",9),go(1,CO,2,1,"span",10),go(2,MO,1,0,"ng-content",11),wo()),2&e&&(_o("ngSwitch",!!Fo().customTrigger),Ns(2),_o("ngSwitchCase",!0))}function AO(e,t){if(1&e){var n=xo();ko(0,"div",13),ko(1,"div",14,15),Ao("@transformPanel.done",function(e){return ln(n),Fo()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return ln(n),Fo()._handleKeydown(e)}),qo(3,1),wo(),wo()}if(2&e){var i=Fo();_o("@transformPanelWrap",void 0),Ns(1),function(e,t,n){!function(e,t,n,i){var r=un(),s=bn(2);r.firstUpdatePass&&Xo(r,null,s,i);var a=on();if(n!==qs&&ho(a,s,n)){var o=r.data[Rn()];if(su(o,i)&&!Jo(r,s)){var u=o.classesWithoutHost;null!==u&&(n=Ie(u,n||"")),bo(r,o,a,n,i)}else!function(e,t,n,i,r,s,a,o){r===qs&&(r=lt);for(var u=0,l=0,c=0 void",xp("@transformPanel",[Dp()],{optional:!0}))]),transformPanel:_p("transformPanel",[Sp("void",wp({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Sp("showing",wp({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Sp("showing-multiple",wp({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Tp("void => *",bp("120ms cubic-bezier(0, 0, 0.2, 1)")),Tp("* => void",bp("100ms 25ms linear",wp({opacity:0})))])},PO=0,FO=new xi("mat-select-scroll-strategy"),YO=new xi("MAT_SELECT_CONFIG"),jO={provide:FO,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qO=m(function e(t,n){g(this,e),this.source=t,this.value=n}),NO=ND(HD(jD(BD(function(){return m(function e(t,n,i,r,s){g(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=s})}())))),HO=new xi("MatSelectTrigger"),BO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-select-trigger"]],features:[Du([{provide:HO,useExisting:e}])]}),e}(),UO=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c,h,p,f,m){var _,b,k,w;return g(this,t),(_=v(this,t,[s,r,o,u,c]))._viewportRuler=e,_._changeDetectorRef=n,_._ngZone=i,_._dir=a,_._parentFormField=l,_._liveAnnouncer=f,_._defaultOptions=m,_._panelOpen=!1,_._compareWith=function(e,t){return e===t},_._uid="mat-select-"+PO++,_._triggerAriaLabelledBy=null,_._destroy=new ee,_._onChange=function(){},_._onTouched=function(){},_._valueId="mat-select-value-"+PO++,_._panelDoneAnimatingStream=new ee,_._overlayPanelClass=(null===(b=_._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",_._focused=!1,_.controlType="mat-select",_._required=!1,_._multiple=!1,_._disableOptionCentering=null!==(w=null===(k=_._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,_.ariaLabel="",_.optionSelectionChanges=kg(function(){var e=_.options;return e?e.changes.pipe(Mg(e),wg(function(){return ke.apply(void 0,d(e.map(function(e){return e.onSelectionChange})))})):_._ngZone.onStable.pipe(Dg(1),wg(function(){return _.optionSelectionChanges}))}),_.openedChange=new jl,_._openedStream=_.openedChange.pipe(Rh(function(e){return e}),ie(function(){})),_._closedStream=_.openedChange.pipe(Rh(function(e){return!e}),ie(function(){})),_.selectionChange=new jl,_.valueChange=new jl,_.ngControl&&(_.ngControl.valueAccessor=y(_)),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(_._typeaheadDebounceInterval=m.typeaheadDebounceInterval),_._scrollStrategyFactory=p,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(h)||0,_.id=_.id,_}return _(t,e),m(t,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=oS(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=oS(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=uS(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new sE(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wS(),OS(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(OS(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Mg(null),OS(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!hE(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var s=this.selected;r.onKeydown(e);var a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||hE(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var s=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(s?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe(Dg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new PE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(OS(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(OS(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=ke(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(OS(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),ke.apply(void 0,d(this.options.map(function(e){return e._stateChanges}))).pipe(OS(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}])}(NO);return e.\u0275fac=function(t){return new(t||e)(yo(lE),yo(sl),yo(Cc),yo(ix),yo(Iu),yo(tE,8),yo(Nw,8),yo($w,8),yo(KC,8),yo(lw,10),ki("tabindex"),yo(FO),yo($E),yo(YO,8))},e.\u0275dir=Et({type:e,viewQuery:function(e,t){var n;(1&e&&(Kl(TO,5),Kl(DO,5),Kl(gC,5)),2&e)&&($l(n=Xl())&&(t.trigger=n.first),$l(n=Xl())&&(t.panel=n.first),$l(n=Xl())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[eo,Ft]}),e}(),zO=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _(t,e),m(t,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(E(t.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(OS(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(E(t.prototype),"_canOpen",this).call(this)&&(h(E(t.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=xx(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function(e,t,n,i){return en+256?Math.max(0,e-256+t):n}((e+t)*n,n,this.panel.nativeElement.scrollTop)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(E(t.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new qO(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var s=this._selectionModel.selected[0]||this.options.first;e=s&&s.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),o=t.right+e-n.width+(i?0:r);a>0?e+=a+8:o>0&&(e-=o+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-s))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):s>i?this._adjustPanelDown(s,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=xx(e,this.options,this.optionGroups);var s=i/2;this._scrollTop=this._calculateOverlayScroll(e,s,r),this._offsetY=this._calculateOverlayOffsetY(e,s,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}])}(UO);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,HO,5),Jl(n,Dx,5),Jl(n,wx,5)),2&e)&&($l(i=Xl())&&(t.customTrigger=i.first),$l(i=Xl())&&(t.options=i),$l(i=Xl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Ao("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(fo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Qo("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Du([{provide:NC,useExisting:t},{provide:yx,useExisting:t}]),eo],ngContentSelectors:IO,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(jo(OO),ko(0,"div",0,1),Ao("click",function(){return t.toggle()}),ko(3,"div",2),go(4,xO,2,1,"span",3),go(5,LO,3,2,"span",4),wo(),ko(6,"div",5),So(7,"div",6),wo(),wo(),go(8,AO,4,14,"ng-template",7),Ao("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=vo(1);fo("aria-owns",t.panelOpen?t.id+"-panel":null),Ns(3),_o("ngSwitch",t.empty),fo("id",t._valueId),Ns(1),_o("ngSwitchCase",!0),Ns(1),_o("ngSwitchCase",!1),Ns(3),_o("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[mC,Fd,Yd,gC,jd,Cd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[RO.transformPanelWrap,RO.transformPanel]},changeDetection:0}),t}(),VO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[jO],imports:[[zd,yC,Cx,YD],cE,XC,Cx,YD]}),e}(),GO={tooltipState:_p("state",[Sp("initial, void, hidden",wp({opacity:0,transform:"scale(0)"})),Sp("visible",wp({transform:"scale(1)"})),Tp("* => visible",bp("200ms cubic-bezier(0, 0, 0.2, 1)",Ep([wp({opacity:0,transform:"scale(0)",offset:0}),wp({opacity:.5,transform:"scale(0.99)",offset:.5}),wp({opacity:1,transform:"scale(1)",offset:1})]))),Tp("* => hidden",bp("100ms cubic-bezier(0, 0, 0.2, 1)",wp({opacity:0})))])},WO="tooltip-panel",ZO=QS({passive:!0}),QO=new xi("mat-tooltip-scroll-strategy"),$O={provide:QO,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},KO=new xi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),JO=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d,h){var p=this;g(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=u,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ee,this._handleKeydown=function(e){p._isTooltipVisible()&&27===e.keyCode&&!hE(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=l,this._document=h,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.change.pipe(OS(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),s.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})},[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(OS(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=T(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ZO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Lx(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(OS(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(OS(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(WO),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(OS(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe(OS(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Dg(1),OS(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var s=this._overlayRef;if(s){var a="".concat(this._cssClassPrefix,"-").concat(WO,"-");s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=T(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ZO)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(uE),yo(gl),yo(Cc),yo(VS),yo(AE),yo(XE),yo(void 0),yo(tE),yo(void 0),yo(ad))},e.\u0275dir=Et({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),XO=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c,d,h){var p;return g(this,t),(p=v(this,t,[e,n,i,r,s,a,o,u,l,c,d,h]))._tooltipComponent=tI,p}return _(t,e),m(t)}(JO);return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(uE),yo(gl),yo(Cc),yo(VS),yo(AE),yo(XE),yo(QO),yo(tE,8),yo(KO,8),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[eo]}),e}(),eI=function(){var e=function(){return m(function e(t){g(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ee},[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(sl))},e.\u0275dir=Et({type:e}),e}(),tI=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e]))._breakpointObserver=n,i._isHandset=i._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),i}return _(t,e),m(t)}(eI);return e.\u0275fac=function(t){return new(t||e)(yo(sl),yo(dM))},e.\u0275cmp=yt({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Zo("zoom","visible"===t._visibility?1:null)},features:[eo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ko(0,"div",0),Ao("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Pl(1,"async"),au(2),wo()),2&e)&&(Qo("mat-tooltip-handset",null==(n=Fl(1,5,t._isHandset))?null:n.matches),_o("ngClass",t.tooltipClass)("@state",t._visibility),Ns(2),ou(t.message))},directives:[Cd],pipes:[Ud],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[GO.tooltipState]},changeDetection:0}),e}(),nI=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[$O],imports:[[sT,zd,yC,YD],YD,cE]}),e}();function iI(e,t){if(1&e&&(ko(0,"mat-option",19),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),uu(" ",n," ")}}function rI(e,t){if(1&e){var n=xo();ko(0,"mat-form-field",16),ko(1,"mat-select",17),Ao("selectionChange",function(e){return ln(n),Fo(2)._changePageSize(e.value)}),go(2,iI,2,2,"mat-option",18),wo(),wo()}if(2&e){var i=Fo(2);_o("appearance",i._formFieldAppearance)("color",i.color),Ns(1),_o("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Ns(1),_o("ngForOf",i._displayedPageSizeOptions)}}function sI(e,t){if(1&e&&(ko(0,"div",20),au(1),wo()),2&e){var n=Fo(2);Ns(1),ou(n.pageSize)}}function aI(e,t){if(1&e&&(ko(0,"div",12),ko(1,"div",13),au(2),wo(),go(3,rI,3,6,"mat-form-field",14),go(4,sI,2,1,"div",15),wo()),2&e){var n=Fo();Ns(2),uu(" ",n._intl.itemsPerPageLabel," "),Ns(1),_o("ngIf",n._displayedPageSizeOptions.length>1),Ns(1),_o("ngIf",n._displayedPageSizeOptions.length<=1)}}function oI(e,t){if(1&e){var n=xo();ko(0,"button",21),Ao("click",function(){return ln(n),Fo().firstPage()}),Yn(),ko(1,"svg",7),So(2,"path",22),wo(),wo()}if(2&e){var i=Fo();_o("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),fo("aria-label",i._intl.firstPageLabel)}}function uI(e,t){if(1&e){var n=xo();Yn(),jn(),ko(0,"button",23),Ao("click",function(){return ln(n),Fo().lastPage()}),Yn(),ko(1,"svg",7),So(2,"path",24),wo(),wo()}if(2&e){var i=Fo();_o("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),fo("aria-label",i._intl.lastPageLabel)}}var lI=function(){var e=m(function e(){g(this,e),this.changes=new ee,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),cI={provide:lI,deps:[[new ir,new rr,lI]],useFactory:function(e){return e||new lI}},dI=new xi("MAT_PAGINATOR_DEFAULT_OPTIONS"),hI=jD(UD(function(){return m(function e(){g(this,e)})}())),pI=function(){var e=function(e){function t(e,n,i){var r;if(g(this,t),(r=v(this,t))._intl=e,r._changeDetectorRef=n,r._pageIndex=0,r._length=0,r._pageSizeOptions=[],r._hidePageSize=!1,r._showFirstLastButtons=!1,r.page=new jl,r._intlChanges=e.changes.subscribe(function(){return r._changeDetectorRef.markForCheck()}),i){var s=i.pageSize,a=i.pageSizeOptions,o=i.hidePageSize,u=i.showFirstLastButtons;null!=s&&(r._pageSize=s),null!=a&&(r._pageSizeOptions=a),null!=o&&(r._hidePageSize=o),null!=u&&(r._showFirstLastButtons=u)}return y(r)}return _(t,e),m(t,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(uS(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=uS(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(uS(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return uS(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=oS(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=oS(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex visible",bp("150ms cubic-bezier(0, 0, 0.2, 1)")),Tp("* => void, * => hidden",bp("75ms cubic-bezier(0.4, 0.0, 1, 1)",wp({opacity:0})))])},cR=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._ngZone=e,a._elementRef=n,a._changeDetectorRef=i,a._platform=r,a.snackBarConfig=s,a._announceDelay=150,a._destroyed=!1,a._onAnnounce=new ee,a._onExit=new ee,a._onEnter=new ee,a._animationState="void",a.attachDomPortal=function(e){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(e)},a._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",a._platform.FIREFOX&&("polite"===a._live&&(a._role="status"),"assertive"===a._live&&(a._role="alert")),a}return _(t,e),m(t,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,n=e.toState;if(("void"===n&&"void"!==t||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run(function(){i.next(),i.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(Dg(1)).subscribe(function(){e._onExit.next(),e._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var e=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){e._announceTimeoutId=setTimeout(function(){var t=e._elementRef.nativeElement.querySelector("[aria-hidden]"),n=e._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){var i=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==i||i.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Cc),yo(Iu),yo(sl),yo(VS),yo(sR))},e.\u0275cmp=yt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;(1&e&&Kl(Px,7),2&e)&&($l(n=Xl())&&(t._portalOutlet=n.first))},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&Oo("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&du("@state",t._animationState)},features:[eo],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(ko(0,"div",0),go(1,iR,0,0,"ng-template",1),wo(),So(2,"div")),2&e&&(Ns(2),fo("aria-live",t._live)("role",t._role))},directives:[Px],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[lR.snackBarState]}}),e}(),dR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[yC,Fx,zd,_M,YD],YD]}),e}(),hR=new xi("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new sR}}),pR=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=uR,this.snackBarContainerComponent=cR,this.handsetCssClass="mat-snack-bar-handset"},[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=Ja.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sR,useValue:t}]}),i=new Lx(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new sR),this._defaultConfig),t),r=this._createOverlay(i),s=this._attachSnackBarContainer(r,i),a=new oR(s,r);if(e instanceof cl){var o=new Ax(e,null,{$implicit:i.data,snackBarRef:a});a.instance=s.attachTemplatePortal(o)}else{var u=this._createInjector(i,a),l=new Lx(e,void 0,u),c=s.attachComponentPortal(l);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(OS(r.detachments())).subscribe(function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),i.announcementMessage&&s._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe(function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(t.duration)})}},{key:"_createOverlay",value:function(e){var t=new Wx;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,s=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):s?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return Ja.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:oR,useValue:t},{provide:rR,useValue:e.data}]})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(hC),$i($E),$i(Ja),$i(dM),$i(e,12),$i(hR))},e.\u0275prov=Be({factory:function(){return new e($i(hC),$i($E),$i(ja),$i(dM),$i(e,12),$i(hR))},token:e,providedIn:dR}),e}(),fR=["mat-sort-header",""];function mR(e,t){if(1&e){var n=xo();ko(0,"div",3),Ao("@arrowPosition.start",function(){return ln(n),Fo()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return ln(n),Fo()._disableViewStateAnimation=!1}),So(1,"div",4),ko(2,"div",5),So(3,"div",6),So(4,"div",7),So(5,"div",8),wo(),wo()}if(2&e){var i=Fo();_o("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Ns(2),_o("@indicator",i._getArrowDirectionState()),Ns(1),_o("@leftPointer",i._getArrowDirectionState()),Ns(1),_o("@rightPointer",i._getArrowDirectionState())}}var gR=["*"],vR=new xi("MAT_SORT_DEFAULT_OPTIONS"),yR=UD(jD(function(){return m(function e(){g(this,e)})}())),_R=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._defaultOptions=e,n.sortables=new Map,n._stateChanges=new ee,n.start="asc",n._direction="",n.sortChange=new jl,n}return _(t,e),m(t,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=oS(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),s=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=s.indexOf(this.direction)+1;return a>=s.length&&(a=0),s[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}])}(yR);return e.\u0275fac=function(t){return new(t||e)(yo(vR,8))},e.\u0275dir=Et({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[eo,Ft]}),e}(),bR=RD.ENTERING+" "+ID.STANDARD_CURVE,kR={indicator:_p("indicator",[Sp("active-asc, asc",wp({transform:"translateY(0px)"})),Sp("active-desc, desc",wp({transform:"translateY(10px)"})),Tp("active-asc <=> active-desc",bp(bR))]),leftPointer:_p("leftPointer",[Sp("active-asc, asc",wp({transform:"rotate(-45deg)"})),Sp("active-desc, desc",wp({transform:"rotate(45deg)"})),Tp("active-asc <=> active-desc",bp(bR))]),rightPointer:_p("rightPointer",[Sp("active-asc, asc",wp({transform:"rotate(45deg)"})),Sp("active-desc, desc",wp({transform:"rotate(-45deg)"})),Tp("active-asc <=> active-desc",bp(bR))]),arrowOpacity:_p("arrowOpacity",[Sp("desc-to-active, asc-to-active, active",wp({opacity:1})),Sp("desc-to-hint, asc-to-hint, hint",wp({opacity:.54})),Sp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",wp({opacity:0})),Tp("* => asc, * => desc, * => active, * => hint, * => void",bp("0ms")),Tp("* <=> *",bp(bR))]),arrowPosition:_p("arrowPosition",[Tp("* => desc-to-hint, * => desc-to-active",bp(bR,Ep([wp({transform:"translateY(-25%)"}),wp({transform:"translateY(0)"})]))),Tp("* => hint-to-desc, * => active-to-desc",bp(bR,Ep([wp({transform:"translateY(0)"}),wp({transform:"translateY(25%)"})]))),Tp("* => asc-to-hint, * => asc-to-active",bp(bR,Ep([wp({transform:"translateY(25%)"}),wp({transform:"translateY(0)"})]))),Tp("* => hint-to-asc, * => active-to-asc",bp(bR,Ep([wp({transform:"translateY(0)"}),wp({transform:"translateY(-25%)"})]))),Sp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",wp({transform:"translateY(0)"})),Sp("hint-to-desc, active-to-desc, desc",wp({transform:"translateY(-25%)"})),Sp("hint-to-asc, active-to-asc, asc",wp({transform:"translateY(25%)"}))]),allowChildren:_p("allowChildren",[Tp("* <=> *",[xp("@*",Dp(),{optional:!0})])])},wR=function(){var e=m(function e(){g(this,e),this.changes=new ee});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),SR={provide:wR,deps:[[new ir,new rr,wR]],useFactory:function(e){return e||new wR}},ER=jD(function(){return m(function e(){g(this,e)})}()),TR=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t))._intl=e,u._changeDetectorRef=n,u._sort=i,u._columnDef=r,u._focusMonitor=s,u._elementRef=a,u._ariaDescriber=o,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._sortActionDescription="Sort",u._handleStateChanges(),u}return _(t,e),m(t,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(e){this._updateSortActionDescription(e)}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=oS(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(e){var t,n;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(n=this._ariaDescriber)||void 0===n||n.describe(this._sortButton,e)),this._sortActionDescription=e}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=ke(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),("hint"===e._viewState.toState||"active"===e._viewState.toState)&&(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}])}(ER);return e.\u0275fac=function(t){return new(t||e)(yo(wR),yo(sl),yo(_R,8),yo("MAT_SORT_HEADER_COLUMN_DEF",8),yo(XE),yo(Iu),yo(AE,8))},e.\u0275cmp=yt({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(fo("aria-sort",t._getAriaSortAttribute()),Qo("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[eo],attrs:fR,ngContentSelectors:gR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),ko(1,"div",1),qo(2),wo(),go(3,mR,6,6,"div",2),wo()),2&e&&(Qo("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),fo("tabindex",t._isDisabled()?null:0),Ns(3),_o("ngIf",t._renderArrow()))},directives:[Od],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[kR.indicator,kR.leftPointer,kR.rightPointer,kR.arrowOpacity,kR.arrowPosition,kR.allowChildren]},changeDetection:0}),e}(),DR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[SR],imports:[[zd,YD]]}),e}(),xR=[[["caption"]],[["colgroup"],["col"]]],CR=["caption","colgroup, col"],MR=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return _(t,e),m(t)}(TD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[Du([{provide:oE,useClass:rE},{provide:TD,useExisting:t},{provide:ZT,useExisting:t},{provide:rD,useClass:sD},{provide:bD,useValue:null}]),eo],ngContentSelectors:CR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(jo(xR),qo(0),qo(1,1),Do(2,0),Do(3,1),Do(4,2),Do(5,3))},directives:[wD,kD,ED,SD],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t}(),LR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(QT);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matCellDef",""]],features:[Du([{provide:QT,useExisting:t}]),eo]}),t}(),AR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}($T);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matHeaderCellDef",""]],features:[Du([{provide:$T,useExisting:t}]),eo]}),t}(),OR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){h(E(t.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}])}(XT);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Du([{provide:XT,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),eo]}),t}(),IR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(tD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[eo]}),t}(),RR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(nD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[eo]}),t}(),PR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(lD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Du([{provide:lD,useExisting:t}]),eo]}),t}(),FR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(pD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Du([{provide:pD,useExisting:t}]),eo]}),t}(),YR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(mD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Du([{provide:mD,useExisting:t}]),eo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Do(0,0)},directives:[fD],encapsulation:2}),t}(),jR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(gD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Du([{provide:gD,useExisting:t}]),eo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Do(0,0)},directives:[fD],encapsulation:2}),t}(),qR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[xD,YD],YD]}),e}();function NR(e,t){1&e&&qo(0)}var HR=["*"];function BR(e,t){}var UR=function(e){return{animationDuration:e}},zR=function(e,t){return{value:e,params:t}},VR=["tabBodyWrapper"],GR=["tabHeader"];function WR(e,t){}function ZR(e,t){1&e&&go(0,WR,0,0,"ng-template",9),2&e&&_o("cdkPortalOutlet",Fo().$implicit.templateLabel)}function QR(e,t){1&e&&au(0),2&e&&ou(Fo().$implicit.textLabel)}function $R(e,t){if(1&e){var n=xo();ko(0,"div",6),Ao("click",function(){var e=ln(n),t=e.$implicit,i=e.index,r=Fo(),s=vo(1);return r._handleClick(t,s,i)})("cdkFocusChange",function(e){var t=ln(n).index;return Fo()._tabFocusChanged(e,t)}),ko(1,"div",7),go(2,ZR,1,1,"ng-template",8),go(3,QR,1,1,"ng-template",8),wo(),wo()}if(2&e){var i=t.$implicit,r=t.index,s=Fo();Qo("mat-tab-label-active",s.selectedIndex==r),_o("id",s._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||s.disableRipple),fo("tabIndex",s._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(r))("aria-selected",s.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Ns(2),_o("ngIf",i.templateLabel),Ns(1),_o("ngIf",!i.templateLabel)}}function KR(e,t){if(1&e){var n=xo();ko(0,"mat-tab-body",10),Ao("_onCentered",function(){return ln(n),Fo()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return ln(n),Fo()._setTabBodyWrapperHeight(e)}),wo()}if(2&e){var i=t.$implicit,r=t.index,s=Fo();Qo("mat-tab-body-active",s.selectedIndex===r),_o("id",s._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",s.animationDuration),fo("tabindex",null!=s.contentTabIndex&&s.selectedIndex===r?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(r))}}var JR=["tabListContainer"],XR=["tabList"],eP=["nextPaginator"],tP=["previousPaginator"],nP=new xi("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),iP=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r},[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(nP),yo(rg,8))},e.\u0275dir=Et({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),rP=new xi("MatTabContent"),sP=new xi("MatTabLabel"),aP=new xi("MAT_TAB"),oP=jD(function(){return m(function e(){g(this,e)})}()),uP=new xi("MAT_TAB_GROUP"),lP=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._viewContainerRef=e,i._closestTabGroup=n,i.textLabel="",i._contentPortal=null,i._stateChanges=new ee,i.position=null,i.origin=null,i.isActive=!1,i}return _(t,e),m(t,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ax(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&e._closestTab===this&&(this._templateLabel=e)}}])}(oP);return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(uP,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,sP,5),Jl(n,rP,7,cl)),2&e)&&($l(i=Xl())&&(t.templateLabel=i.first),$l(i=Xl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Kl(cl,7),2&e)&&($l(n=Xl())&&(t._implicitContent=n.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Du([{provide:aP,useExisting:e}]),eo,Ft],ngContentSelectors:HR,decls:1,vars:0,template:function(e,t){1&e&&(jo(),go(0,NR,1,0,"ng-template"))},encapsulation:2}),e}(),cP={translateTab:_p("translateTab",[Sp("center, void, left-origin-center, right-origin-center",wp({transform:"none"})),Sp("left",wp({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Sp("right",wp({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Tp("* => left, * => right, left => center, right => center",bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Tp("void => left-origin-center",[wp({transform:"translate3d(-100%, 0, 0)"}),bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Tp("void => right-origin-center",[wp({transform:"translate3d(100%, 0, 0)"}),bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},dP=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n,r]))._host=i,s._centeringSub=Y.EMPTY,s._leavingSub=Y.EMPTY,s}return _(t,e),m(t,[{key:"ngOnInit",value:function(){var e=this;h(E(t.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Mg(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}])}(Px);return e.\u0275fac=function(t){return new(t||e)(yo(Mu),yo(gl),yo(Pe(function(){return pP})),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","matTabBodyHost",""]],features:[eo]}),e}(),hP=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Y.EMPTY,this._translateTabComplete=new ee,this._onCentering=new jl,this._beforeCentering=new jl,this._afterLeavingCenter=new jl,this._onCentered=new jl(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(wS(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})},[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8),yo(sl))},e.\u0275dir=Et({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),pP=function(){var e=function(e){function t(e,n,i){return g(this,t),v(this,t,[e,n,i])}return _(t,e),m(t)}(hP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8),yo(sl))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;(1&e&&Kl(Px,5),2&e)&&($l(n=Xl())&&(t._portalHost=n.first))},hostAttrs:[1,"mat-tab-body"],features:[eo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(ko(0,"div",0,1),Ao("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),go(2,BR,0,0,"ng-template",2),wo()),2&e&&_o("@translateTab",Ol(3,zR,t._position,Al(1,UR,t.animationDuration)))},directives:[dP],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[cP.translateTab]}}),e}(),fP=new xi("MAT_TABS_CONFIG"),mP=0,gP=m(function e(){g(this,e)}),vP=qD(ND(function(){return m(function e(t){g(this,e),this._elementRef=t})}()),"primary"),yP=function(){var e=function(e){function t(e,n,i,r){var s,a;return g(this,t),(s=v(this,t,[e]))._changeDetectorRef=n,s._animationMode=r,s._tabs=new Nl,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=Y.EMPTY,s._tabLabelSubscription=Y.EMPTY,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new jl,s.focusChange=new jl,s.animationDone=new jl,s.selectedTabChange=new jl(!0),s._groupId=mP++,s.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",s.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,s.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,s.contentTabIndex=null!==(a=null==i?void 0:i.contentTabIndex)&&void 0!==a?a:null,s}return _(t,e),m(t,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=oS(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=uS(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(e){this._contentTabIndex=uS(e,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||(e.selectedIndexChange.emit(t),e._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-t,null!=e._selectedIndex&&0==n.position&&!n.origin&&(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),bP=jD(function(){return m(function e(){g(this,e)})}()),kP=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).elementRef=e,n}return _(t,e),m(t,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}])}(bP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(fo("aria-disabled",!!t.disabled),Qo("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[eo]}),e}(),wP=QS({passive:!0}),SP=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){var u=this;g(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=s,this._platform=a,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ee,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ee,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new jl,this.indexFocused=new jl,s.runOutsideAngular(function(){hS(t.nativeElement,"mouseleave").pipe(OS(u._destroyed)).subscribe(function(){u._stopInterval()})})},[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=uS(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;hS(this._previousPaginator.nativeElement,"touchstart",wP).pipe(OS(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),hS(this._nextPaginator.nativeElement,"touchstart",wP).pipe(OS(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Oh("ltr"),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new FE(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),ke(t,n,this._items.changes).pipe(OS(this._destroyed)).subscribe(function(){e._ngZone.run(function(){return Promise.resolve().then(i)}),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(OS(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!hE(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,s=t.elementRef.nativeElement,a=s.offsetLeft,o=s.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+o:n=(i=this._tabList.nativeElement.offsetWidth-a)-o;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),MS(650,100).pipe(OS(ke(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275dir=Et({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),EP=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e,n,i,r,s,a,o]))._disableRipple=!1,u}return _(t,e),m(t,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=oS(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}])}(SP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275dir=Et({type:e,inputs:{disableRipple:"disableRipple"},features:[eo]}),e}(),TP=function(){var e=function(e){function t(e,n,i,r,s,a,o){return g(this,t),v(this,t,[e,n,i,r,s,a,o])}return _(t,e),m(t)}(EP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,kP,4),2&e)&&($l(i=Xl())&&(t._items=i))},viewQuery:function(e,t){var n;(1&e&&(Kl(iP,7),Kl(JR,7),Kl(XR,7),Kl(eP,5),Kl(tP,5)),2&e)&&($l(n=Xl())&&(t._inkBar=n.first),$l(n=Xl())&&(t._tabListContainer=n.first),$l(n=Xl())&&(t._tabList=n.first),$l(n=Xl())&&(t._nextPaginator=n.first),$l(n=Xl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&Qo("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[eo],ngContentSelectors:HR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(jo(),ko(0,"div",0,1),Ao("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),So(2,"div",2),wo(),ko(3,"div",3,4),Ao("keydown",function(e){return t._handleKeydown(e)}),ko(5,"div",5,6),Ao("cdkObserveContent",function(){return t._onContentChanges()}),ko(7,"div",7),qo(8),wo(),So(9,"mat-ink-bar"),wo(),wo(),ko(10,"div",8,9),Ao("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),So(12,"div",2),wo()),2&e&&(Qo("mat-tab-header-pagination-disabled",t._disableScrollBefore),_o("matRippleDisabled",t._disableScrollBefore||t.disableRipple),Ns(5),Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode),Ns(5),Qo("mat-tab-header-pagination-disabled",t._disableScrollAfter),_o("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[fx,wE,iP],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),DP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YD,Fx,mx,SE,sT],YD]}),e}(),xP=["*",[["mat-toolbar-row"]]],CP=["*","mat-toolbar-row"],MP=qD(function(){return m(function e(t){g(this,e),this._elementRef=t})}()),LP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),AP=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e]))._platform=n,r._document=i,r}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}])}(MP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(ad))},e.\u0275cmp=yt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,LP,5),2&e)&&($l(i=Xl())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Qo("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[eo],ngContentSelectors:CP,decls:2,vars:0,template:function(e,t){1&e&&(jo(xP),qo(0),qo(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),OP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),IP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[CD,YD],YD]}),e}(),RP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[xD,CD,zT,aM,oM,pM,_M,bM,AM,zM,rL,EL,YL,rA,aA,OA,WA,kL,RL,sO,EO,nx,mI,gI,DI,NI,mx,VO,HI,BI,tR,dR,DR,qR,DP,OP,nI,IP,dE]}),e}(),PP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP]]}),e}(),FP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP]]}),e}(),YP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,rS,sS,gp,z_,RP,FP],zd,rS,sS,gp,z_,RP,FP,PP]}),e}(),jP={githubUrl:"https://github.com",accessTokenUrl:"https://catcher-auth.herokuapp.com/authenticate",clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles-dev.json"},qP=w(4147),NP={version:w(4147).version,production:!0,test:!1,clientId:"5e1ed08cff7f0de1d68d",githubUrl:"https://github.com",accessTokenUrl:jP.accessTokenUrl,clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles.json",origin:"https://catcher-org.github.io"},HP=Object.assign(Object.assign({},NP),{clientId:"54b9dcc49069dc2f018e",origin:"https://catcher-org.github.io"}),BP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),UP=new Uint8Array(16);function zP(){if(!BP)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return BP(UP)}for(var VP=[],GP=0;GP<256;++GP)VP[GP]=(GP+256).toString(16).substr(1);var WP=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||zP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;++s)t[i+s]=r[s];return t||function(e,t){var n=0;return[VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]]].join("")}(r)};function ZP(){return WP()}var QP=w(97582);function $P(e,t){return W(Rh(function(t){return e(t)}),qg(t))}var KP=function(){return m(function e(){g(this,e),this.issueLastModified=new Map},[{key:"get",value:function(e){return this.issueLastModified.get(e)||""}},{key:"set",value:function(e,t){this.issueLastModified.set(e,t)}},{key:"clear",value:function(){this.issueLastModified.clear()}}])}(),JP=function(){return m(function e(){g(this,e),this.issuesCache=[]},[{key:"getEtagFor",value:function(e){var t=this.get(e),n="";return void 0!==t&&(n=t.headers.etag),n}},{key:"get",value:function(e){return this.issuesCache[e-1]}},{key:"set",value:function(e,t){t.isCached=!0,this.issuesCache[e-1]=t}},{key:"clear",value:function(){this.issuesCache=[]}}])}();function XP(e,t){return e.map(function(e){return t?t(e.node):e.node})}var eF=function(){var e=function(){return m(function e(t){g(this,e),Object.assign(this,t),this.isCategorical()?(this.category=this.name.split(".")[0],this.label=this.name.split(".")[1]):(this.category=this.name,this.label=this.name),Object.freeze(this)},[{key:"getCategory",value:function(){return this.category}},{key:"getValue",value:function(){return this.label}},{key:"getDescription",value:function(){return this.description}},{key:"isCategorical",value:function(){return/^[^.]+\.[^.]+$/.test(this.name)}}])}();return e.LABEL_ORDER={severity:{Low:0,Medium:1,High:2},type:{DocumentationBug:0,FunctionalityBug:1}},e.LABELS={severity:"severity",type:"type",response:"response",duplicated:"duplicated",status:"status",unsure:"unsure",pending:"pending",team:"team",tutorial:"tutorial"},e}(),tF=function(){return m(function e(t){g(this,e),Object.assign(this,t),this.labels=[];var n,i=M(t.labels);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.labels.push(new eF(r))}}catch(s){i.e(s)}finally{i.f()}},[{key:"findLabel",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t){var n=this.labels.find(function(t){return!t.isCategorical()&&t.name===e});return n?n.getValue():void 0}var i=this.labels.filter(function(t){return t.isCategorical()&&t.getCategory()===e});if(0!==i.length){if(1===i.length)return i[0].getValue();if(eF.LABEL_ORDER[e]){var r=eF.LABEL_ORDER[e];return i.reduce(function(e,t){return r[t.getValue()]>r[e.getValue()]?t:e}).getValue()}return i[0].getValue()}}},{key:"findTeamId",value:function(){return"".concat(this.findLabel("team"),".").concat(this.findLabel("tutorial"))}}])}(),nF=function(e){function t(e){return g(this,t),v(this,t,[{id:e.id,number:e.number,body:e.body,created_at:String(e.createdAt),updated_at:String(e.updatedAt),url:String(e.url),title:e.title,state:e.state,user:{login:e.author.login,url:e.author.url,avatar_url:e.author.avatarUrl},assignees:XP(e.assignees.edges),labels:XP(e.labels.edges),comments:XP(e.comments.edges,function(e){return Object.assign(Object.assign({},e),{id:e.databaseId})})}])}return _(t,e),m(t)}(tF),iF=["*"],rF=function(){var e=function(){return m(function e(t){g(this,e),this.snackBarRef=t},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(oR))},e.\u0275cmp=yt({type:e,selectors:[["app-toaster"]],ngContentSelectors:iF,decls:6,vars:0,consts:[[1,"toaster"],[1,"message-container"],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),ko(1,"div",1),ko(2,"p"),qo(3),wo(),wo(),ko(4,"button",2),Ao("click",function(){return t.snackBarRef.dismiss()}),au(5,"Close"),wo(),wo())},directives:[yM],styles:[".toaster[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.message-container[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:80%;overflow-wrap:anywhere}.message-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:auto 5px;text-align:center}button[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:20%;margin:auto 5px;text-align:center}"]}),e}();function sF(e,t){if(1&e&&(ko(0,"div"),au(1," Validation Error: "),ko(2,"ul"),ko(3,"li"),au(4),wo(),wo(),wo()),2&e){var n=t.$implicit;Ns(4),ou(n.code+" in "+n.field)}}function aF(e,t){if(1&e&&(ko(0,"div"),go(1,sF,5,1,"div",2),wo()),2&e){var n=Fo();Ns(1),_o("ngForOf",n.data.errors)}}function oF(e,t){if(1&e&&au(0),2&e){var n=Fo();uu(" ","Error code "+n.data.status+": "+n.data.message,"\n")}}var uF=function(){var e=m(function e(t){g(this,e),this.data=t});return e.\u0275fac=function(t){return new(t||e)(yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-form-error"]],decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],["generalMessage",""],[4,"ngFor","ngForOf"]],template:function(e,t){if(1&e&&(ko(0,"app-toaster"),go(1,aF,2,1,"div",0),wo(),go(2,oF,1,1,"ng-template",null,1,ic)),2&e){var n=vo(3);Ns(1),_o("ngIf",t.data.errors)("ngIfElse",n)}},directives:[rF,Od,Ld],encapsulation:2}),e}(),lF=function(){var e=m(function e(t){g(this,e),this.data=t});return e.\u0275fac=function(t){return new(t||e)(yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-general-message-error"]],decls:2,vars:1,template:function(e,t){1&e&&(ko(0,"app-toaster"),au(1),wo()),2&e&&(Ns(1),uu(" ",t.data.message," "))},directives:[rF],encapsulation:2}),e}(),cF=function(){var e=function(){return m(function e(){g(this,e),this.isInSession=!1,this.LOG_KEY="CATcher-Log",this.LOG_FILE_NAME="CATcher-log.txt",this.LOG_START_HEADER="====== New CATcher v".concat(HP.version," Session Log ======"),this.LOG_COUNT_LIMIT=4,this.SESSION_LOG_SEPARATOR="\n".repeat(2),this.logger=console,this.startSession()},[{key:"reset",value:function(){this.isInSession=!1}},{key:"startSession",value:function(){window.opener&&window.opener!==window||this.isInSession||(this.isInSession=!0,this.initializeLogCache())}},{key:"initializeLogCache",value:function(){this.setCachedLog(this.getTrimmedLogCache(this.getCachedLog(),this.LOG_COUNT_LIMIT))}},{key:"getTrimmedLogCache",value:function(e,t){var n=this,i=(new Date).toLocaleString(),r="".concat(this.LOG_START_HEADER,"\n").concat(i),s=null==e?0:e.split("\n").filter(function(e){return e.includes(n.LOG_START_HEADER)}).length;if(0===s)return r;if(s1?i-1:0),s=1;s1?i-1:0),s=1;s1?i-1:0),s=1;s1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:{};return(0,QP.mG)(t,void 0,void 0,C().mark(function t(){var r,s=this;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.cursor||null,t.abrupt("return",this.apollo.watchQuery({query:n,variables:Object.assign(Object.assign({},i),{cursor:r})}).refetch().then(function(t){return(0,QP.mG)(s,void 0,void 0,C().mark(function r(){var s,a,o,u;return C().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=Array.isArray(t)?t:[t],a=e(t),o=0===a.length?null:a[a.length-1].cursor,!(a.length<100)&&o){r.next=3;break}return r.abrupt("return",s);case 3:return r.next=5,this.withPagination(e)(n,Object.assign(Object.assign({},i),{cursor:o}));case 5:return u=r.sent,r.abrupt("return",s.concat(u));case 7:case"end":return r.stop()}},r,this)}))}));case 2:case"end":return t.stop()}},t,this)}))}}}])}();return e.IF_NONE_MATCH_EMPTY={"If-None-Match":""},e.\u0275fac=function(t){return new(t||e)($i(hF),$i(Eb),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),bF=function(){return m(function e(t){g(this,e),Object.assign(this,t)},[{key:"tutorialClassId",get:function(){var e=T(this.id.split("-"),2),t=e[0],n=e[1];return"".concat(t,"-").concat(n)}},{key:"teamId",get:function(){return this.id.split("-")[2]}}])}(),kF=(function(e){e.Admin="Admin",e.Tutor="Tutor",e.Student="Student"}(kF||(kF={})),kF),wF=function(){var e=function(){function e(t){g(this,e),this.githubService=t}return m(e,[{key:"getDataFile",value:function(){var e=this;return this.githubService.fetchDataFile().pipe(ie(function(t){return e.constructData(t)}),ie(function(t){return e.dataFile={teamStructure:e.extractTeamStructure(t)},t}))}},{key:"constructData",value:function(t){var n={},i=t.data;return n[e.ROLES]=this.parseRolesData(i),n[e.TEAM_STRUCTURE]=this.parseTeamStructureData(i),n[e.STUDENTS_ALLOCATION]=this.parseStudentAllocation(i),n[e.TUTORS_ALLOCATION]=this.parseTutorAllocation(i),n[e.ADMINS_ALLOCATION]=this.parseAdminAllocation(i),n}},{key:"parseAdminAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){t[e.ROLE]===kF.Admin.toLowerCase()&&(n[t[e.NAME].toLowerCase()]={})}),n}},{key:"parseTutorAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Tutor.toLowerCase()){var i=n[t[e.NAME].toLowerCase()]||{};i[t[e.TEAM]]="true",n[t[e.NAME].toLowerCase()]=i}}),n}},{key:"parseStudentAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Student.toLowerCase()){var i={};i[e.TEAM_ID]=t[e.TEAM],n[t[e.NAME].toLowerCase()]=i}}),n}},{key:"parseTeamStructureData",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Student.toLowerCase()){var i=n[t[e.TEAM]]||{};i[t[e.NAME].toLowerCase()]=t[e.NAME],n[t[e.TEAM]]=i}}),n}},{key:"parseRolesData",value:function(t){var n={},i={},r={},s={};return this.parseUsersData(t).forEach(function(t){t[e.ROLE]===kF.Student.toLowerCase()?i[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===kF.Tutor.toLowerCase()?r[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===kF.Admin.toLowerCase()&&(s[t[e.NAME].toLowerCase()]="true")}),n[e.STUDENTS]=i,n[e.TUTORS]=r,n[e.ADMINS]=s,n}},{key:"parseUsersData",value:function(e){for(var t=e.split("\n").filter(function(e){return e.trim()}),n=t[0].split(",").map(function(e){return e.trim()}),i=[],r=1;r/gm,e}(),MF=w(16738),LF=(function(e){e.phaseBugReporting="phaseBugReporting",e.phaseTeamResponse="phaseTeamResponse",e.phaseTesterResponse="phaseTesterResponse",e.phaseModeration="phaseModeration"}(LF||(LF={})),LF),AF=function(){return m(function e(t){g(this,e),this.parser=t},[{key:"findConformingComment",value:function(e){var t,n,i,r=M(e);try{for(r.s();!(i=r.n()).done;){var s=i.value;if(!(n=this.parser.run(s.body)).isError){this.parseResult=n.result,t=s;break}}}catch(a){r.e(a)}finally{r.f()}return void 0===t&&(this.parseFailure=!0,n&&(this.parseError=n.error)),t}}])}(),OF=w(80930),IF=OF.endOfInput,RF=OF.sequenceOf,PF=OF.startOfInput,FF=OF.str,YF="Your response not required for this bug as the team has accepted the bug as it is.",jF=RF([PF,FF(YF),IF]),qF=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[jF])).findConformingComment(e),!n.parseFailure&&(n.teamAccepted=!0),n}return _(t,e),m(t)}(AF),NF=w(80930),HF=NF.char,BF=NF.choice,UF=NF.coroutine,zF=NF.everyCharUntil,VF=NF.str,GF=NF.whitespace;function WF(e){return UF(C().mark(function t(){var n;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,VF("# Team's Response");case 2:return t.next=4,GF;case 4:return t.next=6,zF(VF(e));case 6:return n=t.sent,t.abrupt("return",n.trim()?n.trim():"No details provided by team.");case 8:case"end":return t.stop()}},t)}))}function ZF(e){return UF(C().mark(function t(){var n;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,VF("- [");case 2:return t.next=4,BF([HF("x"),GF]);case 4:return n=t.sent,t.next=7,VF("] "+e);case 7:return t.abrupt("return","x"===n);case 8:case"end":return t.stop()}},t)}))}var QF=w(80930),$F=QF.choice,KF=QF.coroutine,JF=QF.digits,XF=QF.str,eY=QF.whitespace,tY="## Duplicate status (if any):",nY=WF(tY),iY=KF(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XF("Duplicate of #");case 2:return e.next=4,JF;case 4:return t=e.sent,e.abrupt("return",parseInt(t,10));case 6:case"end":return e.stop()}},e)})),rY=KF(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nY;case 2:return t=e.sent,e.next=5,XF(tY);case 5:return e.next=7,eY;case 7:return e.t0=t,e.next=10,$F([iY,XF("--")]).map(function(e){return"--"===e?null:e});case 10:return e.t1=e.sent,e.abrupt("return",{teamResponse:e.t0,issueNumber:e.t1});case 12:case"end":return e.stop()}},e)})),sY=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[rY])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body,createdAt:i.created_at,updatedAt:i.updated_at}),n.teamResponse=n.parseResult.teamResponse,n.duplicateOf=n.parseResult.issueNumber),n}return _(t,e),m(t)}(AF),aY=function(){return m(function e(t,n){g(this,e),this.description=t,this.isChecked=n},[{key:"setChecked",value:function(e){this.isChecked=e}},{key:"toString",value:function(){return"- ".concat(this.isChecked?"[x]":"[ ]"," ").concat(this.description)}}])}(),oY=function(){return m(function e(t,n,i,r,s){g(this,e),this.TITLE_PREFIX="## :question: ",this.DISAGREEMENT_PREFIX="**Reason for disagreement:** ",this.INITIAL_RESPONSE="[replace this with your explanation]",this.LINE_BREAK="
    \n",this.title=t,this.description=n,this.disagreeCheckbox=new aY(i,r),this.reasonForDisagreement=s},[{key:"toString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.disagreeCheckbox.toString()+"\n\n",e+=this.DISAGREEMENT_PREFIX+this.reasonForDisagreement+"\n\n",e+=this.LINE_BREAK}},{key:"isDisagree",value:function(){return this.disagreeCheckbox.isChecked}},{key:"compareTo",value:function(e){return this.isDisagree()===e.isDisagree()?this.reasonForDisagreement.localeCompare(e.reasonForDisagreement):this.isDisagree()?1:-1}},{key:"getTitleInMarkDown",value:function(){return"## ".concat(this.title)}},{key:"getDisagreementWithoutDefaultResponse",value:function(){return this.reasonForDisagreement.replace(this.INITIAL_RESPONSE," ")}},{key:"setDisagree",value:function(e){this.disagreeCheckbox.setChecked(e)}},{key:"setReasonForDisagreement",value:function(e){this.reasonForDisagreement=e}}])}(),uY=w(80930),lY=uY.between,cY=uY.coroutine,dY=uY.everyCharUntil,hY=uY.letters,pY=uY.lookAhead,fY=uY.optionalWhitespace,mY=uY.pipeParsers,gY=uY.possibly,vY=uY.str,yY=uY.whitespace,_Y="
    ",bY="Team chose to mark this issue as a duplicate of another issue (as explained in the _**Team's response**_ above)",kY=ZF("I disagree");function wY(e){return lY(vY("[`"+e+"."))(vY("`]"))(hY)}var SY=cY(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("**Reason for disagreement:** ");case 2:return e.next=4,dY(vY(_Y));case 4:return t=e.sent,e.next=7,vY(_Y);case 7:return e.abrupt("return",t.trim());case 8:case"end":return e.stop()}},e)})),EY=cY(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("status");case 2:return e.next=4,yY;case 4:return e.next=6,vY(bY);case 6:return e.next=8,yY;case 8:return e.next=10,kY;case 10:return t=e.sent,e.next=13,yY;case 13:return e.t0=t,e.next=16,SY;case 16:return e.t1=e.sent,e.abrupt("return",{disagreeCheckboxValue:e.t0,reasonForDisagreement:e.t1});case 18:case"end":return e.stop()}},e)})),TY=cY(C().mark(function e(){var t,n,i,r,s,a,o,u,l;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("## :question: Issue ");case 2:return e.next=4,hY;case 4:return t=e.sent,e.next=7,yY;case 7:if("duplicate"!==t){e.next=14;break}return e.next=10,EY;case 10:return n=e.sent,e.next=13,fY;case 13:return e.abrupt("return",{title:t+" status",description:bY,teamChose:null,testerChose:null,disagreeCheckboxValue:n.disagreeCheckboxValue,reasonForDisagreement:n.reasonForDisagreement});case 14:return e.next=16,pY(dY(kY));case 16:return i=e.sent,r=function(e){var t=wY(e);return mY([vY("Team chose "),t])}(t),s=function(e){var t=wY(e);return mY([vY("Originally "),t])}(t),e.next=21,r;case 21:return a=e.sent,e.next=24,yY;case 24:return e.next=26,gY(s);case 26:return o=e.sent,e.next=29,fY;case 29:return e.next=31,kY;case 31:return u=e.sent,e.next=34,yY;case 34:return e.next=36,SY;case 36:return l=e.sent,e.next=39,fY;case 39:return e.abrupt("return",{title:t,description:i.trim(),teamChose:a,testerChose:o,disagreeCheckboxValue:u,reasonForDisagreement:l});case 40:case"end":return e.stop()}},e)})),DY=w(80930),xY=DY.coroutine,CY=DY.many1,MY=DY.str,LY=DY.optionalWhitespace,AY=DY.possibly,OY=DY.whitespace,IY="# Items for the Tester to Verify",RY=WF(IY),PY=xY(C().mark(function e(){var t,n,i,r,s,a,o,u,l;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,AY(MY("[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]"));case 2:return e.next=4,LY;case 4:return e.next=6,RY;case 6:return t=e.sent,e.next=9,MY(IY);case 9:return e.next=11,OY;case 11:return e.next=13,CY(TY);case 13:n=e.sent,s=!1,a=[],o=M(n);try{for(o.s();!(u=o.n()).done;)(l=u.value).disagreeCheckboxValue&&(s=!0),"severity"===l.title?i=l.teamChose:"type"===l.title&&(r=l.teamChose),a.push(new oY("Issue "+l.title,l.description,"I disagree",l.disagreeCheckboxValue,l.reasonForDisagreement))}catch(c){o.e(c)}finally{o.f()}return e.abrupt("return",{teamResponse:t,testerResponses:a,testerDisagree:s,teamChosenSeverity:i,teamChosenType:r});case 19:case"end":return e.stop()}},e)})),FY=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[PY])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body}),n.teamResponse=n.parseResult.teamResponse,n.testerResponses=n.parseResult.testerResponses,n.testerDisagree=n.parseResult.testerDisagree,n.teamChosenSeverity=n.parseResult.teamChosenSeverity,n.teamChosenType=n.parseResult.teamChosenType),n}return _(t,e),m(t)}(AF),YY=function(){return m(function e(t,n){g(this,e),this.TODO_DESCRIPTION="Done",this.INITIAL_RESPONSE="[replace this with your explanation]",this.TITLE_PREFIX="## :question: ",this.LINE_BREAK="
    \n",this.title=t,this.description=n,this.tutorResponse=this.INITIAL_RESPONSE,this.todo=new aY(this.TODO_DESCRIPTION,!1)},[{key:"isDone",value:function(){return this.todo.isChecked}},{key:"toTutorResponseString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.todo.toString()+"\n\n",e+=this.tutorResponse+"\n\n",e+=this.LINE_BREAK}},{key:"compareTo",value:function(e){return this.isDone()===e.isDone()?this.tutorResponse.localeCompare(e.tutorResponse):this.isDone()?1:-1}},{key:"toString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.LINE_BREAK}},{key:"setTutorResponse",value:function(e){this.tutorResponse=e}},{key:"setIsDone",value:function(e){this.todo.setChecked(e)}}])}(),jY=w(80930),qY=jY.coroutine,NY=jY.everyCharUntil,HY=jY.optionalWhitespace,BY=jY.str,UY="
    ",zY=qY(C().mark(function e(){var t,n;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,BY("## :question: ");case 2:return e.next=4,NY(BY("### Team says:"));case 4:return t=e.sent,e.next=7,NY(BY(UY));case 7:return n=e.sent,e.next=10,BY(UY);case 10:return e.next=12,HY;case 12:return e.abrupt("return",new YY(t.trim(),n.trim()));case 13:case"end":return e.stop()}},e)})),VY=w(80930),GY=VY.coroutine,WY=VY.everyCharUntil,ZY=VY.many1,QY=VY.str,$Y=VY.whitespace,KY="# Disputes",JY=WF(KY),XY=GY(C().mark(function e(){var t,n,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QY("# Issue Description");case 2:return e.next=4,$Y;case 4:return e.next=6,WY(QY("# Team's Response"));case 6:return t=e.sent,e.next=9,JY;case 9:return n=e.sent,e.next=12,QY(KY);case 12:return e.next=14,$Y;case 14:return e.next=16,ZY(zY);case 16:return i=e.sent,e.abrupt("return",{description:t.trim(),teamResponse:n,issueDisputes:i});case 18:case"end":return e.stop()}},e)})),ej=function(e){function t(e){var n;g(this,t),n=v(this,t,[XY]);var i=XY.run(e.body);return i.isError?n.parseFailure=!0:(n.parseResult=i.result,n.description=n.parseResult.description,n.teamResponse=n.parseResult.teamResponse,n.disputes=n.parseResult.issueDisputes),n}return _(t,e),m(t)}(AF),tj=w(80930),nj=tj.coroutine,ij=tj.everyCharUntil,rj=tj.lookAhead,sj=tj.optionalWhitespace,aj=tj.str,oj=tj.whitespace,uj="
    ",lj=ZF("Done"),cj=nj(C().mark(function e(){var t,n,i,r,s;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,aj("## :question: ");case 2:return e.next=4,ij(aj("- ["));case 4:return t=e.sent,e.next=7,rj(ij(aj(uj)));case 7:return n=e.sent,e.next=10,lj;case 10:return i=e.sent,e.next=13,oj;case 13:return e.next=15,ij(aj(uj));case 15:return r=e.sent,e.next=18,aj(uj);case 18:return e.next=20,sj;case 20:return s=new YY(t.trim(),n.trim()),e.abrupt("return",(s.todo=new aY("Done",i),s.tutorResponse=r.trim(),s));case 22:case"end":return e.stop()}},e)})),dj=w(80930),hj=dj.coroutine,pj=dj.many1,fj=dj.str,mj=dj.whitespace,gj=hj(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fj("# Tutor Moderation");case 2:return e.next=4,mj;case 4:return e.next=6,pj(cj);case 6:return e.t0=e.sent,e.abrupt("return",{disputesToResolve:e.t0});case 8:case"end":return e.stop()}},e)})),vj=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[gj])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body}),n.disputesToResolve=n.parseResult.disputesToResolve),n}return _(t,e),m(t)}(AF),yj=function(){function e(t){g(this,e),this.globalId=t.id,this.id=+t.number,this.created_at=MF(t.created_at).format("lll"),this.title=t.title,this.hiddenDataInDescription=new CF(t.body),this.description=e.updateDescription(this.hiddenDataInDescription.originalStringWithoutHiddenData),this.githubIssue=t,this.severity=t.findLabel(eF.LABELS.severity),this.type=t.findLabel(eF.LABELS.type),this.response=t.findLabel(eF.LABELS.response),this.duplicated=!!t.findLabel(eF.LABELS.duplicated,!1),this.status=t.findLabel(eF.LABELS.status),this.pending=t.findLabel(eF.LABELS.pending)}return m(e,[{key:"clone",value:function(t){switch(t){case LF.phaseBugReporting:return e.createPhaseBugReportingIssue(this.githubIssue);case LF.phaseTeamResponse:return e.createPhaseTeamResponseIssue(this.githubIssue,this.teamAssigned);case LF.phaseTesterResponse:return e.createPhaseTesterResponseIssue(this.githubIssue);case LF.phaseModeration:return e.createPhaseModerationIssue(this.githubIssue,this.teamAssigned);default:return e.createPhaseBugReportingIssue(this.githubIssue)}}},{key:"retainResponses",value:function(e,t){switch(this.issueComment=t.issueComment,this.githubComments=t.githubComments,e){case LF.phaseBugReporting:this.description=t.description;break;case LF.phaseTeamResponse:this.teamResponse=t.teamResponse;break;case LF.phaseTesterResponse:this.testerResponses=t.testerResponses,this.teamResponse=t.teamResponse;break;case LF.phaseModeration:this.issueDisputes=t.issueDisputes}}},{key:"updateTesterResponse",value:function(e){var t=new FY([e]);this.issueComment=t.comment,this.teamResponse=t.teamResponse,this.testerResponses=t.testerResponses}},{key:"updateDispute",value:function(e){var t=this,n=new vj([e]);this.issueComment=n.comment,this.issueDisputes=n.disputesToResolve.map(function(e,n){return e.description=t.issueDisputes[n].description,e})}},{key:"createGithubIssueDescription",value:function(){return"".concat(this.description,"\n").concat(this.hiddenDataInDescription.toString())}},{key:"createGithubTeamResponse",value:function(){return"# Team's Response\n".concat(this.teamResponse,"\n## Duplicate status (if any):\n").concat(this.duplicateOf?"Duplicate of #".concat(this.duplicateOf):"--")}},{key:"createGithubTutorResponse",value:function(){var e="# Tutor Moderation\n\n";if(void 0!==this.issueDisputes){var t,n=M(this.issueDisputes);try{for(n.s();!(t=n.n()).done;){e+=t.value.toTutorResponseString()}}catch(i){n.e(i)}finally{n.f()}}return e}},{key:"createGithubTesterResponse",value:function(){return"# Team's Response\n".concat(this.teamResponse,"\n# Items for the Tester to Verify\n").concat(this.getTesterResponsesString(this.testerResponses))}},{key:"numOfUnresolvedDisputes",value:function(){return this.issueDisputes?this.issueDisputes.reduce(function(e,t){return e+Number(!t.isDone())},0):0}},{key:"getTesterResponsesString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}}],[{key:"formatText",value:function(e){return null===e?null:void 0!==e?e.split(/[\n\r]/gi).filter(function(e){return""!==e.trim()}).length>0?"".concat(e,"\n\n"):e:void 0}},{key:"updateDescription",value:function(t){return e.orDefaultString(e.formatText(t),"No details provided by bug reporter.")}},{key:"updateTeamResponse",value:function(t){return e.orDefaultString(e.formatText(t),"No details provided by team.")}},{key:"orDefaultString",value:function(e,t){return e&&0!==e.length?e:t}},{key:"createPhaseBugReportingIssue",value:function(t){return new e(t)}},{key:"createPhaseTeamResponseIssue",value:function(t,n){var i=new e(t),r=new sY(t.comments);return i.githubComments=t.comments,i.teamAssigned=n,i.assignees=t.assignees.map(function(e){return e.login}),i.teamResponseError=r.parseFailure,i.parseError=r.parseError,i.issueComment=r.comment,i.teamResponse=r.teamResponse,i.duplicateOf=r.duplicateOf,i.duplicated=null!=i.duplicateOf,i}},{key:"createPhaseTesterResponseIssue",value:function(t){var n=new e(t),i=new FY(t.comments),r=new qF(t.comments);return n.githubComments=t.comments,n.testerResponseError=i.parseFailure&&r.parseFailure,n.parseError=i.parseError,n.teamAccepted=r.teamAccepted,n.issueComment=i.comment,n.teamResponse=i.teamResponse,n.testerResponses=i.testerResponses,n.testerDisagree=i.testerDisagree,n.teamChosenSeverity=i.teamChosenSeverity||null,n.teamChosenType=i.teamChosenType||null,n}},{key:"createPhaseModerationIssue",value:function(t,n){var i=new e(t),r=new ej(t),s=new vj(t.comments);return i.githubComments=t.comments,i.teamAssigned=n,i.description=r.description,i.teamResponse=r.teamResponse,i.issueDisputes=r.disputes,s.disputesToResolve&&s.comment&&(i.issueDisputes=s.disputesToResolve.map(function(e,t){return e.description=r.disputes[t].description,e}),i.issueComment=s.comment),i}}])}(),_j={"-":0,VeryLow:1,Low:2,Medium:3,High:4},bj={"-":0,DocumentationBug:1,FeatureFlaw:2,FunctionalityBug:3},kj=(function(e){e.Incomplete="Incomplete",e.Done="Done"}(kj||(kj={})),kj),wj=(function(e){e.NoFilter="NoFilter",e.NoAccess="NoAccess",e.FilterByCreator="FilterByCreator",e.FilterByTeam="FilterByTeam",e.FilterByTeamAssigned="FilterByTeamAssigned"}(wj||(wj={})),wj),Sj={phaseBugReporting:{Student:wj.FilterByCreator,Tutor:wj.NoFilter,Admin:wj.NoFilter},phaseTeamResponse:{Student:wj.FilterByTeam,Tutor:wj.FilterByTeamAssigned,Admin:wj.NoFilter},phaseTesterResponse:{Student:wj.NoFilter,Tutor:wj.NoAccess,Admin:wj.NoFilter},phaseModeration:{Student:wj.NoAccess,Tutor:wj.FilterByTeamAssigned,Admin:wj.NoFilter}},Ej=HP.version,Tj=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t,this.currentVersion=Ej},[{key:"isApplicationOutdated",value:function(){var e=this;return this.latestVersion?Oh(this.isOutdatedVersion(this.latestVersion,this.currentVersion)):this.githubService.fetchLatestRelease().pipe(ie(function(t){return e.latestVersion=t.tag_name.substring(1),e.latestReleaseUrl=t.html_url,e.isOutdatedVersion(e.latestVersion,e.currentVersion)}))}},{key:"isOutdatedVersion",value:function(e,t){return 1===this.compareVersions(e,t)}},{key:"compareVersions",value:function(e,t){for(var n=e.split("."),i=t.split("."),r=Math.min(e.length,t.length),s=[],a=[],o=0;oa[o])return 1;if(s[o]-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}}}])}(U);function Cj(){return W($P(function(e){return void 0!==e},function(){return new Error("Session Data Unavailable")}),$P(Mj,function(){return new Error("Session data does not define an 'openPhases' key")}),$P(Oj,function(){return new Error("There are no accessible phases")}),$P(Lj,function(){return new Error("Invalid Open Phases detected")}),$P(Aj,function(){return new Error("Opened Phase has no repo defined")}))}function Mj(e){return null!=e.openPhases}function Lj(e){return e.openPhases.reduce(function(e,t){return e&&t in LF},!0)}function Aj(e){return e.openPhases.reduce(function(t,n){return t&&!!e[n]},!0)}function Oj(e){return 0!==e.openPhases.length}var Ij=function(){return m(function e(t,n,i,r){g(this,e),this.labelValue=n,this.labelColor=i,this.labelCategory=t,this.labelDefinition=r},[{key:"getFormattedName",value:function(){return void 0===this.labelCategory||""===this.labelCategory?this.labelValue:this.labelCategory.concat(".",this.labelValue)}},{key:"equals",value:function(e){return this.labelValue===e.labelValue&&this.labelColor===e.labelColor&&this.labelCategory===e.labelCategory}}])}(),Rj="ffffff",Pj={severity:{VeryLow:new Ij("severity","VeryLow","ffe0e0","

    A flaw that is purely cosmetic and does not affect usage. For example,

    • typo issues
    • spacing issues
    • layout issues
    • color issues
    • font issues
    in the docs or the UI that doesn't affect usage.

    "),Low:new Ij("severity","Low","ffcccc","

    A flaw that is unlikely to affect normal operations of the product. Appears only in very rare situations and causes a minor inconvenience only.

    "),Medium:new Ij("severity","Medium","ff9999","

    A flaw that causes occasional inconvenience to some users but they can continue to use the product.

    "),High:new Ij("severity","High","ff6666","

    A flaw that affects most users and causes major problems for users.i.e., makes the product almost unusable for most users.

    ")},type:{DocumentationBug:new Ij("type","DocumentationBug","d966ff",'

    A flaw in the documentation e.g., a missing step, a wrong instruction, typos

    '),FeatureFlaw:new Ij("type","FeatureFlaw","d966ff","

    Some functionality missing from a feature delivered in the current version in a way that the feature becomes less useful to the intended target user for normal usage. i.e., the feature is not 'complete'.\nIn other words, an acceptance-testing bug that falls within the scope of the current version features. These issues are counted against the product design aspect of the project.

    "),FunctionalityBug:new Ij("type","FunctionalityBug","9900cc","

    A functionality does not work as specified/expected.

    ")},response:{Accepted:new Ij("response","Accepted","00802b","

    You accept it as a bug.

    "),CannotReproduce:new Ij("response","CannotReproduce","ffebcc","

    You are unable to reproduce the behavior reported in the bug after multiple tries.

    "),IssueUnclear:new Ij("response","IssueUnclear","ffcc80","

    The issue description is not clear.

    "),NotInScope:new Ij("response","NotInScope","ffcc80",'

    It is a valid issue but not something the team should be penalized for e.g., it was not related to features delivered in this version.

    '),Rejected:new Ij("response","Rejected","ff9900","

    What tester treated as a bug is in fact the expected behavior (from the user's point of view), or the tester was mistaken in some other way.

    ")},status:{Done:new Ij("status","Done","a6a6a6"),Incomplete:new Ij("status","Incomplete","000000")},others:{duplicate:new Ij(void 0,"duplicate","0066ff")}},Fj=function(){function e(t,n){g(this,e),this.githubService=t,this.logger=n}return m(e,[{key:"syncLabels",value:function(e){var t=this;return W(ge(function(){return t.synchronizeRemoteLabels(e)}))}},{key:"synchronizeRemoteLabels",value:function(t){var n=this;return this.githubService.fetchAllLabels().pipe(ie(function(e){return e.map(n.toLabel)}),ie(function(i){return n.ensureRepoHasRequiredLabels(i,e.getRequiredLabelsAsArray(t)),i}))}},{key:"getLabelList",value:function(t){switch(t){case"severity":return e.severityLabels;case"type":return e.typeLabels;case"response":return e.responseLabels}this.logger.info("LabelService: Unfiltered Attribute ".concat(t," in getLabelList"))}},{key:"getLabelTitle",value:function(e){switch(e){case"severity":return"Severity";case"type":return"Bug Type";case"response":return"Response"}this.logger.info("LabelService: Unfiltered Attribute ".concat(e," in getLabelTitle"))}},{key:"getColorOfLabel",value:function(t,n){if(""===n||!e.allLabelArrays[t])return this.logger.info("LabelService: Unfiltered Attribute, ".concat(n,": ").concat(t," in getColorOfLabel")),Rj;var i=e.allLabelArrays[t].find(function(e){return e.labelValue===n});return void 0===i||void 0===i.labelColor?Rj:i.labelColor}},{key:"getLabelDefinition",value:function(t,n){if(""===t||null===t||""===n||null===n)return null;var i=e.getRequiredLabelsAsArray(!0).find(function(e){return e.labelValue===t&&e.labelCategory===n});return void 0===i||void 0===i.labelDefinition?null:i.labelDefinition}},{key:"ensureRepoHasRequiredLabels",value:function(t,n){var i=this;n.forEach(function(n){var r=t.filter(function(e){return e.getFormattedName()===n.getFormattedName()});if(0===r.length)i.githubService.createLabel(n.getFormattedName(),n.labelColor);else{if(1!==r.length)throw new Error("Unexpected error: the repo has multiple labels with the same name "+n.getFormattedName());r[0].equals(n)||e.updateRequiredLabelColor(r[0].labelColor,n)}})}},{key:"toLabel",value:function(e){var t,n,i=String(e.name),r=T(/\./g.test(i)?e.name.split("."):[void 0,i],2);t=r[0],n=r[1];var s=e.color,a=String(e.description);return new Ij(t,n,s,a)}},{key:"isDarkColor",value:function(e){var t="#"===e.charAt(0)?e.substring(1,7):e,n=[parseInt(t.substring(0,2),16)/255,parseInt(t.substring(2,4),16)/255,parseInt(t.substring(4,6),16)/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]<.184}},{key:"setLabelStyle",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"inline-flex";return t=this.isDarkColor(e)?Rj:"000000",{"background-color":"#".concat(e),"border-radius":"3px",cursor:"default",padding:"3px",color:"#".concat(t),"font-weight":"410",display:n}}}],[{key:"getRequiredLabelsAsArray",value:function(e){var t=[];return Object.values(e?this.allLabelArrays:this.testerLabelArrays).map(function(e){return t=t.concat(e)}),t}},{key:"updateRequiredLabelColor",value:function(t,n){var i=e.allLabelArrays[n.labelCategory];i&&(i.find(function(e){return e.labelValue===n.labelValue}).labelColor=t)}}])}();Fj.severityLabels=Object.values(Pj.severity),Fj.typeLabels=Object.values(Pj.type),Fj.responseLabels=Object.values(Pj.response),Fj.statusLabels=Object.values(Pj.status),Fj.otherLabels=Object.values(Pj.others),Fj.allLabelArrays={severity:Fj.severityLabels,type:Fj.typeLabels,response:Fj.responseLabels,status:Fj.statusLabels,others:Fj.otherLabels},Fj.testerLabelArrays={severity:Fj.severityLabels,type:Fj.typeLabels},Fj.\u0275fac=function(e){return new(e||Fj)($i(_F),$i(cF))},Fj.\u0275prov=Be({token:Fj,factory:Fj.\u0275fac,providedIn:"root"});var Yj=function(){var e=function(){return m(function e(t,n){g(this,e),this.dialogRef=t,this.data=n},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL))},e.\u0275cmp=yt({type:e,selectors:[["app-session-fix-confirmation"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-button","","mat-raised-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1),wo(),ko(2,"div",1),ko(3,"p"),au(4),wo(),ko(5,"p"),au(6,"in your Github Account?"),wo(),wo(),ko(7,"div",2),ko(8,"button",3),au(9,"No Thanks"),wo(),ko(10,"button",4),au(11,"Yes"),wo(),wo()),2&e&&(Ns(1),uu("Hi ",t.data.user,""),Ns(3),uu('Do you want CATcher to create a repository named "',t.data.repoName,'"'),Ns(4),_o("mat-dialog-close",!1),Ns(2),_o("mat-dialog-close",!0))},directives:[eA,tA,nA,yM,XL],styles:[""]}),e}(),jj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.userService=n,this.repoCreationConfirmationDialog=i},[{key:"requestRepoCreationPermissions",value:function(e,t){var n=this;return W(ge(function(i){return i||e!==LF.phaseBugReporting?Oh(null):n.openRepoCreationConfirmation(t)}))}},{key:"openRepoCreationConfirmation",value:function(e){return this.repoCreationConfirmationDialog.open(Yj,{data:{user:this.userService.currentUser.loginId,repoName:e}}).afterClosed()}},{key:"verifyRepoCreationPermissions",value:function(e){var t=this;return W(Zg(function(n){if(null!==n){if(!1===n)throw new Error("You cannot proceed without the required repository.");if(e!==LF.phaseBugReporting)throw new Error("Current Phase's Repository has not been opened.");if(t.userService.currentUser.role!==kF.Student)throw new Error("'Bug-Reporting Phase's repository initialisation is only available to Students.'")}}))}},{key:"attemptRepoCreation",value:function(e){var t=this;return W(ge(function(n){return null===n?Oh(null):(t.githubService.createRepository(e),new Q(function(e){setTimeout(function(){return e.next(!0)},1e3)}))}))}},{key:"verifyRepoCreation",value:function(e,t){var n=this;return W(ge(function(i){return i?n.githubService.isRepositoryPresent(e,t):Oh(!0)}))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(SF),$i(KL))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),qj=D(D(D(D({},LF.phaseBugReporting,"Bug Reporting Phase"),LF.phaseTeamResponse,"Team's Response Phase"),LF.phaseTesterResponse,"Tester's Response Phase"),LF.phaseModeration,"Moderation Phase"),Nj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.labelService=n,this.repoCreatorService=i,this.phaseRepoOwners={phaseBugReporting:"",phaseTeamResponse:"",phaseTesterResponse:"",phaseModeration:""}},[{key:"setPhaseOwners",value:function(e,t){this.orgName=e,this.phaseRepoOwners.phaseBugReporting=t,this.phaseRepoOwners.phaseTeamResponse=e,this.phaseRepoOwners.phaseTesterResponse=t,this.phaseRepoOwners.phaseModeration=e}},{key:"getPhaseOwner",value:function(e){return this.phaseRepoOwners[e]}},{key:"fetchSessionData",value:function(){return this.githubService.fetchSettingsFile().pipe(ie(function(e){return e}))}},{key:"storeSessionData",value:function(){var e=this;return this.fetchSessionData().pipe(Cj(),ie(function(t){localStorage.setItem("sessionData",JSON.stringify(t)),e.updateSessionParameters(t)}))}},{key:"setSessionData",value:function(){var e=JSON.parse(localStorage.getItem("sessionData"));this.updateSessionParameters(e)}},{key:"githubRepoPermissionLevel",value:function(){return this.sessionData.openPhases.includes(LF.phaseModeration)?"repo":"public_repo"}},{key:"verifySessionAvailability",value:function(e){return this.githubService.isRepositoryPresent(this.phaseRepoOwners[this.currentPhase],e[this.currentPhase])}},{key:"updateSessionParameters",value:function(e){this.sessionData=e,this.currentPhase=LF[e.openPhases[0]],this.repoName=e[e.openPhases[0]],this.githubService.storePhaseDetails(this.phaseRepoOwners[this.currentPhase],this.repoName)}},{key:"sessionSetup",value:function(){var e=this;return this.fetchSessionData().pipe(Cj(),ge(function(t){return e.updateSessionParameters(t),e.verifySessionAvailability(t)}),this.repoCreatorService.requestRepoCreationPermissions(this.currentPhase,this.sessionData[this.currentPhase]),W(Zg(function(e){e||!1})),this.repoCreatorService.verifyRepoCreationPermissions(this.currentPhase),this.repoCreatorService.attemptRepoCreation(this.sessionData[this.currentPhase]),this.repoCreatorService.verifyRepoCreation(this.getPhaseOwner(this.currentPhase),this.sessionData[this.currentPhase]),$P(function(e){return e},function(){return new Error("Session Availability Fix failed.")}),this.labelService.syncLabels(this.isTeamOrModerationPhase()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Dj(e,t))}}(1))}},{key:"isTeamOrModerationPhase",value:function(){return this.currentPhase===LF.phaseTeamResponse||this.currentPhase===LF.phaseModeration}},{key:"getPhaseDetail",value:function(){return this.orgName.concat("/").concat(this.repoName)}},{key:"isValidRoute",value:function(e){return e.startsWith("/"+this.currentPhase)}},{key:"reset",value:function(){this.currentPhase=null}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Fj),$i(jj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Hj=function(){var e=function(){function e(t,n,i,r,s){g(this,e),this.githubService=t,this.userService=n,this.phaseService=i,this.dataService=r,this.logger=s,this.issueTeamFilter="All Teams",this.isLoading=new lg(!1),this.issues$=new lg(new Array)}return m(e,[{key:"startPollIssues",value:function(){var t=this;void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=MS(0,e.POLL_INTERVAL).pipe(EF(function(){return t.reloadAllIssues().pipe(Ig(function(){return _g}),Kg(function(){return t.isLoading.next(!1)}))})).subscribe())}},{key:"stopPollIssues",value:function(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}},{key:"pollIssue",value:function(t){var n=this;return MS(0,e.POLL_INTERVAL).pipe(EF(function(){return n.githubService.fetchIssueGraphql(t).pipe(ie(function(e){var t=n.createIssueModel(e);return n.updateLocalStore(t),t}),Ig(function(e){return n.getIssue(t)}))}))}},{key:"reloadAllIssues",value:function(){return this.initializeData()}},{key:"getIssue",value:function(e){return void 0===this.issues?this.getLatestIssue(e):Oh(this.issues[e])}},{key:"getLatestIssue",value:function(e){var t=this;return this.githubService.fetchIssueGraphql(e).pipe(ie(function(n){return t.createAndSaveIssueModel(n),t.issues[e]}),Ig(function(n){return Oh(t.issues[e])}))}},{key:"createIssue",value:function(e,t,n,i){var r=this,s=[this.createLabel("severity",n),this.createLabel("type",i)],a=new Map([["session",this.sessionId],["Version","Desktop v".concat(Ej)]]),o=CF.embedDataIntoString(t,a);return this.githubService.createIssue(e,o,s).pipe(ie(function(e){return r.createIssueModel(e)}))}},{key:"updateIssue",value:function(e){var t=this;return this.updateGithubIssue(e).pipe(ie(function(n){return n.comments=e.githubComments,t.createIssueModel(n)}))}},{key:"updateGithubIssue",value:function(e){var t=this,n=this.phaseService.currentPhase===LF.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),n).pipe(Ig(function(e){return t.parseUpdateIssueResponseError(e)}))}},{key:"updateIssueWithComment",value:function(e,t){var n=this;return this.githubService.updateIssueComment(t).pipe(ge(function(t){return e.githubComments=[t].concat(d(e.githubComments.filter(function(e){return e.id!==t.id}))),n.updateIssue(e)}))}},{key:"updateTesterResponse",value:function(e,t){var n=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),i=e.clone(this.phaseService.currentPhase);return i.status=kj.Done,Ck([n,this.updateIssue(i)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateTesterResponse(n),i}))}},{key:"updateTutorResponse",value:function(e,t){return Ck([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createTeamResponse",value:function(e){var t=this,n=e.createGithubTeamResponse();return this.updateGithubIssue(e).pipe(ge(function(i){return t.githubService.createIssueComment(e.id,n).pipe(ie(function(n){return e.githubComments=[n].concat(d(e.githubComments.filter(function(e){return e.id!==n.id}))),i.comments=e.githubComments,t.createIssueModel(i)}))}))}},{key:"createTutorResponse",value:function(e,t){return Ck([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createGithubIssueDescription",value:function(e){return this.phaseService.currentPhase===LF.phaseModeration?"# Issue Description\n".concat(e.createGithubIssueDescription(),"\n# Team's Response\n").concat(e.teamResponse,"\n # Disputes\n\n").concat(this.getIssueDisputeString(e.issueDisputes),"\n"):e.createGithubIssueDescription()}},{key:"getIssueDisputeString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"deleteIssue",value:function(e){var t=this;return this.githubService.closeIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.deleteFromLocalStore(n),n}))}},{key:"undeleteIssue",value:function(e){var t=this;return this.githubService.reopenIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.updateLocalStore(n),n}))}},{key:"deleteFromLocalStore",value:function(e){var t=e.id,n=(0,QP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=n,this.issues$.next(Object.values(this.issues))}},{key:"updateLocalStore",value:function(e){this.issues=Object.assign(Object.assign({},this.issues),D({},e.id,e)),this.issues$.next(Object.values(this.issues))}},{key:"hasTeamResponse",value:function(e){return!!this.issues[e].teamResponse}},{key:"getDuplicateIssuesFor",value:function(e){return this.issues$.pipe(ie(function(t){return t.filter(function(t){return t.duplicateOf===e.id})}))}},{key:"reset",value:function(e){e&&(this.sessionId=void 0),this.issues=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new lg(!1)}},{key:"initializeData",value:function(){var e=this,t=[];switch(Sj[this.phaseService.currentPhase][this.userService.currentUser.role]){case wj.FilterByCreator:t.push(this.githubService.fetchIssuesGraphql(new xF({creator:this.userService.currentUser.loginId})));break;case wj.FilterByTeam:t.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",this.userService.currentUser.team.tutorialClassId),this.createLabel("team",this.userService.currentUser.team.teamId),new xF({})));break;case wj.FilterByTeamAssigned:this.userService.currentUser.allocatedTeams.forEach(function(n){t.push(e.githubService.fetchIssuesGraphqlByTeam(e.createLabel("tutorial",n.tutorialClassId),e.createLabel("team",n.teamId),new xF({})))});break;case wj.NoFilter:t.push(this.githubService.fetchIssuesGraphql(new xF({})));break;default:return Oh([])}return Ck(t).pipe(ie(function(t){var n,i=[],r=M(t);try{for(r.s();!(n=r.n()).done;){var s,a=M(n.value);try{for(a.s();!(s=a.n()).done;){var o=s.value;i.push(e.createIssueModel(o).id),e.createAndSaveIssueModel(o)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}var u=e.getOutdatedIssueIds(i);return e.deleteIssuesFromLocalStore(u),Object.values(e.issues)}))}},{key:"createAndSaveIssueModel",value:function(e){var t=this.createIssueModel(e);return this.updateLocalStore(t),!0}},{key:"deleteIssuesFromLocalStore",value:function(e){var t=this;e.forEach(function(e){t.getIssue(e).subscribe(function(e){return t.deleteFromLocalStore(e)})})}},{key:"getOutdatedIssueIds",value:function(e){if(void 0===this.issues||!e.length)return[];var t=new Set(e);return Object.keys(this.issues).map(function(e){return+e}).filter(function(e){return!t.has(e)})}},{key:"createLabelsForIssue",value:function(e){var t=[];if(this.phaseService.currentPhase!==LF.phaseBugReporting&&this.phaseService.currentPhase!==LF.phaseTesterResponse){var n=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial","".concat(n[0],"-").concat(n[1])),this.createLabel("team",n[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}},{key:"createLabel",value:function(e,t){return"".concat(e,".").concat(t)}},{key:"extractTeamIdFromGithubIssue",value:function(e){return e.findLabel(eF.LABELS.tutorial).concat("-").concat(e.findLabel(eF.LABELS.team))}},{key:"createIssueModel",value:function(e){var t;switch(this.phaseService.currentPhase){case LF.phaseBugReporting:t=yj.createPhaseBugReportingIssue(e);break;case LF.phaseTeamResponse:t=yj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;case LF.phaseTesterResponse:t=yj.createPhaseTesterResponseIssue(e);break;case LF.phaseModeration:t=yj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;default:return}return t.parseError&&this.logger.error("IssueService: "+t.parseError),t}},{key:"parseUpdateIssueResponseError",value:function(e){if(this.logger.error("IssueService: ",e),422!==e.code||!e.hasOwnProperty("message"))return lb(e.response.data.message);var t=e.message.substring("Validation Failed:".length),n=JSON.parse(t);return["field","code","value"].every(function(e){return n.hasOwnProperty(e)})&&"assignees"===n.field&&"invalid"===n.code?lb("Assignee ".concat(n.value," has not joined your organization yet. Please remove them from the assignees list.")):lb(e.response.data.message)}},{key:"setIssueTeamFilter",value:function(e){e&&(this.issueTeamFilter=e)}},{key:"setSessionId",value:function(e){this.sessionId=e}},{key:"getIssueTeamFilter",value:function(){return this.issueTeamFilter}}])}();return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)($i(_F),$i(SF),$i(Nj),$i(wF),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Bj=function(){var e=function(){return m(function e(t,n){g(this,e),this.githubService=t,this.issueService=n},[{key:"setLatestChangeEvent",value:function(){var e=this;return this.githubService.fetchEventsForRepo().pipe(ie(function(t){return 0===t.length||(e.setLastModifiedTime(t[0].created_at),e.setLastModifiedCommentTime(t[0].issue.updated_at)),t}))}},{key:"reloadPage",value:function(){var e=this;return this.githubService.fetchEventsForRepo().pipe(ge(function(t){if(0===t.length)return Oh(!1);var n=t[0];return n.created_at!==e.lastModified||n.issue.updated_at!==e.lastModifiedComment?(e.setLastModifiedTime(n.created_at),e.setLastModifiedCommentTime(n.issue.updated_at),e.issueService.reloadAllIssues().pipe(ie(function(e){return!0}))):Oh(!1)}))}},{key:"setLastModifiedTime",value:function(e){this.lastModified=e}},{key:"setLastModifiedCommentTime",value:function(e){this.lastModifiedComment=e}},{key:"reset",value:function(){this.setLastModifiedTime(void 0),this.setLastModifiedCommentTime(void 0)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Hj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Uj=(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(Uj||(Uj={})),Uj),zj=function(){var e=function(){function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.router=t,this.ngZone=n,this.githubService=i,this.userService=r,this.issueService=s,this.phaseService=a,this.dataService=o,this.githubEventService=u,this.titleService=l,this.logger=c,this.authStateSource=new lg(Uj.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new lg(void 0),this.ENABLE_POPUP_MESSAGE="Please enable pop-ups in your browser"}return m(e,[{key:"storeNext",value:function(t){sessionStorage.setItem(e.SESSION_NEXT_KEY,t.url)}},{key:"getNext",value:function(){return sessionStorage.getItem(e.SESSION_NEXT_KEY)}},{key:"clearNext",value:function(){sessionStorage.removeItem(e.SESSION_NEXT_KEY)}},{key:"storeOAuthAccessToken",value:function(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}},{key:"reset",value:function(){var e=this;this.logger.info("AuthService: Clearing access token and setting AuthState to NotAuthenticated."),this.accessToken.next(void 0),this.changeAuthState(Uj.NotAuthenticated),this.ngZone.run(function(){return e.router.navigate([""])})}},{key:"logOut",value:function(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}},{key:"setTitleWithPhaseDetail",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version," - ").concat(this.phaseService.getPhaseDetail());this.logger.info("AuthService: Setting Title as ".concat(t)),this.titleService.setTitle(t)}},{key:"setLandingPageTitle",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version);this.logger.info("AuthService: Setting LandingPageTitle as ".concat(t)),this.titleService.setTitle(t)}},{key:"isAuthenticated",value:function(){return this.authStateSource.getValue()===Uj.Authenticated}},{key:"changeAuthState",value:function(e){if(e===Uj.Authenticated){var t="".concat(Date.now(),"-").concat(ZP());this.issueService.setSessionId(t),this.logger.info("AuthService: Successfully authenticated with session: ".concat(t))}this.authStateSource.next(e)}},{key:"generateStateString",value:function(){this.state=ZP(),sessionStorage.setItem("state",this.state)}},{key:"isReturnedStateSame",value:function(e){return e===sessionStorage.getItem("state")}},{key:"startOAuthProcess",value:function(){this.logger.info("AuthService: Starting authentication");var e=this.phaseService.githubRepoPermissionLevel();this.changeAuthState(Uj.AwaitingAuthentication),this.generateStateString(),this.redirectToOAuthPage(encodeURI("".concat(HP.githubUrl,"/login/oauth/authorize?client_id=").concat(HP.clientId,"&scope=").concat(e,",read:user&state=").concat(this.state))),this.logger.info("AuthService: Redirecting for Github authentication")}},{key:"redirectToOAuthPage",value:function(e){null!=e&&(window.location.href=e)}},{key:"navigateToLandingPage",value:function(){var e=this.getNext();e&&this.phaseService.isValidRoute(e)?this.router.navigateByUrl(e):this.router.navigateByUrl(this.phaseService.currentPhase)}}])}();return e.SESSION_NEXT_KEY="next",e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Cc),$i(_F),$i(SF),$i(Hj),$i(Nj),$i(wF),$i(Bj),$i(Ah),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Vj={profileName:{required:!0,validate:function(e){return!!e}},repoName:{required:!0,validate:function(e){return!!e.match(/\w+\/\w+/g)}}},Gj=function(e){return function(e,t){return Object.entries(t).every(function(t){var n=T(t,2),i=n[0],r=n[1];return!r.required||i in e&&r.validate(e[i])})}(e,Vj)},Wj=new Error("profiles.json is malformed"),Zj=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t},[{key:"fetchExternalProfiles",value:function(){var e=this;return this.githubService.getProfilesData().then(function(e){return e.json()}).then(function(e){return e.profiles||[]}).then(function(t){return e.validateProfiles(t),t})}},{key:"validateProfiles",value:function(e){if(!e.every(Gj))throw Wj}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Qj=function(){var e=function(){return m(function e(t){g(this,e),this.dialogRef=t},[{key:"ngOnInit",value:function(){}},{key:"onClick",value:function(){this.dialogRef.close()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL))},e.\u0275cmp=yt({type:e,selectors:[["app-json-parse-error-dialog"]],decls:14,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","center",2,"max-width","390px"],["mat-dialog-actions","","align","center"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1,'Error in "profiles.json" format'),wo(),ko(2,"div",1),ko(3,"p",2),au(4,' The format of the "profiles.json" file is not as required. You might not have included '),ko(5,"code"),au(6,"profileName"),wo(),au(7," and "),ko(8,"code"),au(9,"repoName"),wo(),au(10," keys. Please refer to our User Guide for the correct format. "),wo(),wo(),ko(11,"div",3),ko(12,"button",4),Ao("click",function(){return t.onClick()}),au(13,"Ok"),wo(),wo())},directives:[eA,tA,nA,yM],styles:[""]}),e}();function $j(e,t){if(1&e){var n=xo();ko(0,"mat-option",7),Ao("click",function(){var e=ln(n).$implicit;return Fo().selectProfile(e)}),au(1),wo()}if(2&e){var i=t.$implicit;_o("value",i.profileName),Ns(1),ou(i.profileName)}}var Kj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.errorDialog=t,this.profileService=n,this.errorHandlingService=i,this.ANIMATION_DURATION=250,this.profiles=[],this.blankProfile={profileName:"",repoName:""},this.animationActivated=!1,this.selectedProfile=this.blankProfile,this.selectedProfileEmitter=new jl,this.profilesData={isDirectoryMessageVisible:!1,fileName:null,fileDirectory:null}},[{key:"ngOnInit",value:function(){this.initProfiles()}},{key:"fileSelectorInitiation",value:function(e){var t=this;this.animationActivated=!0,setTimeout(function(){t.animationActivated=!1,e.click()},this.ANIMATION_DURATION)}},{key:"fileSelected",value:function(e){var t=this,n=e.target,i=n.files[0],r=new FileReader;r.onload=function(){if(!(r.result instanceof ArrayBuffer))try{var e=JSON.parse(r.result).profiles;t.profileService.validateProfiles(e),t.profiles=e.concat(t.profiles).filter(function(e){return!!e}),n.value=""}catch(e){t.openErrorDialog()}},r.readAsText(i)}},{key:"initProfiles",value:function(){var e=this;this.profileService.fetchExternalProfiles().then(function(t){e.profiles=e.profiles.concat(t).filter(function(e){return!!e})}).then(function(){return e.setUrlEncodedProfile(e.profiles)}).catch(function(t){t===Wj?e.openErrorDialog():e.errorHandlingService.handleError(t)})}},{key:"openErrorDialog",value:function(){this.errorDialog.open(Qj)}},{key:"selectProfile",value:function(e){e===this.blankProfile||Gj(e)?this.selectedProfileEmitter.emit(e):this.openErrorDialog()}},{key:"setUrlEncodedProfile",value:function(e){var t=this;if(this.urlEncodedSessionName){var n=e.find(function(e){return e.profileName===t.urlEncodedSessionName});n?(this.selectedProfile.profileName=this.urlEncodedSessionName,this.selectProfile(n)):this.errorHandlingService.handleError(new Error("Invalid URL provided session"))}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(KL),yo(Zj),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-profiles"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{selectedProfileEmitter:"selectedProfileEmitter"},decls:12,vars:3,consts:[[1,"profile-field"],[3,"value"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["type","file","accept",".json",2,"display","none",3,"change"],["fileInput",""],["type","button","mat-icon-button","","disableRipple","true","matTooltip","Configure your custom settings",1,"profile-input",3,"click","mousedown","mouseleave"],[3,"value","click"]],template:function(e,t){if(1&e){var n=xo();ko(0,"mat-form-field",0),ko(1,"mat-label"),au(2,"Select Session"),wo(),ko(3,"mat-select",1),ko(4,"mat-option",2),Ao("click",function(){return t.selectProfile(t.blankProfile)}),au(5,"None"),wo(),go(6,$j,2,2,"mat-option",3),wo(),wo(),ko(7,"input",4,5),Ao("change",function(e){return t.fileSelected(e)}),wo(),ko(9,"button",6),Ao("click",function(){ln(n);var e=vo(8);return t.fileSelectorInitiation(e)})("mousedown",function(){return t.animationActivated=!0})("mouseleave",function(){return t.animationActivated=!1}),ko(10,"mat-icon"),au(11,"folder_open"),wo(),wo()}2&e&&(Ns(3),_o("value",t.selectedProfile.profileName),Ns(3),_o("ngForOf",t.profiles),Ns(4),_o("@triggerFileInput",t.animationActivated?"pressed":"normal"))},directives:[JC,zC,zO,Dx,Ld,yM,XO,bL],styles:[".profile-field[_ngcontent-%COMP%]{width:90%}.profile-input[_ngcontent-%COMP%]{width:10%;text-align:right}"],data:{animation:[_p("triggerFileInput",[Sp("normal",wp({})),Sp("pressed",wp({color:"orange"})),Tp("normal => pressed",[bp("0.25s ease")]),Tp("pressed => normal",[bp("0.25s ease")])])]}}),e}();function Jj(e,t){if(1&e&&(ko(0,"button",9),ko(1,"div"),au(2,"Submit"),wo(),wo()),2&e){var n=Fo();_o("disabled",n.profileForm.invalid||n.isSettingUpSession)}}function Xj(e,t){1&e&&(ko(0,"div",10),So(1,"mat-spinner",11),wo()),2&e&&(Ns(1),_o("diameter",47))}var eq=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.formBuilder=t,this.logger=n,this.githubService=i,this.phaseService=r,this.authService=s,this.errorHandlingService=a,this.sessionEmitter=new jl},[{key:"ngOnInit",value:function(){this.isSettingUpSession=!1,this.initProfileForm()}},{key:"onProfileSelect",value:function(e){this.profileForm.get("session").setValue(e.repoName),this.sessionEmitter.emit(e.repoName)}},{key:"setupSession",value:function(){var e=this;if(!this.profileForm.invalid){this.isSettingUpSession=!0;var t=this.profileForm.get("session").value,n=this.getOrgDetails(t),i=this.getDataRepoDetails(t);window.localStorage.setItem("org",n),window.localStorage.setItem("dataRepo",i),this.githubService.storeOrganizationDetails(n,i),this.logger.info("SessionSelectionComponent: Selected Settings Repo: ".concat(t)),this.phaseService.storeSessionData().subscribe(function(){try{e.authService.startOAuthProcess()}catch(t){e.errorHandlingService.handleError(t),e.authService.changeAuthState(Uj.NotAuthenticated)}},function(t){e.errorHandlingService.handleError(t),e.isSettingUpSession=!1},function(){return e.isSettingUpSession=!1})}}},{key:"getOrgDetails",value:function(e){return e.split("/")[0]}},{key:"getDataRepoDetails",value:function(e){return e.split("/")[1]}},{key:"initProfileForm",value:function(){this.profileForm=this.formBuilder.group({session:["",Hk.required]})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(aS),yo(cF),yo(_F),yo(Nj),yo(zj),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-session-selection"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{sessionEmitter:"sessionEmitter"},decls:12,vars:4,consts:[[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[3,"formGroup","ngSubmit"],[1,"login-field",3,"urlEncodedSessionName","selectedProfileEmitter"],[1,"login-field"],["matInput","","placeholder","Settings Location (Org/Repo)","formControlName","session","required",""],["class","sign-in-button","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","spinner-centralize",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",1,"sign-in-button",3,"disabled"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(ko(0,"mat-card",0),ko(1,"mat-card-header",1),ko(2,"mat-card-title",2),au(3," Select Your Session "),wo(),wo(),ko(4,"form",3),Ao("ngSubmit",function(){return t.setupSession()}),ko(5,"app-profiles",4),Ao("selectedProfileEmitter",function(e){return t.onProfileSelect(e)}),wo(),ko(6,"mat-card-content"),ko(7,"mat-form-field",5),So(8,"input",6),wo(),ko(9,"mat-card-actions"),go(10,Jj,3,1,"button",7),go(11,Xj,2,1,"div",8),wo(),wo(),wo(),wo()),2&e&&(Ns(4),_o("formGroup",t.profileForm),Ns(1),_o("urlEncodedSessionName",t.urlEncodedSessionName),Ns(5),_o("ngIf",!t.isSettingUpSession),Ns(1),_o("ngIf",t.isSettingUpSession))},directives:[MM,LM,DM,zw,hw,$w,Kj,TM,JC,IL,Pk,dw,Jw,eS,CM,Od,yM,TI],styles:[".login-field[_ngcontent-%COMP%]{width:100%}.sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}",".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e}(),tq=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.authService=t,this.phaseService=n,this.userService=i,this.errorHandlingService=r,this.githubEventService=s,this.logger=a,this.router=o},[{key:"ngOnInit",value:function(){}},{key:"onGithubWebsiteClicked",value:function(){window.open("https://github.com/","_blank"),window.location.reload()}},{key:"logIntoAnotherAccount",value:function(){this.logger.info("ConfirmLoginComponent: Logging into another account"),this.authService.startOAuthProcess()}},{key:"handleAuthSuccess",value:function(){this.authService.setTitleWithPhaseDetail(),this.authService.changeAuthState(Uj.Authenticated),this.authService.navigateToLandingPage()}},{key:"completeLoginProcess",value:function(){var e=this;this.authService.changeAuthState(Uj.AwaitingAuthentication),this.phaseService.setPhaseOwners(this.currentSessionOrg,this.username),this.userService.createUserModel(this.username).pipe(ge(function(){return e.phaseService.sessionSetup()}),ge(function(){return e.githubEventService.setLatestChangeEvent()})).subscribe(function(){e.handleAuthSuccess()},function(t){e.authService.changeAuthState(Uj.NotAuthenticated),e.errorHandlingService.handleError(t),e.logger.info("ConfirmLoginComponent: Completion of login process failed with an error: ".concat(t))})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zj),yo(Nj),yo(SF),yo(hF),yo(Bj),yo(cF),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-auth-confirm-login"]],inputs:{username:"username",currentSessionOrg:"currentSessionOrg"},decls:10,vars:1,consts:[["mat-stroked-button","","color","primary",1,"sign-in-button",3,"click"],[1,"logo"],["src","./assets/images/github-logo.png","alt","github-logo",1,"github-logo"],[1,"mat-body-1",2,"margin-top","20px"],["href","https://github.com/",3,"click"]],template:function(e,t){1&e&&(ko(0,"button",0),Ao("click",function(){return t.completeLoginProcess()}),ko(1,"span",1),So(2,"img",2),wo(),ko(3,"span"),au(4),wo(),wo(),ko(5,"div",3),au(6," To change account, please sign into the desired account from the "),ko(7,"a",4),Ao("click",function(){return t.onGithubWebsiteClicked()}),au(8,"official Github website"),wo(),au(9,".\n"),wo()),2&e&&(Ns(4),uu(" Continue as ",t.username," "))},directives:[yM],styles:[".sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}.logo[_ngcontent-%COMP%]{align-items:center;display:inline-flex;margin:0 3px 3px}.github-logo[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}"]}),e}();function nq(e,t){if(1&e&&(ko(0,"div",1),So(1,"app-session-selection",2),wo()),2&e){var n=Fo();Ns(1),_o("urlEncodedSessionName",n.urlEncodedSessionName)}}function iq(e,t){if(1&e&&(ko(0,"div"),So(1,"app-auth-confirm-login",10),wo()),2&e){var n=Fo(2);Ns(1),_o("username",n.currentUserName)("currentSessionOrg",n.currentSessionOrg)}}function rq(e,t){1&e&&(ko(0,"div",11),So(1,"mat-spinner",12),wo()),2&e&&(Ns(1),_o("diameter",47))}function sq(e,t){if(1&e){var n=xo();ko(0,"div",1),ko(1,"mat-card",3),ko(2,"mat-card-header",4),ko(3,"mat-card-title",5),au(4," Confirm Login Account "),wo(),ko(5,"mat-card-subtitle"),au(6),wo(),wo(),ko(7,"div",6),ko(8,"button",7),Ao("click",function(){return ln(n),Fo().goToSessionSelect()}),ko(9,"mat-icon"),au(10,"arrow_back_ios"),wo(),wo(),wo(),go(11,iq,2,2,"div",8),go(12,rq,2,1,"div",9),wo(),wo()}if(2&e){var i=Fo();Ns(6),uu(" Session on ",i.currentSessionOrg," "),Ns(2),_o("disabled",i.isUserAuthenticating()),Ns(3),_o("ngIf",!i.isUserAuthenticating()),Ns(1),_o("ngIf",i.isUserAuthenticating())}}var aq=[{path:"",component:function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.appService=t,this.githubService=n,this.authService=i,this.userService=r,this.errorHandlingService=s,this.router=a,this.phaseService=o,this.ngZone=u,this.activatedRoute=l,this.logger=c},[{key:"ngOnInit",value:function(){this.logger.startSession();var e=this.activatedRoute.snapshot.queryParamMap.get("code"),t=this.activatedRoute.snapshot.queryParamMap.get("state");this.authService.isAuthenticated()?this.router.navigate([this.phaseService.currentPhase]):(this.initAccessTokenSubscription(),this.initAuthStateSubscription(),this.createProfileFromUrlQueryParams(),e&&(this.authService.changeAuthState(Uj.AwaitingAuthentication),this.restoreOrgDetailsFromLocalStorage(),this.logger.info("AuthComponent: Obtained authorisation code from Github"),this.fetchAccessToken(e,t)))}},{key:"fetchAccessToken",value:function(e,t){var n=this;this.authService.isReturnedStateSame(t)?(this.logger.info("AuthComponent: Retrieving access token from Github"),fetch("".concat(HP.accessTokenUrl,"/").concat(e,"/client_id/").concat(HP.clientId)).then(function(e){return e.json()}).then(function(e){if(e.error)throw new Error(e.error);n.authService.storeOAuthAccessToken(e.token),n.logger.info("AuthComponent: Sucessfully obtained access token")}).catch(function(e){n.logger.info("AuthComponent: Error in data fetched from access token URL: ".concat(e)),n.errorHandlingService.handleError(e),n.authService.changeAuthState(Uj.NotAuthenticated)})):this.logger.info("AuthComponent: Received incorrect state ".concat(t,", continue waiting for correct state"))}},{key:"ngOnDestroy",value:function(){this.authStateSubscription&&this.authStateSubscription.unsubscribe(),this.accessTokenSubscription&&this.accessTokenSubscription.unsubscribe()}},{key:"checkAppIsOutdated",value:function(){return this.appService.isApplicationOutdated().pipe(ie(function(e){if(e)throw new Error("Please update to the latest version of CATcher.")}))}},{key:"updateSession",value:function(e){this.sessionInformation=e}},{key:"goToSessionSelect",value:function(){this.authService.changeAuthState(Uj.NotAuthenticated)}},{key:"isUserNotAuthenticated",value:function(){return this.authState===Uj.NotAuthenticated}},{key:"isUserAuthenticating",value:function(){return this.authState===Uj.AwaitingAuthentication}},{key:"isAwaitingOAuthUserConfirm",value:function(){return this.authState===Uj.ConfirmOAuthUser}},{key:"currentSessionOrg",get:function(){return this.sessionInformation?this.getOrgDetails(this.sessionInformation):window.localStorage.getItem("org")}},{key:"restoreOrgDetailsFromLocalStorage",value:function(){var e=window.localStorage.getItem("org"),t=window.localStorage.getItem("dataRepo");this.githubService.storeOrganizationDetails(e,t),this.phaseService.setSessionData()}},{key:"getOrgDetails",value:function(e){return e.split("/")[0]}},{key:"initAuthStateSubscription",value:function(){var e=this;this.authStateSubscription=this.authService.currentAuthState.subscribe(function(t){e.ngZone.run(function(){e.authState=t})})}},{key:"initAccessTokenSubscription",value:function(){var e=this;this.accessTokenSubscription=this.authService.accessToken.pipe(Rh(function(e){return!!e}),ge(function(){return e.userService.getAuthenticatedUser()})).subscribe(function(t){e.ngZone.run(function(){e.currentUserName=t.login,e.authService.changeAuthState(Uj.ConfirmOAuthUser)})})}},{key:"createProfileFromUrlQueryParams",value:function(){var e=this.activatedRoute.snapshot.queryParamMap;e.has("session")&&(this.urlEncodedSessionName=e.get("session"))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Tj),yo(_F),yo(zj),yo(SF),yo(hF),yo(M_),yo(Nj),yo(Cc),yo(uy),yo(cF))},e.\u0275cmp=yt({type:e,selectors:[["app-auth"]],decls:2,vars:2,consts:[["class","login-page",4,"ngIf"],[1,"login-page"],[3,"urlEncodedSessionName"],[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[2,"position","absolute","top","15px","left","15px"],["mat-icon-button","",1,"mat-primary",3,"disabled","click"],[4,"ngIf"],["class","spinner-centralize",4,"ngIf"],[3,"username","currentSessionOrg"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(go(0,nq,2,1,"div",0),go(1,sq,13,4,"div",0)),2&e&&(_o("ngIf",t.isUserNotAuthenticated()),Ns(1),_o("ngIf",t.isUserAuthenticating()||t.isAwaitingOAuthUserConfirm()))},directives:[Od,eq,MM,LM,DM,xM,yM,bL,tq,TI],styles:[".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e}()}],oq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(aq)],z_]}),e}(),uq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[oq,YP,zd]]}),e}(),lq=function(){var e=function(){return m(function e(t,n){g(this,e),this.auth=t,this.router=n},[{key:"canActivate",value:function(e,t){return this.auth.isAuthenticated()?(this.auth.clearNext(),!0):(this.auth.storeNext(t),this.router.navigate([""]),!1)}},{key:"canLoad",value:function(e,t){return!!this.auth.isAuthenticated()||(this.router.navigate([""]),!1)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(zj),$i(M_))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),cq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YP,mk.forChild()]]}),e}(),dq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP,z_]]}),e}();function hq(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function pq(e,t){return function(n,i){t(n,i,e)}}var fq=["searchSelectInput"],mq=["innerSelectSearch"];function gq(e,t){if(1&e){var n=xo();ko(0,"mat-checkbox",9),Ao("change",function(e){return ln(n),Fo()._emitSelectAllBooleanToParent(e.checked)}),wo()}if(2&e){var i=Fo();_o("color",null==i.matFormField?null:i.matFormField.color)("checked",i.toggleAllCheckboxChecked)("indeterminate",i.toggleAllCheckboxIndeterminate)("matTooltip",i.toggleAllCheckboxTooltipMessage)("matTooltipPosition",i.toogleAllCheckboxTooltipPosition)}}function vq(e,t){1&e&&So(0,"mat-spinner",10)}function yq(e,t){1&e&&qo(0,1,["*ngIf","clearIcon; else defaultIcon"])}function _q(e,t){1&e&&(ko(0,"mat-icon"),au(1,"close"),wo())}function bq(e,t){if(1&e){var n=xo();ko(0,"button",11),Ao("click",function(){return ln(n),Fo()._reset(!0)}),go(1,yq,1,0,"ng-content",12),go(2,_q,2,0,"ng-template",null,13,ic),wo()}if(2&e){var i=vo(3),r=Fo();Ns(1),_o("ngIf",r.clearIcon)("ngIfElse",i)}}function kq(e,t){if(1&e&&(ko(0,"div",14),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.noEntriesFoundLabel,"\n")}}var wq,Sq=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],Eq=function(e,t){return{"mat-select-search-inner-multiple":e,"mat-select-search-inner-toggle-all":t}},Tq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","ngxMatSelectSearchClear",""]]}),e}(),Dq=wq=function(){return m(function e(t,n,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;g(this,e),this.matSelect=t,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=s,this.liveAnnouncer=a,this.matFormField=o,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new jl,this.onTouched=function(e){},this._options$=new lg(null),this.optionsList$=this._options$.pipe(wg(function(e){return e?e.changes.pipe(ie(function(e){return e.toArray()}),Mg(e.toArray())):Oh(null)})),this.optionsLength$=this.optionsList$.pipe(ie(function(e){return e?e.length:0})),this._formControl=new Pw(""),this._showNoEntriesFound$=fg([this._formControl.valueChanges,this.optionsLength$]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return r.noEntriesFoundLabel&&n&&i===r.getOptionsLengthOffset()})),this._onDestroy=new ee},[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)}},{key:"ngOnInit",value:function(){var e=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(eM(1),OS(this._onDestroy)).subscribe(function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()}),this.matSelect.openedChange.pipe(Dg(1)).pipe(OS(this._onDestroy)).subscribe(function(){e.matSelect._keyManager?e.matSelect._keyManager.change.pipe(OS(e._onDestroy)).subscribe(function(){return e.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];e._options.changes.pipe(OS(e._onDestroy)).subscribe(function(){setTimeout(function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],r=e.matSelect._keyManager;r&&e.matSelect.panelOpen&&((!e.matSelect.compareWith(t,i)||!r.activeItem||!n.find(function(t){return e.matSelect.compareWith(t,r.activeItem)}))&&r.setFirstItemActive(),setTimeout(function(){e.updateInputWidth()}),e.disableScrollToActiveOnOptionsChanged||e.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe(OS(this._onDestroy)).subscribe(function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(OS(this._onDestroy)).subscribe(function(){e.matSelect.panelOpen&&e.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(OS(this._onDestroy)).subscribe(function(){e.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(e){this.toggleAll.emit(e)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||32===e.keyCode||this.preventHomeEndKeyPropagation&&(36===e.keyCode||35===e.keyCode))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&13===e.keyCode&&setTimeout(function(){return t._focus()}),!0===this.enableClearOnEscapePressed&&27===e.keyCode&&this.value&&(this._reset(!0),e.stopPropagation())}},{key:"_handleKeyup",value:function(e){if(38===e.keyCode||40===e.keyCode){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(function(e){return e.id===t});if(-1!==n){var i=this._options.toArray()[n];this.liveAnnouncer.announce(i.viewValue+" "+this.getAriaIndex(n)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(e){return 0===this.getOptionsLengthOffset()?e+1:e}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(e){var t=this;this._formControl.valueChanges.pipe(Rh(function(e){return e!==t._lastExternalInputValue}),Zg(function(){return t._lastExternalInputValue=void 0}),OS(this._onDestroy)).subscribe(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}}},{key:"_reset",value:function(e){this._formControl.setValue(""),e&&this._focus()}},{key:"initMultipleHandling",value:function(){var e=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){var n=!1;if(e.matSelect.multiple&&(e.alwaysRestoreSelectedOptionsMulti||e._formControl.value&&e._formControl.value.length)&&e.previousSelectedValues&&Array.isArray(e.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var i=e.matSelect.options.map(function(e){return e.value});e.previousSelectedValues.forEach(function(r){!t.some(function(t){return e.matSelect.compareWith(t,r)})&&!i.some(function(t){return e.matSelect.compareWith(t,r)})&&(t.push(r),n=!0)})}e.previousSelectedValues=t,n&&e.matSelect._onChange(t)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var e=this.getMatOptionHeight(),t=this.matSelect._keyManager.activeItemIndex||0,n=xx(t,this.matSelect.options,this.matSelect.optionGroups),i=(this.matOption?-1:0)+n+t,r=this.matSelect.panel.nativeElement.scrollTop,s=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-s)/e),o=Math.round((r+s)/e)-1;o>=i?this.matSelect.panel.nativeElement.scrollTop=i*e:o+a<=i&&(this.matSelect.panel.nativeElement.scrollTop=(i+1)*e-(256-s))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}])}();Dq.\u0275fac=function(e){return new(e||Dq)(yo(zO),yo(sl),yo(lE),yo(Dx,8),yo($E),yo(JC,8))},Dq.\u0275cmp=yt({type:Dq,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,Tq,5),2&e)&&($l(i=Xl())&&(t.clearIcon=i.first))},viewQuery:function(e,t){var n;(1&e&&(Kl(fq,7,Iu),Kl(mq,7,Iu)),2&e)&&($l(n=Xl())&&(t.searchSelectInput=n.first),$l(n=Xl())&&(t.innerSelectSearch=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-select-search-inside-mat-option",t.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[Du([{provide:Ok,useExisting:Pe(function(){return wq}),multi:!0}])],ngContentSelectors:[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(e,t){1&e&&(jo(Sq),So(0,"input",0),ko(1,"div",1,2),go(3,gq,1,5,"mat-checkbox",3),ko(4,"input",4,5),Ao("keydown",function(e){return t._handleKeydown(e)})("keyup",function(e){return t._handleKeyup(e)})("blur",function(){return t.onBlur()}),wo(),go(6,vq,1,0,"mat-spinner",6),go(7,bq,4,2,"button",7),qo(8),wo(),go(9,kq,2,1,"div",8),Pl(10,"async")),2&e&&(Ns(1),_o("ngClass",Ol(11,Eq,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),Ns(2),_o("ngIf",t._isToggleAllCheckboxVisible()),Ns(1),_o("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),fo("aria-label",t.ariaLabel),Ns(2),_o("ngIf",t.searching),Ns(1),_o("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),Ns(2),_o("ngIf",Fl(10,9,t._showNoEntriesFound$)))},directives:[Cd,Od,Pk,dw,Zw,BM,XO,TI,yM,bL],pipes:[Ud],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Dq.ctorParameters=function(){return[{type:zO,decorators:[{type:nr,args:[zO]}]},{type:sl},{type:lE},{type:Dx,decorators:[{type:ir},{type:nr,args:[Dx]}]},{type:$E},{type:JC,decorators:[{type:ir},{type:nr,args:[JC]}]}]},hq([rc()],Dq.prototype,"placeholderLabel",void 0),hq([rc()],Dq.prototype,"type",void 0),hq([rc()],Dq.prototype,"noEntriesFoundLabel",void 0),hq([rc()],Dq.prototype,"indexAndLengthScreenReaderText",void 0),hq([rc()],Dq.prototype,"clearSearchInput",void 0),hq([rc()],Dq.prototype,"searching",void 0),hq([rc()],Dq.prototype,"disableInitialFocus",void 0),hq([rc()],Dq.prototype,"enableClearOnEscapePressed",void 0),hq([rc()],Dq.prototype,"preventHomeEndKeyPropagation",void 0),hq([rc()],Dq.prototype,"disableScrollToActiveOnOptionsChanged",void 0),hq([rc()],Dq.prototype,"ariaLabel",void 0),hq([rc()],Dq.prototype,"showToggleAllCheckbox",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxChecked",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxIndeterminate",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxTooltipMessage",void 0),hq([rc()],Dq.prototype,"toogleAllCheckboxTooltipPosition",void 0),hq([rc()],Dq.prototype,"hideClearSearchButton",void 0),hq([rc()],Dq.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),hq([sc()],Dq.prototype,"toggleAll",void 0),hq([Ai("searchSelectInput",{read:Iu,static:!0})],Dq.prototype,"searchSelectInput",void 0),hq([Ai("innerSelectSearch",{read:Iu,static:!0})],Dq.prototype,"innerSelectSearch",void 0),hq([Li(Tq,{static:!1})],Dq.prototype,"clearIcon",void 0),hq([ac("class.mat-select-search-inside-mat-option")],Dq.prototype,"isInsideMatOption",null),Dq=wq=hq([pq(0,nr(zO)),pq(3,ir()),pq(3,nr(Dx)),pq(5,ir()),pq(5,nr(JC))],Dq);var xq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,sS,_M,zM,kL,DI,nI]]}),e}(),Cq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YP,cq,gI,xq,mk.forChild()]]}),e}(),Mq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YP]]}),e}(),Lq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Aq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild(),xq]]}),e}(),Oq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd]]}),e}(),Iq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd]]}),e}(),Rq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Pq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Fq=D(D(D(D({},LF.phaseBugReporting,D(D(D({},kF.Student,{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1})),LF.phaseTeamResponse,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1})),LF.phaseTesterResponse,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!0,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!0,isTutorResponseEditable:!1})),LF.phaseModeration,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0})),Yq=function(){var e=function(){return m(function e(t,n){g(this,e),this.userService=t,this.phaseService=n},[{key:"isIssueCreatable",value:function(){return this.askForPermission("User","isIssueCreatable")}},{key:"isIssueDeletable",value:function(){return this.askForPermission("User","isIssueDeletable")}},{key:"isIssueTitleEditable",value:function(){return this.askForPermission("User","isIssueTitleEditable")}},{key:"isIssueDescriptionEditable",value:function(){return this.askForPermission("User","isIssueDescriptionEditable")}},{key:"isIssueLabelsEditable",value:function(){return this.askForPermission("User","isIssueLabelsEditable")}},{key:"isTesterResponseEditable",value:function(){return this.askForPermission("User","isTesterResponseEditable")}},{key:"isTeamResponseEditable",value:function(){return this.askForPermission("User","isTeamResponseEditable")}},{key:"isTutorResponseEditable",value:function(){return this.askForPermission("User","isTutorResponseEditable")}},{key:"isIssueEditable",value:function(){return this.isIssueTitleEditable()||this.isIssueDescriptionEditable()||this.isIssueLabelsEditable()||this.isTeamResponseEditable()||this.isTesterResponseEditable()||this.isTutorResponseEditable()}},{key:"askForPermission",value:function(e,t){switch(e){case"Phase":return Fq[this.phaseService.currentPhase][t];case"User":return Fq[this.phaseService.currentPhase][this.userService.currentUser.role][t];default:return!1}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(SF),$i(Nj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function jq(e,t){1&e&&(ko(0,"div",2),So(1,"mat-spinner",3),wo()),2&e&&(Ns(1),_o("diameter",47))}function qq(e,t){if(1&e){var n=xo();ko(0,"app-issue-description",13),Ao("changeEditState",function(e){return ln(n),Fo(2).updateDescriptionEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("isEditing",i.isIssueDescriptionEditing)("issue",i.issue)}}function Nq(e,t){if(1&e){var n=xo();ko(0,"app-team-response",14),Ao("updateEditState",function(e){return ln(n),Fo(2).updateTeamResponseEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTeamResponseEditing)}}function Hq(e,t){if(1&e){var n=xo();ko(0,"app-new-team-response",4),Ao("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}2&e&&_o("issue",Fo(2).issue)}function Bq(e,t){1&e&&So(0,"app-parse-error",15),2&e&&_o("phase","Team Response")}function Uq(e,t){if(1&e){var n=xo();ko(0,"app-tester-response",14),Ao("updateEditState",function(e){return ln(n),Fo(2).updateTesterResponseEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTesterResponseEditing)}}function zq(e,t){1&e&&So(0,"app-parse-error",15),2&e&&_o("phase","Tester Response")}function Vq(e,t){1&e&&So(0,"app-team-accepted")}function Gq(e,t){if(1&e){var n=xo();ko(0,"app-issue-dispute",16),Ao("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)})("updateEditState",function(e){return ln(n),Fo(2).updateTutorResponseEditState(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTutorResponseEditing)}}function Wq(e,t){if(1&e){var n=xo();ko(0,"app-issue-label",19),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo()}2&e&&_o("issue",Fo(3).issue)}function Zq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-issue-label",20),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function Qq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-issue-label",21),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function $q(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-assignee-component",22),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)("team",i.issue.teamAssigned)}}function Kq(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),So(2,"app-duplicated-issues-component",23),So(3,"br"),wo()),2&e){var n=Fo(3);Ns(2),_o("issue",n.issue)}}function Jq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-duplicate-of-component",4),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function Xq(e,t){1&e&&(ko(0,"div",24),au(1," * Need your resolution. An issue cannot have both duplicated issues and duplicated status. "),wo())}function eN(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-unsure-checkbox",4),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function tN(e,t){if(1&e&&(ko(0,"div"),go(1,Wq,1,1,"app-issue-label",17),go(2,Zq,3,1,"div",1),go(3,Qq,3,1,"div",1),go(4,$q,3,2,"div",1),go(5,Kq,4,1,"div",1),Pl(6,"async"),go(7,Jq,3,1,"div",1),Pl(8,"async"),go(9,Xq,2,0,"div",18),Pl(10,"async"),Pl(11,"async"),go(12,eN,3,1,"div",1),wo()),2&e){var n=Fo(2);Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.SEVERITY_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.TYPE_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.RESPONSE_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.ASSIGNEE)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&0!==Fl(6,8,n.issueService.getDuplicateIssuesFor(n.issue)).length),Ns(2),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&(n.issue.duplicateOf||0===Fl(8,10,n.issueService.getDuplicateIssuesFor(n.issue)).length)),Ns(2),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&0!==Fl(10,12,n.issueService.getDuplicateIssuesFor(n.issue)).length&&(n.issue.duplicateOf||0===Fl(11,14,n.issueService.getDuplicateIssuesFor(n.issue)).length)),Ns(3),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.UNSURE_CHECKBOX))}}function nN(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-issue-title",4),Ao("issueUpdated",function(e){return ln(n),Fo().updateIssue(e)}),wo(),So(2,"mat-divider"),ko(3,"div",5),ko(4,"div",6),go(5,qq,1,2,"app-issue-description",7),go(6,Nq,1,2,"app-team-response",8),go(7,Hq,1,1,"app-new-team-response",9),go(8,Bq,1,1,"app-parse-error",10),go(9,Uq,1,2,"app-tester-response",8),go(10,zq,1,1,"app-parse-error",10),go(11,Vq,1,0,"app-team-accepted",1),go(12,Gq,1,2,"app-issue-dispute",11),wo(),ko(13,"div",12),go(14,tN,13,16,"div",1),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("issue",i.issue),Ns(4),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_POST)),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TEAM_RESPONSE)&&i.issue.teamResponse),Ns(1),_o("ngIf",i.hasNoTeamResponse()),Ns(1),_o("ngIf",i.hasTeamResponseParseError()),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.testerResponses&&0!==i.issue.testerResponses.length),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.testerResponseError),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.teamAccepted),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.ISSUE_DISPUTE)),Ns(2),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.NEW_TEAM_RESPONSE)&&i.issue.teamResponse||i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.userService.currentUser.role===i.userRole.Student||i.isComponentVisible(i.issueComponentsEnum.ISSUE_DISPUTE)||!i.isComponentVisible(i.issueComponentsEnum.TEAM_RESPONSE))}}var iN=(function(e){e[e.TESTER_POST=0]="TESTER_POST",e[e.TEAM_RESPONSE=1]="TEAM_RESPONSE",e[e.NEW_TEAM_RESPONSE=2]="NEW_TEAM_RESPONSE",e[e.TESTER_RESPONSE=3]="TESTER_RESPONSE",e[e.ISSUE_DISPUTE=4]="ISSUE_DISPUTE",e[e.SEVERITY_LABEL=5]="SEVERITY_LABEL",e[e.TYPE_LABEL=6]="TYPE_LABEL",e[e.RESPONSE_LABEL=7]="RESPONSE_LABEL",e[e.ASSIGNEE=8]="ASSIGNEE",e[e.DUPLICATE=9]="DUPLICATE",e[e.UNSURE_CHECKBOX=10]="UNSURE_CHECKBOX"}(iN||(iN={})),iN),rN=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.errorHandlingService=t,this.permissions=n,this.userService=i,this.issueService=r,this.phaseService=s,this.router=a,this.isIssueLoading=!0,this.isTutorResponseEditing=!1,this.isIssueDescriptionEditing=!1,this.isTeamResponseEditing=!1,this.isTesterResponseEditing=!1,this.issueComponentsEnum=iN,this.userRole=kF},[{key:"ngOnInit",value:function(){this.getAndPollIssue(this.issueId)}},{key:"ngOnChanges",value:function(e){e.issueId.firstChange||(this.stopPolling(),this.isIssueLoading=!0,this.getAndPollIssue(e.issueId.currentValue))}},{key:"ngOnDestroy",value:function(){this.stopPolling()}},{key:"isComponentVisible",value:function(e){return this.issueComponents.includes(e)}},{key:"isEditing",value:function(){return this.isIssueDescriptionEditing||this.isTutorResponseEditing||this.isTeamResponseEditing}},{key:"updateIssue",value:function(e){this.issue=e,this.issueService.updateLocalStore(e)}},{key:"updateDescriptionEditState",value:function(e){this.isIssueDescriptionEditing=e}},{key:"updateTeamResponseEditState",value:function(e){this.isTeamResponseEditing=e}},{key:"updateTesterResponseEditState",value:function(e){this.isTesterResponseEditing=e}},{key:"updateTutorResponseEditState",value:function(e){this.isTutorResponseEditing=e}},{key:"hasNoTeamResponse",value:function(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&!this.issue.teamResponse&&!this.issue.status}},{key:"hasTeamResponseParseError",value:function(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&this.issue.teamResponseError&&!!this.issue.status}},{key:"getAndPollIssue",value:function(e){var t=this;this.issueService.getIssue(e).subscribe(function(n){t.isIssueLoading=!1,t.issue=n,t.pollIssue(e)},function(e){t.router.navigateByUrl(t.phaseService.currentPhase).then(function(){t.errorHandlingService.handleError(new Error("Invalid URL provided!"))})})}},{key:"pollIssue",value:function(e){var t=this;this.issueSubscription=this.issueService.pollIssue(e).subscribe(function(e){var n=e.clone(t.phaseService.currentPhase);t.isIssueLoading||(t.isIssueDescriptionEditing||t.isTeamResponseEditing||!t.issue.teamResponse&&n.teamResponse||t.isTesterResponseEditing||t.isTutorResponseEditing)&&n.retainResponses(t.phaseService.currentPhase,t.issue),t.issue=n,t.isIssueLoading=!1},function(n){t.errorHandlingService.handleError(n,function(){return t.pollIssue(e)})})}},{key:"stopPolling",value:function(){this.issueSubscription&&this.issueSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hF),yo(Yq),yo(SF),yo(Hj),yo(Nj),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-view-issue"]],inputs:{issueId:"issueId",issueComponents:"issueComponents"},features:[Ft],decls:2,vars:2,consts:[["class","centralize",4,"ngIf"],[4,"ngIf"],[1,"centralize"],[3,"diameter"],[3,"issue","issueUpdated"],[1,"row"],[1,"column","left"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated",4,"ngIf"],[3,"issue","isEditing","updateEditState","issueUpdated",4,"ngIf"],[3,"issue","issueUpdated",4,"ngIf"],[3,"phase",4,"ngIf"],[3,"issue","isEditing","issueUpdated","updateEditState",4,"ngIf"],[1,"column","right"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated"],[3,"issue","isEditing","updateEditState","issueUpdated"],[3,"phase"],[3,"issue","isEditing","issueUpdated","updateEditState"],["attributeName","severity",3,"issue","issueUpdated",4,"ngIf"],["style","margin-top: 15px; color: red",4,"ngIf"],["attributeName","severity",3,"issue","issueUpdated"],["attributeName","type",3,"issue","issueUpdated"],["attributeName","response",3,"issue","issueUpdated"],[3,"issue","team","issueUpdated"],[3,"issue"],[2,"margin-top","15px","color","red"]],template:function(e,t){1&e&&(go(0,jq,2,1,"div",0),go(1,nN,15,10,"div",1)),2&e&&(_o("ngIf",t.isIssueLoading),Ns(1),_o("ngIf",!t.isIssueLoading))},styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}(),sN=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.componentFactoryResolver=t,this.injector=n,this.document=i,this.isLoading=new lg(!1),this.spinnerContainerRef=null,this.spinnerComponentRef=null,this.animationMode="indeterminate",this.spinnerTheme="primary",this.classList=[],this.spinnerFactory=this.componentFactoryResolver.resolveComponentFactory(TI),this.isLoading.pipe(PS()).subscribe(function(e){var t=T(e,2),n=t[0],i=t[1];return r.onIsLoadingChange(n,i)})},[{key:"ngOnDestroy",value:function(){this.isLoading.complete(),this.detachSpinnerFromDom(),this.spinnerContainerRef=null}},{key:"addAnimationMode",value:function(e){return this.animationMode=e,this}},{key:"addSpinnerOptions",value:function(e){return this.options=e,this}},{key:"addViewContainerRef",value:function(e){return void 0===e||(this.spinnerContainerRef=e),this}},{key:"addTheme",value:function(e){return this.spinnerTheme=e,this}},{key:"addCssClasses",value:function(e){var t;return this.classList=[],(t=this.classList).push.apply(t,d(e)),this}},{key:"showLoader",value:function(){this.isLoading.next(!0)}},{key:"hideLoader",value:function(){this.isLoading.next(!1)}},{key:"onIsLoadingChange",value:function(e,t){if(e!==t)return t?this.attachSpinnerToDom():this.detachSpinnerFromDom()}},{key:"attachSpinnerToDom",value:function(){if(null===this.spinnerComponentRef){var e=this.getInjector(),t=this.createSpinner(e);this.isAttachableToDocument()?t.location.nativeElement instanceof Node&&this.document.body.appendChild(t.location.nativeElement):this.spinnerContainerRef.insert(t.hostView),t.changeDetectorRef.detectChanges(),this.spinnerComponentRef=t}}},{key:"detachSpinnerFromDom",value:function(){null!==this.spinnerComponentRef&&(this.isAttachableToDocument()?this.spinnerComponentRef.location.nativeElement instanceof Node&&this.document.body.removeChild(this.spinnerComponentRef.location.nativeElement):this.spinnerContainerRef.remove(),this.spinnerComponentRef.destroy(),this.spinnerComponentRef=null)}},{key:"getInjector",value:function(){return this.isAttachableToDocument()?this.injector:this.spinnerContainerRef.injector}},{key:"isAttachableToDocument",value:function(){return null===this.spinnerContainerRef}},{key:"createSpinner",value:function(e){var t=this.spinnerFactory.create(e);this.options&&(t.instance.diameter=this.options.diameter,t.instance.strokeWidth=this.options.strokeWidth),t.instance.mode=this.animationMode,t.instance.color=this.spinnerTheme;var n,i=t.injector.get(Fu),r=M(this.classList);try{for(r.s();!(n=r.n()).done;){var s=n.value;i.addClass(t.location.nativeElement,s)}}catch(a){r.e(a)}finally{r.f()}return t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Mu),$i(Ja),$i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),aN=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.dialogRef=t,this.data=n,this._sanitizer=i,this.labelName=n.header,this.labelDefinitionHtmlTemplate=i.bypassSecurityTrustHtml(n.body)},[{key:"onNoClick",value:function(){this.dialogRef.close(!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh))},e.\u0275cmp=yt({type:e,selectors:[["app-label-definition-popup"]],decls:8,vars:2,consts:[[1,"modalPopup"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),ko(3,"div",2),So(4,"div",3),wo(),ko(5,"div",4),ko(6,"button",5),Ao("click",function(){return t.onNoClick()}),au(7,"Close"),wo(),wo(),wo()),2&e&&(Ns(2),ou(t.labelName),Ns(2),_o("innerHTML",t.labelDefinitionHtmlTemplate,_s))},directives:[eA,tA,nA,yM],styles:[".modalPopup[_ngcontent-%COMP%]{min-width:800px}"]}),e}();function oN(e,t){if(1&e&&(ko(0,"p"),au(1),wo()),2&e){var n=t.$implicit;Ns(1),uu(" ",n," ")}}var uN=function(){var e=function(){return m(function e(t,n){g(this,e),this.dialogRef=t,this.data=n},[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL))},e.\u0275cmp=yt({type:e,selectors:[["app-user-confirmation"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1,"Warning"),wo(),ko(2,"div",1),go(3,oN,2,1,"p",2),wo(),ko(4,"div",3),ko(5,"button",4),Ao("click",function(){return t.onNoClick()}),au(6),wo(),ko(7,"button",5),au(8),wo(),wo()),2&e&&(Ns(3),_o("ngForOf",t.data.messages),Ns(3),ou(t.data.noMessage),Ns(1),_o("mat-dialog-close",!0),Ns(1),ou(t.data.yesMessage))},directives:[eA,tA,Ld,nA,yM,XL],styles:[""]}),e}(),lN=function(){var e=function(){return m(function e(t){g(this,e),this.dialog=t},[{key:"openUserConfirmationModal",value:function(e,t,n){return this.dialog.open(uN,{data:{messages:e,yesMessage:t,noMessage:n}})}},{key:"openLabelDefinitionDialog",value:function(e,t){return this.dialog.open(aN,{data:{header:e,body:t}})}},{key:"checkIfFieldIsModified",value:function(e,t,n,i){var r=i[t]||"";return e.get(n).value!==r}},{key:"performActionIfModified",value:function(e,t,n){e?t():n()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(KL))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),cN=["loadingSpinnerContainer"];function dN(e,t){if(1&e){var n=xo();ko(0,"button",7),Ao("click",function(){return ln(n),Fo(2).changeToEditMode()}),au(1," Edit "),wo()}}function hN(e,t){1&e&&(ko(0,"button",8),au(1," New Issue "),wo()),2&e&&_o("routerLink","/"+Fo(2).phaseService.currentPhase+"/issues/new")}function pN(e,t){if(1&e&&(ko(0,"div",2),ko(1,"h1",3),au(2),ko(3,"span",4),au(4),wo(),wo(),ko(5,"div",2),go(6,dN,2,0,"button",5),go(7,hN,2,1,"button",6),wo(),wo()),2&e){var n=Fo();Ns(2),uu(" ",n.issue.title," "),Ns(2),uu("#",n.issue.id,""),Ns(2),_o("ngIf",n.permissions.isIssueTitleEditable()),Ns(1),_o("ngIf",n.permissions.isIssueCreatable())}}function fN(e,t){1&e&&(ko(0,"mat-error"),au(1," Title is required. "),wo())}function mN(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot exceed 256 characters. "),wo())}function gN(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo(2);Ns(1),uu(" ",256-(null==n.issueTitleForm.get("title").value?null:n.issueTitleForm.get("title").value.length)," characters remaining. ")}}function vN(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"form",9,10),Ao("ngSubmit",function(){ln(n);var e=vo(2);return Fo().updateTitle(e)}),ko(3,"mat-form-field",11),So(4,"input",12),go(5,fN,2,0,"mat-error",1),go(6,mN,2,0,"mat-error",1),go(7,gN,2,1,"mat-hint",1),wo(),ko(8,"button",13),au(9," Save "),Do(10,null,14),wo(),ko(12,"button",15),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(13," Cancel "),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("formGroup",i.issueTitleForm),Ns(4),_o("ngIf",i.issueTitleForm.get("title").hasError("required")),Ns(1),_o("ngIf",i.issueTitleForm.get("title").hasError("maxlength")),Ns(1),_o("ngIf",(null==i.issueTitleForm.get("title").value?null:i.issueTitleForm.get("title").value.length)>=206),Ns(1),_o("disabled",i.issueTitleForm.invalid||i.isSavePending),Ns(4),_o("disabled",i.isSavePending)}}var yN=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.permissions=r,this.phaseService=s,this.dialogService=a,this.loadingService=o,this.isEditing=!1,this.isSavePending=!1,this.issueUpdated=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"ngOnInit",value:function(){this.issueTitleForm=this.formBuilder.group({title:new Pw("",[Hk.required,Hk.maxLength(256)])}),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}},{key:"changeToEditMode",value:function(){this.isEditing=!0,this.issueTitleForm.setValue({title:this.issue.title||""})}},{key:"cancelEditMode",value:function(){this.isEditing=!1}},{key:"updateTitle",value:function(e){var t=this;if(!this.issueTitleForm.invalid){this.showSpinner();var n=this.issue.clone(this.phaseService.currentPhase);n.title=this.issueTitleForm.get("title").value,this.issueService.updateIssue(n).pipe(Kg(function(){t.isEditing=!1})).subscribe(function(n){t.issueUpdated.emit(n),e.resetForm(),t.hideSpinner()},function(e){t.errorHandlingService.handleError(e),t.hideSpinner()})}}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.issueTitleForm,"title","title",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"showSpinner",value:function(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}},{key:"hideSpinner",value:function(){this.loadingService.hideLoader(),this.isSavePending=!1}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Yq),yo(Nj),yo(lN),yo(sN))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-title"]],viewQuery:function(e,t){var n;(1&e&&Kl(cN,5,gl),2&e)&&($l(n=Xl())&&(t.loadingSpinnerContainer=n.first))},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},features:[Du([sN])],decls:2,vars:2,consts:[["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"mat-display-1","title"],[2,"color","#a3aab1"],["mat-stroked-button","","color","primary","class","title-button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","class","title-button",3,"routerLink",4,"ngIf"],["mat-stroked-button","","color","primary",1,"title-button",3,"click"],["mat-stroked-button","","color","primary",1,"title-button",3,"routerLink"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[2,"width","80%"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],["type","submit","mat-stroked-button","","color","primary",1,"title-button",3,"disabled"],["loadingSpinnerContainer",""],["type","button","mat-stroked-button","","color","warn",1,"title-button",3,"disabled","click"]],template:function(e,t){1&e&&(go(0,pN,8,4,"div",0),go(1,vN,14,6,"div",1)),2&e&&(_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[Od,yM,A_,zw,hw,$w,JC,Pk,IL,dw,Jw,eS,nS,jC,UC],styles:[".row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.title[_ngcontent-%COMP%]{margin:0 0 16px;overflow-wrap:anywhere}.title-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin:5px;float:right}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e}(),_N=w(69114);function bN(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kN(e){return e.replace(/\n/g,"
    ")}var wN=function(){return m(function e(){g(this,e)},[{key:"getHtmlString",value:function(){return"<".concat(this.TAG,' style="').concat(this.STYLES.join(";"),'">').concat(bN(this.content),"")}}])}(),SN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="ADDITION",n.TAG="ins",n.STYLES=["background: #d4fcbc","text-decoration: none"],n.content=e,n}return _(t,e),m(t)}(wN),EN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="NO_CHANGE",n.TAG="span",n.STYLES=[],n.content=e,n}return _(t,e),m(t)}(wN),TN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="REMOVAL",n.TAG="del",n.STYLES=["background: #fbb"],n.content=e,n}return _(t,e),m(t)}(wN),DN=function(){return m(function e(t,n){g(this,e),this.changes=[],this.outdatedContent=t,this.updatedContent=n;var i=new _N.diff_match_patch,r=i.diff_main(t,n);i.diff_cleanupSemantic(r);var s,a=M(r);try{for(a.s();!(s=a.n()).done;){var o=s.value;this.changes.push(-1===o[0]?new TN(o[1]):1===o[0]?new SN(o[1]):new EN(o[1]))}}catch(u){a.e(u)}finally{a.f()}},[{key:"getHtmlDiffString",value:function(){var e,t="",n=M(this.changes);try{for(n.s();!(e=n.n()).done;){t+=e.value.getHtmlString()}}catch(i){n.e(i)}finally{n.f()}return kN(t)}},{key:"getHtmlUpdatedString",value:function(){return kN(bN(this.updatedContent))}}])}();function xN(e,t){if(1&e){var n=xo();ko(0,"mat-slide-toggle",11),Ao("change",function(){return ln(n),Fo().handleChangeShowDiff()}),au(1," Show Difference "),wo()}2&e&&_o("checked",Fo().showDiff)}function CN(e,t){1&e&&So(0,"div",13),2&e&&_o("innerHTML",Fo(2).diffHtml,_s)}function MN(e,t){1&e&&So(0,"div",13),2&e&&_o("innerHTML",Fo(2).updatedHtml,_s)}function LN(e,t){if(1&e&&(ko(0,"div",10),go(1,CN,1,1,"div",12),go(2,MN,1,1,"div",12),wo()),2&e){var n=Fo();Ns(1),_o("ngIf",n.showDiff),Ns(1),_o("ngIf",!n.showDiff)}}var AN=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isOnPreview=!1,this.isReady=!1,this.showDiff=!0,this.diffHtml=this.sanitizer.bypassSecurityTrustHtml(n.getHtmlDiffString()),this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(n.getHtmlUpdatedString()),this.isReady=!0},[{key:"close",value:function(){this.dialogRef.close()}},{key:"handleChangeShowDiff",value:function(){this.showDiff=!this.showDiff}},{key:"handleTabChange",value:function(e){this.isOnPreview=1===e.index}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh),yo(Fj),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-conflict-dialog"]],decls:16,vars:4,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["style","display: inline-block; margin-left: 50px","color","primary",3,"checked","change",4,"ngIf"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"full-width"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview Updated Content"],[1,"tab-content"],["color","primary",2,"display","inline-block","margin-left","50px",3,"checked","change"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),go(3,xN,2,1,"mat-slide-toggle",2),ko(4,"button",3),Ao("click",function(){return t.close()}),ko(5,"mat-icon"),au(6,"close"),wo(),wo(),wo(),ko(7,"div",4),ko(8,"div",5),ko(9,"mat-tab-group",6),Ao("selectedTabChange",function(e){return t.handleTabChange(e)}),ko(10,"mat-tab",7),go(11,LN,3,2,"div",8),wo(),ko(12,"mat-tab",9),ko(13,"div",10),ko(14,"markdown"),au(15),wo(),wo(),wo(),wo(),wo(),wo()),2&e&&(Ns(2),ou("The content you are editing has changed"),Ns(1),_o("ngIf",!t.isOnPreview),Ns(8),_o("ngIf",t.isReady),Ns(4),ou(t.data.updatedContent))},directives:[eA,Od,yM,bL,tA,_P,lP,fk,XI],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.full-width[_ngcontent-%COMP%]{min-width:80vh;width:100%}"]}),e}(),ON=function(e){function t(){var e;return g(this,t),e=v(this,t,["Invalid link!"]),Object.setPrototypeOf(y(e),t.prototype),e}return _(t,e),m(t)}(b(Error)),IN=function(){var e=function(){return m(function e(t){g(this,e),this.errorHandlingService=t},[{key:"onClick",value:function(e){var t=e.target;t instanceof HTMLAnchorElement&&t.href.startsWith(t.baseURI)&&(this.errorHandlingService.handleError(new ON),e.preventDefault(),e.stopPropagation())}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hF))},e.\u0275dir=Et({type:e,selectors:[["","disableInternalLink",""]],hostBindings:function(e,t){1&e&&Ao("click",function(e){return t.onClick(e)})}}),e}(),RN=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;g(this,e),this.historyArray=new Array(t),this.firstEntryIndex=0,this.lastEntryIndex=-1,this.currIndex=-1,this.getState=n,this.isSaved=!1,this.saveRunning=!1,this.intervalTime=i},[{key:"updateBeforeChange",value:function(e){if(-1===this.currIndex)return this.addEntry(null!=e?e:this.getState(),!1);this.createDelayedSave()}},{key:"createDelayedSave",value:function(){var e=this;this.saveRunning||(this.isSaved=!1,this.saveRunning=!0,this.timeout=setTimeout(function(){e.addEntry(e.getState(),!!e.intervalTime)},this.intervalTime))}},{key:"addEntry",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isSaved=t;var n=this.incrementIndex(this.currIndex);n===this.firstEntryIndex&&-1!==this.currIndex&&(this.firstEntryIndex=this.incrementIndex(this.firstEntryIndex)),this.lastEntryIndex=n,this.currIndex=n,this.historyArray[this.currIndex]=e,this.saveRunning=!1}},{key:"incrementIndex",value:function(e){return(e+1)%this.historyArray.length}},{key:"decrementIndex",value:function(e){return(e-1+this.historyArray.length)%this.historyArray.length}},{key:"forceSave",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(null!=e?e:this.getState(),n),this.isSaved=n}},{key:"wrapSave",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(this.getState(),!1),e(),this.addEntry(this.getState(),!0)}},{key:"undo",value:function(){return this.forceSave(void 0,!0),this.currIndex===this.firstEntryIndex||-1===this.currIndex?null:(this.currIndex=this.decrementIndex(this.currIndex),this.historyArray[this.currIndex])}},{key:"redo",value:function(){return this.forceSave(void 0,!0),this.currIndex===this.lastEntryIndex?null:(this.currIndex=this.incrementIndex(this.currIndex),this.historyArray[this.currIndex])}}],[{key:"isUndo",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&"KeyZ"===e.code&&!e.shiftKey:e.ctrlKey&&"KeyZ"===e.code&&!e.shiftKey}},{key:"isRedo",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&e.shiftKey&&"KeyZ"===e.code:e.ctrlKey&&e.shiftKey&&"KeyZ"===e.code||e.ctrlKey&&"KeyY"===e.code}}])}(),PN=["mp4","mov"],FN=["gif","jpeg","jpg","png","docx","gz","log","pdf","pptx","txt","xlsx","zip"].concat(PN),YN="We don't support that file type. Try again with "+FN.join(", ")+".",jN=function(e,t){return"Oops, ".concat(e," is too big. Keep it under ").concat(t,"MiB.")},qN=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t},[{key:"uploadFile",value:function(e,t){var n,i=this;n=e instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(e)):e;var r=this.getFileExtension(t);if(FN.includes(r.toLowerCase())){n=n.split(",")[1];var s=ZP(),a=function(){return i.githubService.uploadFile("".concat(s,".").concat(r),n)};return a().pipe(Ig(function(e){return 404!==e.status?lb(e):Oh(!1)}),ge(function(e){return e?Oh(e):i.githubService.createBranch().pipe(ge(a))}))}return lb(YN)}},{key:"getFileExtension",value:function(e){return e.split(".").pop()}},{key:"isVideoFile",value:function(e){var t=this.getFileExtension(e);return PN.includes(t.toLowerCase())}},{key:"isSupportedFileType",value:function(e){var t=this.getFileExtension(e);return FN.includes(t.toLowerCase())}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),NN=["gif","jpeg","jpg","png"];function HN(e,t,n,i){var r=i.nativeElement.selectionEnd,s="[Uploading ".concat(e,"...]"),a=n.value.indexOf(s),o=a+s.length,u=a+t.length,l=r>a-1&&r<=o?u:r ",multiline:!0,surroundWithNewlines:!0},code:{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"},link:{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},image:{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},"unordered-list":{prefix:"- ",multiline:!0,unorderedList:!0},"ordered-list":{prefix:"1. ",multiline:!0,orderedList:!0},"task-list":{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0},mention:{prefix:"@",prefixSpace:!0},ref:{prefix:"#",prefixSpace:!0},strikethrough:{prefix:"~~",suffix:"~~",trimFirst:!0}},$N=function(e){function t(){var e;g(this,t);var n=function(t){var n=ZN.get(e);!n||(t.preventDefault(),SH(e,n))};return(e=v(this,t)).addEventListener("keydown",WN(n)),e.addEventListener("click",n),e}return _(t,e),m(t,[{key:"connectedCallback",value:function(){this.hasAttribute("role")||this.setAttribute("role","button")}},{key:"click",value:function(){var e=ZN.get(this);!e||SH(this,e)}}])}(b(HTMLElement)),KN=function(e){function t(){var e;return g(this,t),e=v(this,t,arguments),BN.add(y(e)),e}return _(t,e),m(t,[{key:"connectedCallback",value:function(){var e=parseInt(this.getAttribute("level")||"3",10);zN(this,BN,"m",UN).call(this,e)}},{key:"attributeChangedCallback",value:function(e,t,n){if("level"===e){var i=parseInt(n||"3",10);zN(this,BN,"m",UN).call(this,i)}}}],[{key:"observedAttributes",get:function(){return["level"]}}])}($N);BN=new WeakSet,UN=function(e){if(!(e<1||e>6)){var t="".concat("#".repeat(e)," ");ZN.set(this,{prefix:t})}},window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=KN,window.customElements.define("md-header",KN));var JN=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"**",suffix:"**",trimFirst:!0})}}])}($N);window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=JN,window.customElements.define("md-bold",JN));var XN=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"_",suffix:"_",trimFirst:!0})}}])}($N);window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=XN,window.customElements.define("md-italic",XN));var eH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"> ",multiline:!0,surroundWithNewlines:!0})}}])}($N);window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=eH,window.customElements.define("md-quote",eH));var tH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"})}}])}($N);window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=tH,window.customElements.define("md-code",tH));var nH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}])}($N);window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=nH,window.customElements.define("md-link",nH));var iH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}])}($N);window.customElements.get("md-image")||(window.MarkdownImageButtonElement=iH,window.customElements.define("md-image",iH));var rH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"- ",multiline:!0,unorderedList:!0})}}])}($N);window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=rH,window.customElements.define("md-unordered-list",rH));var sH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"1. ",multiline:!0,orderedList:!0})}}])}($N);window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=sH,window.customElements.define("md-ordered-list",sH));var aH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0})}}])}($N);window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=aH,window.customElements.define("md-task-list",aH));var oH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"@",prefixSpace:!0})}}])}($N);window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=oH,window.customElements.define("md-mention",oH));var uH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"#",prefixSpace:!0})}}])}($N);window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=uH,window.customElements.define("md-ref",uH));var lH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"~~",suffix:"~~",trimFirst:!0})}}])}($N);function cH(e){var t=e.target,n=e.currentTarget;if(t instanceof Element){var i=t.closest("[data-md-button]");if(i&&i.closest("markdown-toolbar")===n){var r=i.getAttribute("data-md-button"),s=QN[r];!s||(e.preventDefault(),SH(t,s))}}}function dH(e){e.addEventListener("keydown",mH),e.setAttribute("tabindex","0"),e.addEventListener("focus",fH,{once:!0})}function hH(e){e.removeEventListener("keydown",mH),e.removeAttribute("tabindex"),e.removeEventListener("focus",fH)}window.customElements.get("md-strikethrough")||(window.MarkdownStrikethroughButtonElement=lH,window.customElements.define("md-strikethrough",lH));var pH=function(){var e=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.hasAttribute("data-no-focus")||dH(this),this.addEventListener("keydown",WN(cH)),this.addEventListener("click",cH)}},{key:"attributeChangedCallback",value:function(e,t,n){"data-no-focus"===e&&(null===n?dH(this):hH(this))}},{key:"disconnectedCallback",value:function(){hH(this)}},{key:"field",get:function(){var e=this.getAttribute("for");if(!e)return null;var t,n="getRootNode"in this?this.getRootNode():document;return(n instanceof Document||n instanceof ShadowRoot)&&(t=n.getElementById(e)),t instanceof HTMLTextAreaElement?t:null}}])}(b(HTMLElement));return e.observedAttributes=["data-no-focus"],e}();function fH(e){var t=e.target;if(t instanceof Element){t.removeAttribute("tabindex");var n,i="0",r=M(GN(t));try{for(r.s();!(n=r.n()).done;){var s=n.value;s.setAttribute("tabindex",i),"0"===i&&(s.focus(),i="-1")}}catch(a){r.e(a)}finally{r.f()}}}function mH(e){var t=e.key;if("ArrowRight"===t||"ArrowLeft"===t||"Home"===t||"End"===t){var n=e.currentTarget;if(n instanceof HTMLElement){var i=GN(n),r=i.indexOf(e.target),s=i.length;if(-1!==r){var a=0;"ArrowLeft"===t&&(a=r-1),"ArrowRight"===t&&(a=r+1),"End"===t&&(a=s-1),a<0&&(a=s-1),a>s-1&&(a=0);for(var o=0;o1}function vH(e,t){return Array(t+1).join(e)}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=pH,window.customElements.define("markdown-toolbar",pH));var yH=null;function _H(e){var t,n,i=e.value.slice(0,e.selectionStart),r=e.value.slice(e.selectionEnd),s=i.match(/\n*$/),a=r.match(/^\n*/),o=s?s[0].length:0,u=a?a[0].length:0;return i.match(/\S/)&&o<2&&(t=vH("\n",2-o)),r.match(/\S/)&&u<2&&(n=vH("\n",2-u)),null==t&&(t=""),null==n&&(n=""),{newlinesToAppend:t,newlinesToPrepend:n}}function bH(e){var t=e.split("\n"),n=/^\d+\.\s+/,i=t.every(function(e){return n.test(e)}),r=t;return i&&(r=t.map(function(e){return e.replace(n,"")})),{text:r.join("\n"),processed:i}}function kH(e){var t=e.split("\n"),n=t.every(function(e){return e.startsWith("- ")}),i=t;return n&&(i=t.map(function(e){return e.slice("- ".length,e.length)})),{text:i.join("\n"),processed:n}}function wH(e,t){return t?"- ":"".concat(e+1,". ")}function SH(e,t){var n=e.closest("markdown-toolbar");if(n instanceof pH){var i=Object.assign(Object.assign({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),t),r=n.field;r&&(r.focus(),function(e,t){var n,i=e.value.slice(e.selectionStart,e.selectionEnd);n=t.orderedList||t.unorderedList?function(e,t){var n=e.selectionStart===e.selectionEnd,i=e.selectionStart,r=e.selectionEnd;!function(e){for(var t=e.value.split("\n"),n=0,i=0;i=n&&e.selectionStart=n&&e.selectionEnd0?"".concat(r,"\n"):n,f=gH(h)&&s.length>0?"\n".concat(s):i;if(o){var m=e.value[e.selectionStart-1];0!==e.selectionStart&&null!=m&&!m.match(/\s/)&&(p=" ".concat(p))}h=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){for(var n=t;e[n]&&null!=e[n-1]&&!e[n-1].match(/\s/);)n--;return n}(e.value,e.selectionStart),e.selectionEnd=function(e,t,n){for(var i=t,r=n?/\n/:/\s/;e[i]&&!e[i].match(r);)i++;return i}(e.value,e.selectionEnd,i);else{var r=e.selectionStart-t.length,s=e.selectionEnd+n.length,a=e.value.slice(r,e.selectionStart)===t,o=e.value.slice(e.selectionEnd,s)===n;a&&o&&(e.selectionStart=r,e.selectionEnd=s)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,p,f,t.multiline);var g=e.selectionStart,v=e.selectionEnd,y=a.length>0&&f.indexOf(a)>-1&&h.length>0;if(l){var _=_H(e);p=_.newlinesToAppend+n,f+=_.newlinesToPrepend}if(h.startsWith(p)&&h.endsWith(f)){var b=h.slice(p.length,h.length-f.length);if(c===d){var k=c-p.length;k=Math.max(k,g),g=v=k=Math.min(k,g+b.length)}else v=g+b.length;return{text:b,selectionStart:g,selectionEnd:v}}if(y)return u.length>0&&h.match(u)?{text:p+(f=f.replace(a,h)),selectionStart:g=v=g+p.length,selectionEnd:v}:{text:p+h+f,selectionStart:g=g+p.length+h.length+f.indexOf(a),selectionEnd:v=g+a.length};var w=p+h+f;g=c+p.length,v=d+p.length;var S=h.match(/^\s*|\s*$/g);if(t.trimFirst&&S){var E=S[0]||"",T=S[1]||"";w=E+p+h.trim()+f+T,g+=E.length,v-=T.length}return{text:w,selectionStart:g,selectionEnd:v}}(e,t),function(e,t){var n=t.text,i=t.selectionStart,r=t.selectionEnd,s=e.selectionStart,a=e.value.slice(0,s),o=e.value.slice(e.selectionEnd);if(null===yH||!0===yH){e.contentEditable="true";try{yH=document.execCommand("insertText",!1,n)}catch(u){yH=!1}e.contentEditable="false"}if(yH&&!e.value.slice(0,e.selectionStart).endsWith(n)&&(yH=!1),!yH){try{document.execCommand("ms-beginUndoUnit")}catch(u){}e.value=a+n+o;try{document.execCommand("ms-endUndoUnit")}catch(u){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=i&&null!=r?e.setSelectionRange(i,r):e.setSelectionRange(s,e.selectionEnd)}(e,n)}(r,i))}}var EH=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-markdown-toolbar"]],inputs:{forTextAreaId:"forTextAreaId"},decls:42,vars:1,consts:[["matTooltip","Add bold text","mat-icon-button","","color","accent"],["matTooltip","Add italic text","mat-icon-button","","color","accent"],["matTooltip","Add heading text","mat-icon-button","","color","accent"],["matTooltip","Add a quote","mat-icon-button","","color","accent"],["matTooltip","Add code","mat-icon-button","","color","accent"],["matTooltip","Add a link","mat-icon-button","","color","accent"],["matTooltip","Add a image via link","mat-icon-button","","color","accent"],["matTooltip","Add a bulleted list","mat-icon-button","","color","accent"],["matTooltip","Add a numbered list","mat-icon-button","","color","accent"],["matTooltip","Add a task list","mat-icon-button","","color","accent"]],template:function(e,t){1&e&&(ko(0,"markdown-toolbar"),ko(1,"md-bold"),ko(2,"button",0),ko(3,"mat-icon"),au(4,"format_bold"),wo(),wo(),wo(),ko(5,"md-italic"),ko(6,"button",1),ko(7,"mat-icon"),au(8,"format_italic"),wo(),wo(),wo(),ko(9,"md-header"),ko(10,"button",2),ko(11,"mat-icon"),au(12,"title"),wo(),wo(),wo(),ko(13,"md-quote"),ko(14,"button",3),ko(15,"mat-icon"),au(16,"format_quote"),wo(),wo(),wo(),ko(17,"md-code"),ko(18,"button",4),ko(19,"mat-icon"),au(20,"code"),wo(),wo(),wo(),ko(21,"md-link"),ko(22,"button",5),ko(23,"mat-icon"),au(24,"link"),wo(),wo(),wo(),ko(25,"md-image"),ko(26,"button",6),ko(27,"mat-icon"),au(28,"image"),wo(),wo(),wo(),ko(29,"md-unordered-list"),ko(30,"button",7),ko(31,"mat-icon"),au(32,"format_list_bulleted"),wo(),wo(),wo(),ko(33,"md-ordered-list"),ko(34,"button",8),ko(35,"mat-icon"),au(36,"format_list_numbered"),wo(),wo(),wo(),ko(37,"md-task-list"),ko(38,"md-header"),ko(39,"button",9),ko(40,"mat-icon"),au(41,"task"),wo(),wo(),wo(),wo(),wo()),2&e&&fo("for",t.forTextAreaId)},directives:[yM,XO,bL],styles:[""]}),e}(),TH=["dropArea"],DH=["commentTextArea"],xH=["markdownArea"];function CH(e,t){1&e&&(ko(0,"mat-error"),au(1," Description required. "),wo())}function MH(e,t){if(1&e&&(ko(0,"mat-error"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" Description cannot exceed ",n.maxLength," characters. ")}}function LH(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.maxLength-(null==n.commentField.value?null:n.commentField.value.length)," character(s) remaining. ")}}function AH(e,t){1&e&&(ko(0,"span"),au(1," Attach files by dragging & dropping or select them by clicking here. "),wo())}function OH(e,t){if(1&e&&(ko(0,"span",17),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.uploadErrorMessage," ")}}function IH(e,t){1&e&&So(0,"markdown",18,19),2&e&&_o("data",Fo().commentField.value)}function RH(e,t){1&e&&(ko(0,"div"),au(1,"Nothing to preview."),wo())}var PH=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.uploadService=t,this.errorHandlingService=n,this.logger=i,this.SUPPORTED_FILE_TYPES=FN,this.placeholderText="No details provided.",this.isFormPendingChange=new jl,this.submitButtonTextChange=new jl,this.dragActiveCounter=0,this.maxLength=4e4},[{key:"formatFileUploadingButtonText",value:function(e){return e+" (Waiting for File Upload to finish...)"}},{key:"ngOnInit",value:function(){var e=this;if(void 0!==this.initialDescription&&this.commentField.setValue(this.initialDescription),void 0===this.commentField||void 0===this.commentForm||void 0===this.id)throw new Error("Comment Editor's compulsory properties are not defined.");this.initialSubmitButtonText=this.submitButtonText,this.commentField.setValidators([Hk.maxLength(this.maxLength)]),this.history=new RN(75,function(){return{text:e.commentTextArea.nativeElement.value,selectStart:e.commentTextArea.nativeElement.selectionStart,selectEnd:e.commentTextArea.nativeElement.selectionEnd}},500)}},{key:"onKeyPress",value:function(e){var t=this;if(RN.isUndo(e))return e.preventDefault(),void this.undo();if(RN.isRedo(e))return this.redo(),void e.preventDefault();if(this.isControlKeyPressed(e)&&!e.shiftKey)switch(e.code){case"KeyB":e.preventDefault(),this.history.wrapSave(function(){return t.insertOrRemoveCharsFromHighlightedText("**")});break;case"KeyI":e.preventDefault(),this.history.wrapSave(function(){return t.insertOrRemoveCharsFromHighlightedText("_")});break;default:return}}},{key:"onDragEnter",value:function(e){e.preventDefault(),e.stopPropagation(),this.dragActiveCounter++,this.dropArea.nativeElement.classList.add(this.commentField.disabled?"highlight-drag-box-disabled":"highlight-drag-box")}},{key:"disableCaretMovement",value:function(e){e.preventDefault()}},{key:"enableFileDrop",value:function(e){e.preventDefault()}},{key:"onDrop",value:function(e){var t=this;if(e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle(),!this.commentField.disabled){var n=e.dataTransfer.files;if(!(void 0===n||n.length<=0)){this.commentTextArea.nativeElement.focus();for(var i=function(e){setTimeout(function(){t.logger.info("CommentEditorComponent: File ".concat(e+1," of ").concat(n.length,". Begin uploading ").concat(n[e].name,".")),t.readAndUploadFile(n[e])},250*e)},r=0;r0&&(this.readAndUploadFile(n[0]),t.value="")}},{key:"updateParentFormsSubmittability",value:function(e,t){this.isFormPendingChange.emit(e),this.submitButtonTextChange.emit(t)}},{key:"readAndUploadFile",value:function(e){var t=this;this.uploadErrorMessage=null;var n=new FileReader,i=e.name,r=function(e,t,n){var i,r=t.value,s=e.split(".").pop();i=NN.includes(s.toLowerCase())?"![Uploading ".concat(e,"...]\n"):"[Uploading ".concat(e,"...]\n");var a=n.nativeElement.selectionEnd,o=r.indexOf("\n",a),u=a+i.length;if(-1===o)t.setValue(""===t.value?i:"".concat(t.value,"\n").concat(i));else{var l=r.slice(0,o+1),c=r.slice(o);t.setValue("".concat(l+i+c))}return n.nativeElement.setSelectionRange(u,u),i}(i,this.commentField,this.commentTextArea);if(e.size>=11534336)this.handleUploadError(jN("file",10),r);else if(this.uploadService.isVideoFile(i)&&e.size>=6291456)this.handleUploadError(jN("video",5),r);else if(this.uploadService.isSupportedFileType(i)){this.lastUploadingTime=(new Date).getTime().toString();var s=this.lastUploadingTime;this.updateParentFormsSubmittability(!0,this.formatFileUploadingButtonText(this.initialSubmitButtonText)),n.onload=function(){t.uploadService.uploadFile(n.result,i).subscribe(function(e){t.uploadService.isVideoFile(i)?function(e,t,n,i){HN(e,'
    video:').concat(t,"
    "),n,i)}(i,e.data.content.download_url,t.commentField,t.commentTextArea):function(e,t,n,i){HN(e,"[".concat(e,"](").concat(t,")"),n,i)}(i,e.data.content.download_url,t.commentField,t.commentTextArea),t.history.forceSave()},function(e){t.handleUploadError(e,r),s===t.lastUploadingTime&&t.updateParentFormsSubmittability(!1,t.initialSubmitButtonText)},function(){s===t.lastUploadingTime&&t.updateParentFormsSubmittability(!1,t.initialSubmitButtonText)})},n.readAsDataURL(e)}else this.handleUploadError(YN,r)}},{key:"onPaste",value:function(e){this.history.forceSave(null,!0,!1);var t,n=null,i=M(e.clipboardData.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(0===r.type.indexOf("image")){n=r.getAsFile(),e.stopPropagation();break}}}catch(s){i.e(s)}finally{i.f()}n&&this.readAndUploadFile(n)}},{key:"handleBeforeInputChange",value:function(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.updateBeforeChange()}}},{key:"handleInputChange",value:function(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.createDelayedSave()}}},{key:"undo",value:function(){var e=this.history.undo();null!==e&&(this.commentField.setValue(e.text),this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}},{key:"redo",value:function(){var e=this.history.redo();null!==e&&(this.commentTextArea.nativeElement.value=e.text,this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}},{key:"isInErrorState",get:function(){return!!this.uploadErrorMessage}},{key:"handleUploadError",value:function(e,t){e instanceof tp?(this.errorHandlingService.handleError(e),this.uploadErrorMessage="Something went wrong while uploading your file. Please try again."):this.uploadErrorMessage=e,this.commentField.setValue(this.commentField.value.replace(t,"")),this.history.forceSave()}},{key:"removeHighlightBorderStyle",value:function(){this.dragActiveCounter--,0===this.dragActiveCounter&&(this.dropArea.nativeElement.classList.remove("highlight-drag-box"),this.dropArea.nativeElement.classList.remove("highlight-drag-box-disabled"))}},{key:"isControlKeyPressed",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey:e.ctrlKey}},{key:"insertOrRemoveCharsFromHighlightedText",value:function(e){var t=this.commentTextArea.nativeElement.selectionStart,n=this.commentTextArea.nativeElement.selectionEnd,i=this.commentTextArea.nativeElement.value,r=i.slice(t,n),s=r.trim(),a=r.trimRight().length-s.length,o=r.trimLeft().length-s.length;this.hasCharsBeforeAndAfterHighlight(t,n,i,e)?this.removeCharsBeforeAndAfterHighlightedText(t,n,i,r,e):this.hasCharsInTrimmedHighlight(r,e)?this.removeCharsFromHighlightedText(t,n,i,s,e,a,o):this.insertCharsToHighlightedText(t,n,i,s,e,a,o)}},{key:"hasCharsBeforeAndAfterHighlight",value:function(e,t,n,i){var r=n.slice(e-i.length,e)===i,s=n.slice(t,t+i.length)===i;return r&&s}},{key:"hasCharsInTrimmedHighlight",value:function(e,t){var n=e.trim(),i=n.slice(0,t.length)===t,r=n.slice(-t.length)===t;return i&&r}},{key:"removeCharsBeforeAndAfterHighlightedText",value:function(e,t,n,i,r){this.commentField.setValue(n.slice(0,e-r.length)+i+n.slice(t+r.length)),this.commentTextArea.nativeElement.setSelectionRange(e-r.length,t-r.length)}},{key:"removeCharsFromHighlightedText",value:function(e,t,n,i,r,s,a){this.commentField.setValue(n.slice(0,e)+" ".repeat(s)+i.slice(r.length,-r.length)+" ".repeat(a)+n.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+s,t-2*r.length-a)}},{key:"insertCharsToHighlightedText",value:function(e,t,n,i,r,s,a){this.commentField.setValue(n.slice(0,e)+" ".repeat(s)+r+i+r+" ".repeat(a)+n.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+r.length+s,t+r.length-a)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(qN),yo(hF),yo(cF))},e.\u0275cmp=yt({type:e,selectors:[["app-comment-editor"]],viewQuery:function(e,t){var n;(1&e&&(Kl(TH,7),Kl(DH,7),Kl(xH,5)),2&e)&&($l(n=Xl())&&(t.dropArea=n.first),$l(n=Xl())&&(t.commentTextArea=n.first),$l(n=Xl())&&(t.markdownArea=n.first))},inputs:{commentField:"commentField",commentForm:"commentForm",id:"id",initialDescription:"initialDescription",isFormPending:"isFormPending",submitButtonText:"submitButtonText"},outputs:{isFormPendingChange:"isFormPendingChange",submitButtonTextChange:"submitButtonTextChange"},decls:23,vars:15,consts:[[2,"min-height","350px",3,"formGroup"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Write"],[1,"tab-content",3,"dragleave","dragenter","drop","dragover"],["dropArea",""],[3,"forTextAreaId"],["appearance","outline",2,"width","100%"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","10","cdkAutosizeMaxRows","20",1,"text-input-area",3,"id","formControlName","placeholder","maxlength","paste","keydown","beforeinput","input","dragover"],["commentTextArea","","autosize","cdkTextareaAutosize"],[4,"ngIf"],[1,"drag-and-drop"],["class","error",4,"ngIf"],["type","file",1,"file",3,"disabled","accept","change"],["fileInput",""],["label","Preview"],[1,"tab-content",2,"min-height","228px"],["disableInternalLink","",3,"data",4,"ngIf"],[1,"error"],["disableInternalLink","",3,"data"],["markdownArea",""]],template:function(e,t){if(1&e){var n=xo();ko(0,"form",0),ko(1,"mat-tab-group",1),Ao("selectedTabChange",function(){ln(n);var e=vo(9);return t.commentField.setValue(e.value)}),ko(2,"mat-tab",2),ko(3,"div",3,4),Ao("dragleave",function(e){return t.onDragExit(e)})("dragenter",function(e){return t.onDragEnter(e)})("drop",function(e){return t.onDrop(e)})("dragover",function(e){return t.enableFileDrop(e)}),So(5,"app-markdown-toolbar",5),ko(6,"mat-form-field",6),So(7,"mat-label"),ko(8,"textarea",7,8),Ao("paste",function(e){return t.onPaste(e)})("keydown",function(e){return t.onKeyPress(e)})("beforeinput",function(e){return t.handleBeforeInputChange(e)})("input",function(e){return t.handleInputChange(e)})("dragover",function(e){return t.disableCaretMovement(e)}),wo(),go(11,CH,2,0,"mat-error",9),go(12,MH,2,1,"mat-error",9),go(13,LH,2,1,"mat-hint",9),ko(14,"div",10),go(15,AH,2,0,"span",9),go(16,OH,2,1,"span",11),ko(17,"input",12,13),Ao("change",function(e){ln(n);var i=vo(18);return t.onFileInputUpload(e,i)}),wo(),wo(),wo(),wo(),wo(),ko(19,"mat-tab",14),ko(20,"div",15),go(21,IH,2,1,"markdown",16),go(22,RH,2,0,"div",9),wo(),wo(),wo(),wo()}2&e&&(_o("formGroup",t.commentForm),Ns(5),_o("forTextAreaId",t.id),Ns(3),No("id",t.id),No("formControlName",t.id),No("placeholder",t.placeholderText),No("maxlength",t.maxLength),Ns(3),_o("ngIf",t.commentField.errors&&t.commentField.errors.required&&t.commentField.touched),Ns(1),_o("ngIf",t.commentField.errors&&t.commentField.errors.maxLength),Ns(1),_o("ngIf",(null==t.commentField.value?null:t.commentField.value.length)>=t.maxLength-50),Ns(2),_o("ngIf",!t.isInErrorState),Ns(1),_o("ngIf",t.isInErrorState),Ns(1),_o("disabled",t.commentField.disabled)("accept",t.SUPPORTED_FILE_TYPES),Ns(4),_o("ngIf",""!==t.commentField.value),Ns(1),_o("ngIf",""===t.commentField.value))},directives:[zw,hw,$w,_P,lP,EH,JC,zC,IL,xL,Pk,dw,Jw,nS,Od,jC,UC,fk,IN],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px}.highlight-drag-box[_ngcontent-%COMP%]{border-style:dashed;border-color:#98fb98;border-width:2px}.highlight-drag-box-disabled[_ngcontent-%COMP%]{border-style:dashed;border-color:#fb2a5c;border-width:2px}.drag-and-drop[_ngcontent-%COMP%]{color:#586069;font-size:13px;line-height:16px;position:relative;border-top-style:dashed;border-top-color:#3f51b5;border-top-width:2px;margin-top:5px;padding-top:5px}.error[_ngcontent-%COMP%]{color:#b22222}.file[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}"]}),e}(),FH=["loadingSpinnerContainer"];function YH(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){return ln(n),Fo().changeToEditMode()}),au(1," Edit "),wo()}}function jH(e,t){if(1&e&&(ko(0,"div",9),So(1,"markdown",10),wo()),2&e){var n=Fo();Ns(1),_o("data",n.issue.description)}}function qH(e,t){if(1&e){var n=xo();ko(0,"button",17),Ao("click",function(){return ln(n),Fo(2).viewChanges()}),au(1," View Updated Description "),wo()}2&e&&_o("disabled",Fo(2).isSavePending)}function NH(e,t){if(1&e&&(ko(0,"button",18),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.issueDescriptionForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function HH(e,t){if(1&e&&(ko(0,"button",19),ko(1,"mat-button-content"),au(2),Do(3,null,20),wo(),wo()),2&e){var n=Fo(2);_o("disabled",n.issueDescriptionForm.invalid||n.isSavePending),Ns(2),uu(" ",n.submitButtonText," ")}}function BH(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-comment-editor",11),Ao("isFormPendingChange",function(e){return ln(n),Fo().isSavePending=e})("submitButtonTextChange",function(e){return ln(n),Fo().submitButtonText=e}),wo(),ko(2,"div",12),go(3,qH,2,1,"button",13),ko(4,"button",14),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(5," Cancel "),wo(),go(6,NH,2,2,"button",15),go(7,HH,5,2,"button",16),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("id","description")("commentField",i.issueDescriptionForm.get("description"))("commentForm",i.issueDescriptionForm)("isFormPending",i.isSavePending)("submitButtonText",i.submitButtonText),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("disabled",i.isSavePending),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("ngIf",!i.conflict)}}var UH=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.dialog=r,this.phaseService=s,this.permissions=a,this.dialogService=o,this.loadingService=u,this.isSavePending=!1,this.issueUpdated=new jl,this.changeEditState=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"showSpinner",value:function(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}},{key:"hideSpinner",value:function(){this.loadingService.hideLoader(),this.isSavePending=!1}},{key:"ngOnInit",value:function(){this.issueDescriptionForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save",this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addTheme("warn").addCssClasses(["mat-progress-spinner"])}},{key:"changeToEditMode",value:function(){this.changeEditState.emit(!0),this.issueDescriptionForm.setValue({description:this.issue.description||""})}},{key:"updateDescription",value:function(e){var t=this;this.issueDescriptionForm.invalid||(this.showSpinner(),this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(e){return e.description===t.issue.description}),ge(function(e){return e||"Overwrite"===t.submitButtonText?t.issueService.updateIssue(t.getUpdatedIssue()):(t.conflict=new DN(t.issue.description,t.issueService.issues[t.issue.id].description),t.submitButtonText="Overwrite",t.viewChanges(),lb("The content you are editing has changed. Please verify the changes and try again."))})).subscribe(function(n){t.issueUpdated.emit(n),t.resetToDefault(),e.resetForm(),t.hideSpinner()},function(e){t.errorHandlingService.handleError(e),t.hideSpinner()}))}},{key:"viewChanges",value:function(){this.dialog.open(AN,{data:this.conflict,autoFocus:!1})}},{key:"resetToDefault",value:function(){this.submitButtonText="Save",this.conflict=void 0,this.changeEditState.emit(!1)}},{key:"cancelEditMode",value:function(){var e=this;this.issueService.getIssue(this.issue.id).subscribe(function(t){e.issueUpdated.emit(t),e.resetToDefault()})}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.issueDescriptionForm,"description","description",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);return e.description=yj.updateDescription(this.issueDescriptionForm.get("description").value),e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(KL),yo(Nj),yo(Yq),yo(lN),yo(sN))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-description"]],viewQuery:function(e,t){var n;(1&e&&Kl(FH,5,gl),2&e)&&($l(n=Xl())&&(t.loadingSpinnerContainer=n.first))},inputs:{issue:"issue",descriptionTitle:"descriptionTitle",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",changeEditState:"changeEditState"},features:[Du([sN])],decls:13,vars:6,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action additional-editor-style","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action","additional-editor-style",3,"disabled"],["loadingSpinnerContainer",""]],template:function(e,t){if(1&e){var n=xo();ko(0,"h3",0),au(1),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.updateDescription(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"span"),ko(7,"strong"),au(8," Tester "),wo(),au(9),wo(),go(10,YH,2,0,"button",5),wo(),go(11,jH,2,1,"div",6),go(12,BH,8,9,"div",7),wo(),wo()}2&e&&(Ns(1),ou(t.descriptionTitle),Ns(1),_o("formGroup",t.issueDescriptionForm),Ns(7),uu(" posted on ",t.issue.created_at,". "),Ns(1),_o("ngIf",t.permissions.isIssueDescriptionEditable()&&!t.isEditing),Ns(1),_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[zw,hw,$w,Od,yM,fk,IN,PH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e}();function zH(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){return ln(n),Fo().changeToEditMode()}),au(1,"Edit"),wo()}}function VH(e,t){if(1&e&&(ko(0,"div",9),So(1,"markdown",10),wo()),2&e){var n=Fo();Ns(1),_o("data",n.issue.teamResponse)}}function GH(e,t){if(1&e){var n=xo();ko(0,"button",17),Ao("click",function(){return ln(n),Fo(2).viewChanges()}),au(1," View Updated Response "),wo()}2&e&&_o("disabled",Fo(2).isSavePending)}function WH(e,t){if(1&e&&(ko(0,"button",18),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.responseForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function ZH(e,t){if(1&e&&(ko(0,"button",19),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.responseForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function QH(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-comment-editor",11),Ao("isFormPendingChange",function(e){return ln(n),Fo().isSavePending=e})("submitButtonTextChange",function(e){return ln(n),Fo().submitButtonText=e}),wo(),ko(2,"div",12),go(3,GH,2,1,"button",13),go(4,WH,2,2,"button",14),go(5,ZH,2,2,"button",15),ko(6,"button",16),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(7," Cancel "),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("id","description")("commentField",i.responseForm.get("description"))("commentForm",i.responseForm)("isFormPending",i.isSavePending)("submitButtonText",i.submitButtonText),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("ngIf",i.conflict),Ns(1),_o("ngIf",!i.conflict),Ns(1),_o("disabled",i.isSavePending)}}var $H=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.permissions=r,this.dialog=s,this.phaseService=a,this.dialogService=o,this.isSavePending=!1,this.issueUpdated=new jl,this.updateEditState=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"ngOnInit",value:function(){this.responseForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save"}},{key:"changeToEditMode",value:function(){this.updateEditState.emit(!0),this.responseForm.setValue({description:this.issue.teamResponse||""})}},{key:"updateResponse",value:function(e){var t=this;if(!this.responseForm.invalid){this.isSavePending=!0;var n=this.getUpdatedIssue(),i=Object.assign(Object.assign({},n.issueComment),{description:n.createGithubTeamResponse()});this.isSafeToUpdate().pipe(ge(function(e){return e||"Overwrite"===t.submitButtonText?t.issueService.updateIssueWithComment(n,i):t.isUpdatingDeletedResponse()?t.issueService.createTeamResponse(n):(t.conflict=new DN(t.issue.teamResponse,t.issueService.issues[t.issue.id].teamResponse),t.submitButtonText="Overwrite",t.viewChanges(),lb("The content you are editing has changed. Please verify the changes and try again."))}),Kg(function(){return t.isSavePending=!1})).subscribe(function(n){t.issueUpdated.emit(n),t.resetToDefault(),e.resetForm()},function(e){t.errorHandlingService.handleError(e)})}}},{key:"isSafeToUpdate",value:function(){var e=this;return this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(t){return t.teamResponse===e.issue.teamResponse}))}},{key:"isUpdatingDeletedResponse",value:function(){return this.issue.teamResponse&&!this.issueService.issues[this.issue.id].teamResponse}},{key:"canEditIssue",value:function(){return this.permissions.isTeamResponseEditable()}},{key:"resetToDefault",value:function(){this.submitButtonText="Save",this.conflict=void 0,this.updateEditState.emit(!1)}},{key:"viewChanges",value:function(){this.dialog.open(AN,{data:this.conflict,autoFocus:!1})}},{key:"cancelEditMode",value:function(){var e=this;this.issueService.getIssue(this.issue.id).subscribe(function(t){e.issueUpdated.emit(t),e.resetToDefault()})}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.responseForm,"teamResponse","description",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);return e.teamResponse=yj.updateTeamResponse(this.responseForm.get("description").value),e.status||(e.status=""===e.teamResponse?kj.Incomplete:kj.Done),e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Yq),yo(KL),yo(Nj),yo(lN))},e.\u0275cmp=yt({type:e,selectors:[["app-team-response"]],inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},decls:13,vars:4,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"]],template:function(e,t){if(1&e){var n=xo();ko(0,"h3",0),au(1,"Team's Response"),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.updateResponse(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"span"),ko(7,"strong"),au(8," Team "),wo(),au(9," responded. "),wo(),go(10,zH,2,0,"button",5),wo(),go(11,VH,2,1,"div",6),go(12,QH,8,9,"div",7),wo(),wo()}2&e&&(Ns(2),_o("formGroup",t.responseForm),Ns(8),_o("ngIf",t.canEditIssue()&&!t.isEditing),Ns(1),_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[zw,hw,$w,Od,yM,fk,IN,PH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}"]}),e}(),KH=(function(e){e.ID="id",e.TITLE="title",e.TEAM_ASSIGNED="teamAssigned",e.TYPE="type",e.SEVERITY="severity",e.RESPONSE="response",e.TESTER_DISAGREE="testerDisagree",e.ASSIGNEE="assignees",e.DUPLICATED_ISSUES="duplicatedIssues",e.TODO="Todo Remaining",e.ACTIONS="actions"}(KH||(KH={})),KH);function JH(e,t,n,i){var r=e.toLowerCase();return i.slice().filter(function(e){var i,s=M(t);try{for(s.s();!(i=s.n()).done;){var a=i.value;switch(a){case KH.ASSIGNEE:if(eB(e.assignees,r))return!0;break;case KH.DUPLICATED_ISSUES:if(tB(n,e.id,r))return!0;break;default:if(nB(e,a,r))return!0}}}catch(o){s.e(o)}finally{s.f()}return!1})}function XH(e,t){return-1!==e.indexOf(t)}function eB(e,t){return e.some(function(e){return XH(e.toLowerCase(),t)})}function tB(e,t,n){return function(e,t){return 0!==e.filter(function(e){return"#".concat(String(e.id)).includes(t)}).length}(e.issues$.getValue().filter(function(e){return e.duplicateOf===t}),n)}function nB(e,t,n){return XH(String(e[t]).toLowerCase(),n)}function iB(e,t){if(1&e){var n=xo();ko(0,"button",6),Ao("click",function(){return ln(n),Fo().openSelector()}),ko(1,"mat-icon",7),au(2," edit "),wo(),wo()}}function rB(e,t){if(1&e&&(ko(0,"mat-option",8),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),ou(n)}}function sB(e,t){1&e&&(ko(0,"p",9),au(1,"-"),wo())}function aB(e,t){if(1&e&&(ko(0,"mat-list-item",12),au(1),wo()),2&e){var n=t.$implicit;Ns(1),ou(n)}}function oB(e,t){if(1&e&&(ko(0,"mat-list",10),go(1,aB,2,1,"mat-list-item",11),wo()),2&e){var n=Fo();Ns(1),_o("ngForOf",n.issue.assignees)}}var uB=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.permissions=r,this.isInEditMode=!1,this.isEditable=!0,this.issueUpdated=new jl},[{key:"ngOnInit",value:function(){this.teamMembers=this.team.teamMembers.map(function(e){return e.loginId}),this.assignees=this.issue.assignees.map(function(e){return e})}},{key:"openSelector",value:function(){this.isInEditMode=!0,this.assigneeSelection.open()}},{key:"handleEditMode",value:function(e){e||(this.isInEditMode=!1)}},{key:"updateAssignee",value:function(){var e=this,t=this.issue.clone(this.phaseService.currentPhase),n=t.assignees;t.assignees=this.assignees,this.issueService.updateIssue(t).subscribe(function(t){e.issueUpdated.emit(t),e.issueService.getDuplicateIssuesFor(e.issue).pipe(Gg()).subscribe(function(t){t.forEach(function(t){var n=t.clone(e.phaseService.currentPhase);n.assignees=e.assignees,e.issueService.updateIssue(n)})})},function(t){e.errorHandlingService.handleError(t),e.assignees=n})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-assignee-component"]],viewQuery:function(e,t){var n;(1&e&&Kl(zO,7),2&e)&&($l(n=Xl())&&(t.assigneeSelection=n.first))},inputs:{issue:"issue",team:"team",isEditable:"isEditable"},outputs:{issueUpdated:"issueUpdated"},decls:9,vars:7,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"click",4,"ngIf"],["placeholder","-","multiple","",1,"no-arrow",3,"ngModel","openedChange","closed","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["style","padding-top: 0","dense","",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"value"],[2,"margin-top","5px"],["dense","",2,"padding-top","0"],["style","font-size: 1em",4,"ngFor","ngForOf"],[2,"font-size","1em"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"span",0),au(2," Assignees "),wo(),go(3,iB,3,0,"button",1),ko(4,"mat-select",2),Ao("openedChange",function(e){return t.handleEditMode(e)})("closed",function(){return t.updateAssignee()})("ngModelChange",function(e){return t.assignees=e}),So(5,"mat-select-trigger"),go(6,rB,2,2,"mat-option",3),wo(),go(7,sB,2,0,"p",4),go(8,oB,2,1,"mat-list",5),wo()),2&e&&(Ns(3),_o("ngIf",t.permissions.isIssueLabelsEditable()&&t.isEditable&&!t.issue.duplicateOf),Ns(1),Zo("display",t.isInEditMode?"block":"none"),_o("ngModel",t.assignees),Ns(2),_o("ngForOf",t.teamMembers),Ns(1),_o("ngIf",0===t.issue.assignees.length),Ns(1),_o("ngIf",t.issue.assignees.length>0))},directives:[Od,zO,dw,Uw,BO,Ld,yM,bL,Dx,tO,rO],styles:[".no-arrow .mat-select-arrow{visibility:hidden}mat-list-item div.mat-list-item-content{padding-left:0}\n"],encapsulation:2}),e}();function lB(e,t){if(1&e&&(ko(0,"div",9),So(1,"div",12),wo()),2&e){var n=Fo();Ns(1),_o("innerHTML",n.updatedHtml,_s)}}function cB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Type "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.type))),Ns(1),uu(" ",n.data.type||"-"," ")}}function dB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Severity "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.severity))),Ns(1),uu(" ",n.data.severity||"-"," ")}}function hB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Response "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.response))),Ns(1),uu(" ",n.data.response||"-"," ")}}function pB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),So(2,"app-assignee-component",15),wo()),2&e){var n=Fo();Ns(2),_o("issue",n.data)("team",n.data.teamAssigned)("isEditable",!1)}}function fB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"div"),ko(3,"span",13),au(4,"A Duplicate Of:"),wo(),ko(5,"p",16),au(6),Pl(7,"async"),wo(),wo(),wo()),2&e){var n=Fo();Ns(6),uu(" ","#"+n.data.duplicateOf+": "+Fl(7,1,n.issueService.getIssue(n.data.duplicateOf)).title," ")}}var mB=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isOnPreview=!1,this.isReady=!1,this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(kN(bN(n.teamResponse))),this.isReady=!0},[{key:"close",value:function(){this.dialogRef.close()}},{key:"handleTabChange",value:function(e){this.isOnPreview=1===e.index}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh),yo(Fj),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-conflict-dialog"]],decls:21,vars:8,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"column","left"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Updated Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview"],[1,"tab-content"],[1,"column","right"],[4,"ngIf"],[3,"innerHTML"],[1,"mat-title"],[3,"ngStyle"],[3,"issue","team","isEditable"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),ko(3,"button",2),Ao("click",function(){return t.close()}),ko(4,"mat-icon"),au(5,"close"),wo(),wo(),wo(),ko(6,"div",3),ko(7,"div",4),ko(8,"mat-tab-group",5),Ao("selectedTabChange",function(e){return t.handleTabChange(e)}),ko(9,"mat-tab",6),go(10,lB,2,1,"div",7),wo(),ko(11,"mat-tab",8),ko(12,"div",9),ko(13,"markdown"),au(14),wo(),wo(),wo(),wo(),wo(),ko(15,"div",10),go(16,cB,6,2,"div",11),go(17,dB,6,2,"div",11),go(18,hB,6,2,"div",11),go(19,pB,3,3,"div",11),go(20,fB,8,3,"div",11),wo(),wo()),2&e&&(Ns(2),ou("A new response was submitted by another user"),Ns(8),_o("ngIf",t.isReady),Ns(4),ou(t.data.teamResponse),Ns(2),_o("ngIf",t.data.type),Ns(1),_o("ngIf",t.data.severity),Ns(1),_o("ngIf",t.data.response),Ns(1),_o("ngIf",t.data.assignees),Ns(1),_o("ngIf",t.data.duplicateOf))},directives:[eA,yM,bL,tA,_P,lP,Od,fk,sA,qd,uB],pipes:[Ud],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.column.left[_ngcontent-%COMP%]{min-width:60vh;width:100%}.column.right[_ngcontent-%COMP%]{max-width:15%;min-width:20vh;width:100%}.column[_ngcontent-%COMP%]{padding:10px}"]}),e}();function gB(e,t){if(1&e){var n=xo();ko(0,"button",9),Ao("click",function(){ln(n);var e=Fo().$implicit;return Fo().openModalPopup(e)}),ko(1,"mat-icon",10),au(2,"info"),wo(),wo()}}var vB=function(){return{background:"transparent"}},yB=function(e){return{color:e}};function _B(e,t){if(1&e&&(ko(0,"div",5),ko(1,"mat-option",6),ko(2,"mat-icon",7),au(3,"stop"),wo(),ko(4,"span"),au(5),wo(),wo(),go(6,gB,3,0,"button",8),wo()),2&e){var n=t.$implicit,i=Fo();Ns(1),_o("value",n.labelValue)("ngStyle",Ll(5,vB)),Ns(1),_o("ngStyle",Al(6,yB,"#"+n.labelColor)),Ns(3),uu(" ",n.labelValue,""),Ns(1),_o("ngIf",i.hasLabelDefinition(n))}}function bB(e,t){if(1&e&&(ko(0,"mat-error"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.labelService.getLabelTitle(n.attributeName)," required. ")}}var kB=function(){var e=function(){return m(function e(t,n){g(this,e),this.labelService=t,this.dialogService=n},[{key:"ngOnInit",value:function(){this.selectedColor=this.labelService.getColorOfLabel(this.attributeName,this.initialValue),this.labelList=this.labelService.getLabelList(this.attributeName),this.dropdownControl=this.dropdownForm.get(this.attributeName)}},{key:"setSelectedLabelColor",value:function(e,t){this.selectedColor=this.labelService.getColorOfLabel(e,t)}},{key:"openModalPopup",value:function(e){this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelService.getLabelDefinition(e.labelValue,e.labelCategory))}},{key:"hasLabelDefinition",value:function(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}},{key:"dropdownTextColor",get:function(){return this.labelService.isDarkColor(this.selectedColor)?"white-text":"black-text"}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Fj),yo(lN))},e.\u0275cmp=yt({type:e,selectors:[["app-label-dropdown"]],inputs:{attributeName:"attributeName",initialValue:"initialValue",dropdownForm:"dropdownForm"},decls:7,vars:8,consts:[[3,"formGroup"],[2,"width","100%"],["required","","disableOptionCentering","",3,"ngClass","formControlName","placeholder","ngStyle","selectionChange"],["mat-menu-item","","class","labelLine",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",1,"labelLine"],[3,"value","ngStyle"],[3,"ngStyle"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(ko(0,"form",0),ko(1,"mat-form-field",1),ko(2,"mat-select",2),Ao("selectionChange",function(e){return t.setSelectedLabelColor(t.attributeName,e.value)}),ko(3,"mat-select-trigger"),au(4),wo(),go(5,_B,7,8,"div",3),wo(),go(6,bB,2,1,"mat-error",4),wo(),wo()),2&e&&(_o("formGroup",t.dropdownForm),Ns(2),No("formControlName",t.attributeName),No("placeholder",t.labelService.getLabelTitle(t.attributeName)),_o("ngClass",t.dropdownTextColor)("ngStyle",t.labelService.setLabelStyle(t.selectedColor,"inline-block")),Ns(2),uu(" ",t.dropdownControl.value," "),Ns(1),_o("ngForOf",t.labelList),Ns(1),_o("ngIf",t.dropdownControl.errors&&t.dropdownControl.errors.required&&t.dropdownControl.touched))},directives:[zw,hw,$w,JC,zO,eS,Cd,dw,Jw,qd,BO,Ld,Od,fO,Dx,bL,jC],styles:[".white-text .mat-select-value-text{color:#fff!important} .black-text .mat-select-value-text{color:#000!important}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 20%}"]}),e}();function wB(e,t){1&e&&(ko(0,"mat-icon",5),au(1,"cancel"),wo())}var SB=function(e){return[e]};function EB(e,t){if(1&e){var n=xo();ko(0,"mat-chip",2),Ao("removed",function(){var e=ln(n).$implicit;return Fo().removeDuplicateStatus(e)}),ko(1,"a",3),au(2),wo(),go(3,wB,2,0,"mat-icon",4),wo()}if(2&e){var i=t.$implicit,r=Fo();_o("matTooltip",i.title),Ns(1),_o("routerLink",Al(4,SB,"../"+i.id)),Ns(1),uu(" #",i.id," "),Ns(1),_o("ngIf",r.permissions.isTeamResponseEditable()||r.permissions.isTutorResponseEditable())}}var TB=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.permissions=r},[{key:"ngOnInit",value:function(){this.duplicatedIssues=this.issueService.getDuplicateIssuesFor(this.issue)}},{key:"removeDuplicateStatus",value:function(e){var t=this,n=this.getUpdatedIssueWithRemovedDuplicate(e);this.issueService.updateIssueWithComment(n,n.issueComment).subscribe(function(e){return t.issueService.updateLocalStore(e)},function(e){return t.errorHandlingService.handleError(e)})}},{key:"getUpdatedIssueWithRemovedDuplicate",value:function(e){var t=e.clone(this.phaseService.currentPhase);return t.duplicated=!1,t.duplicateOf=null,t.issueComment.description=t.createGithubTeamResponse(),t}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-duplicated-issues-component"]],inputs:{issue:"issue"},decls:6,vars:3,consts:[[1,"mat-title"],["style","cursor: pointer","matTooltipPosition","above",3,"matTooltip","removed",4,"ngFor","ngForOf"],["matTooltipPosition","above",2,"cursor","pointer",3,"matTooltip","removed"],[1,"no-underline","link-grey-dark",3,"routerLink"],["matChipRemove","",4,"ngIf"],["matChipRemove",""]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"span",0),au(2," Duplicated Issues "),wo(),ko(3,"mat-chip-list"),go(4,EB,4,6,"mat-chip",1),Pl(5,"async"),wo(),wo()),2&e&&(Ns(4),_o("ngForOf",Fl(5,1,t.duplicatedIssues)))},directives:[nL,Ld,$M,XO,O_,Od,bL,KM],pipes:[Ud],styles:[""],encapsulation:2}),e}();function DB(e,t){if(1&e&&(ko(0,"span",30),au(1),wo()),2&e){var n=Fo().$implicit,i=Fo(2);Ns(1),uu(" (",i.getDisabledDupOptionErrorText(n),") ")}}function xB(e,t){if(1&e&&(ko(0,"mat-option",26),ko(1,"span",27),au(2),wo(),ko(3,"span",28),au(4),wo(),go(5,DB,2,1,"span",29),wo()),2&e){var n=t.$implicit,i=Fo(2);_o("disabled",i.dupIssueOptionIsDisabled(n))("value",n.id),Ns(2),uu(" #",n.id,": "),Ns(2),ou(n.title),Ns(1),_o("ngIf",i.dupIssueOptionIsDisabled(n))}}function CB(e,t){1&e&&(ko(0,"mat-error"),au(1," Need to specify the duplicated issue. "),wo())}function MB(e,t){if(1&e){var n=xo();ko(0,"div",6),ko(1,"div"),ko(2,"mat-checkbox",21),Ao("change",function(e){return ln(n),Fo().handleChangeOfDuplicateCheckbox(e)}),au(3," A Duplicate Of: "),wo(),ko(4,"mat-form-field",22),ko(5,"mat-select",23),ko(6,"mat-option"),So(7,"ngx-mat-select-search",24),wo(),go(8,xB,6,5,"mat-option",25),Pl(9,"async"),wo(),go(10,CB,2,0,"mat-error",13),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(4),Zo("visibility",i.duplicated.value?"visible":"hidden"),Ns(3),_o("formControl",i.searchFilterCtrl),Ns(1),_o("ngForOf",Fl(9,5,i.filteredDuplicateIssueList)),Ns(2),_o("ngIf",i.duplicateOf.errors&&i.duplicateOf.errors.required&&i.duplicateOf.touched)}}function LB(e,t){if(1&e&&(ko(0,"div",6),So(1,"app-duplicated-issues-component",31),wo()),2&e){var n=Fo();Ns(1),_o("issue",n.issue)}}function AB(e,t){if(1&e&&(ko(0,"mat-option",32),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),ou(n)}}function OB(e,t){1&e&&(ko(0,"mat-error"),au(1," Assignee(s) required. "),wo())}function IB(e,t){if(1&e){var n=xo();ko(0,"button",33),Ao("click",function(){return ln(n),Fo().viewUpdatedResponse()}),au(1," View Updated Response "),wo()}2&e&&_o("disabled",Fo().isFormPending)}function RB(e,t){if(1&e&&(ko(0,"button",34),au(1),wo()),2&e){var n=Fo();_o("disabled",n.newTeamResponseForm.invalid||n.isFormPending),Ns(1),uu(" ",n.submitButtonText," ")}}function PB(e,t){if(1&e&&(ko(0,"button",35),au(1),wo()),2&e){var n=Fo();_o("disabled",n.newTeamResponseForm.invalid||n.isFormPending),Ns(1),uu(" ",n.submitButtonText," ")}}function FB(e,t){if(1&e){var n=xo();ko(0,"button",36),Ao("click",function(){return ln(n),Fo().refresh()}),au(1," Cancel "),wo()}2&e&&_o("disabled",Fo().isFormPending)}var YB=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.issueService=t,this.formBuilder=n,this.labelService=i,this.errorHandlingService=r,this.dialog=s,this.phaseService=a,this.searchFilterCtrl=new Pw,this.filteredDuplicateIssueList=new qS(1),this.isFormPending=!1,this.issueUpdated=new jl,this._onDestroy=new ee},[{key:"ngOnInit",value:function(){var e=this;this.teamMembers=this.issue.teamAssigned.teamMembers.map(function(e){return e.loginId}),this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Gg()).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)}),this.searchFilterCtrl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){return e.filterIssues()}),this.newTeamResponseForm=this.formBuilder.group({description:[""],severity:[this.issue.severity,Hk.required],type:[this.issue.type,Hk.required],response:[this.issue.response,Hk.required],assignees:[this.issue.assignees.map(function(e){return e.toLowerCase()})],duplicated:[!1],duplicateOf:[""]}),this.duplicated.valueChanges.subscribe(function(t){t?(e.duplicateOf.setValidators(Hk.required),e.responseTag.setValidators(null)):(e.duplicateOf.setValidators(null),e.responseTag.setValidators(Hk.required)),e.duplicateOf.updateValueAndValidity(),e.responseTag.updateValueAndValidity()}),this.submitButtonText="Submit"}},{key:"filterIssues",value:function(){var e=this;this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)})}},{key:"changeFilter",value:function(e,t){var n=this;return e.pipe(Gg(),ie(function(e){return JH(t,[KH.ID,KH.TITLE],n.issueService,e)}))}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"submitNewTeamResponse",value:function(e){var t=this;if(!this.newTeamResponseForm.invalid){this.isFormPending=!0;var n=this.getUpdatedIssue();this.isSafeToSubmit().pipe(ge(function(e){var i=n.createGithubTeamResponse();return e?t.issueService.createTeamResponse(n):"Overwrite"===t.submitButtonText?t.issueService.updateIssueWithComment(n,{id:t.issueService.issues[t.issue.id].issueComment.id,description:i}):(t.conflict=new DN(" ",t.issueService.issues[t.issue.id].teamResponse),t.submitButtonText="Overwrite",t.viewUpdatedResponse(),lb("A response has been submitted. Please verify the changes and try again."))}),Kg(function(){return t.isFormPending=!1})).subscribe(function(n){t.issueUpdated.emit(n),e.resetForm()},function(e){t.errorHandlingService.handleError(e)})}}},{key:"isSafeToSubmit",value:function(){return this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(e){return!e.teamResponse}))}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);if(e.duplicated=this.duplicated.value,e.duplicateOf=this.duplicateOf.value,e.duplicated){var t=this.issueService.issues[e.duplicateOf];e.severity=t.severity,e.type=t.type,e.assignees=t.assignees,e.response=t.response}else e.severity=this.severity.value,e.type=this.type.value,e.assignees=this.assignees.value,e.response=this.responseTag.value;return e.status=kj.Done,e.teamResponse=yj.updateTeamResponse(this.description.value),e}},{key:"dupIssueOptionIsDisabled",value:function(e){return e.duplicated||!!e.duplicateOf}},{key:"getDisabledDupOptionErrorText",value:function(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}},{key:"handleChangeOfDuplicateCheckbox",value:function(e){e.checked?(this.responseTag.setValue(""),this.assignees.setValue([]),this.responseTag.markAsUntouched()):(this.duplicateOf.setValue(""),this.duplicateOf.markAsUntouched())}},{key:"viewUpdatedResponse",value:function(){this.dialog.open(mB,{data:this.issueService.issues[this.issue.id],autoFocus:!1})}},{key:"refresh",value:function(){this.issueUpdated.emit(this.issueService.issues[this.issue.id])}},{key:"getDupIssueList",value:function(){var e=this;return this.issueService.issues$.pipe(ie(function(t){return t.filter(function(t){return e.issue.id!==t.id})}))}},{key:"description",get:function(){return this.newTeamResponseForm.get("description")}},{key:"severity",get:function(){return this.newTeamResponseForm.get("severity")}},{key:"type",get:function(){return this.newTeamResponseForm.get("type")}},{key:"assignees",get:function(){return this.newTeamResponseForm.get("assignees")}},{key:"responseTag",get:function(){return this.newTeamResponseForm.get("response")}},{key:"duplicated",get:function(){return this.newTeamResponseForm.get("duplicated")}},{key:"duplicateOf",get:function(){return this.newTeamResponseForm.get("duplicateOf")}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(Fj),yo(hF),yo(KL),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-new-team-response"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:29,vars:26,consts:[[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["class","container",4,"ngIf","ngIfElse"],["displayDuplicates",""],[1,"container"],[1,"left-half"],["attributeName","severity",3,"initialValue","dropdownForm"],[1,"right-half"],["attributeName","type",3,"initialValue","dropdownForm"],["placeholder","Assignees","formControlName","assignees","multiple",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["attributeName","response",3,"initialValue","dropdownForm"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["type","submit","class","editor-action","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",3,"disabled","click",4,"ngIf"],["formControlName","duplicated",2,"display","inline-block","width","20%",3,"change"],[2,"display","inline-block","width","50%"],["formControlName","duplicateOf","placeholder","Duplicate of"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"disabled","value",4,"ngFor","ngForOf"],[3,"disabled","value"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","color: #f44336",4,"ngIf"],[1,"mat-caption",2,"color","#f44336"],[3,"issue"],[3,"value"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",1,"editor-action",3,"disabled","click"]],template:function(e,t){if(1&e){var n=xo();ko(0,"form",0,1),Ao("ngSubmit",function(){ln(n);var e=vo(1);return t.submitNewTeamResponse(e)}),ko(2,"div",2),ko(3,"div",3),ko(4,"span"),au(5," Post your team's response here. "),wo(),wo(),ko(6,"div"),go(7,MB,11,7,"div",4),Pl(8,"async"),go(9,LB,2,1,"ng-template",null,5,ic),ko(11,"div",6),ko(12,"div",7),So(13,"app-label-dropdown",8),wo(),ko(14,"div",9),So(15,"app-label-dropdown",10),wo(),wo(),ko(16,"div",6),ko(17,"mat-form-field",7),ko(18,"mat-select",11),go(19,AB,2,2,"mat-option",12),wo(),go(20,OB,2,0,"mat-error",13),wo(),ko(21,"div",9),So(22,"app-label-dropdown",14),wo(),wo(),ko(23,"app-comment-editor",15),Ao("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),wo(),ko(24,"div",16),go(25,IB,2,1,"button",17),go(26,RB,2,2,"button",18),go(27,PB,2,2,"button",19),go(28,FB,2,1,"button",20),wo(),wo(),wo(),wo()}if(2&e){var i=vo(10);_o("formGroup",t.newTeamResponseForm),Ns(7),_o("ngIf",0===Fl(8,24,t.issueService.getDuplicateIssuesFor(t.issue)).length)("ngIfElse",i),Ns(4),Zo("display",t.duplicated.value?"none":"grid"),Ns(2),_o("initialValue",t.issue.severity)("dropdownForm",t.newTeamResponseForm),Ns(2),_o("initialValue",t.issue.type)("dropdownForm",t.newTeamResponseForm),Ns(1),Zo("display",t.duplicated.value?"none":"grid"),Ns(3),_o("ngForOf",t.teamMembers),Ns(1),_o("ngIf",t.assignees.errors&&t.assignees.errors.required&&t.assignees.touched),Ns(2),_o("initialValue",t.issue.response)("dropdownForm",t.newTeamResponseForm),Ns(1),_o("id","description")("commentField",t.newTeamResponseForm.get("description"))("commentForm",t.newTeamResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),Ns(2),_o("ngIf",t.conflict),Ns(1),_o("ngIf",t.conflict),Ns(1),_o("ngIf",!t.conflict),Ns(1),_o("ngIf",t.conflict)}},directives:[zw,hw,$w,Od,kB,JC,zO,dw,Jw,Ld,PH,BM,Dx,Dq,Zw,jC,TB,yM,XO],pipes:[Ud],styles:[".left-half[_ngcontent-%COMP%]{grid-column:1;padding-right:5px}.right-half[_ngcontent-%COMP%]{grid-column:2;padding-left:5px}.container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}"]}),e}(),jB=function(){var e=function(){return m(function e(){g(this,e)},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-parse-error"]],inputs:{phase:"phase"},decls:7,vars:2,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"div",1),ko(2,"span"),ko(3,"strong"),au(4),wo(),wo(),wo(),ko(5,"div",2),au(6),wo(),wo()),2&e&&(Ns(4),uu("Error in parsing ",t.phase,""),Ns(2),uu("No valid ",t.phase," was found. Please contact the teaching team for assistance."))},styles:[".timeline-header[_ngcontent-%COMP%]{background-color:#f7d2d2;border-bottom:1px solid #ebc0c0;border-top-left-radius:3px;border-top-right-radius:3px;color:#586069;height:35px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between}.timeline-comment[_ngcontent-%COMP%]{overflow:auto;border:1px solid #ebc0c0;background-color:#fff;border-radius:3px;margin-bottom:30px;white-space:pre-line}.comment[_ngcontent-%COMP%]{padding:15px}"]}),e}();function qB(e,t){1&e&&(ko(0,"mat-chip",19),au(1," No Changes "),wo())}function NB(e,t){if(1&e&&(ko(0,"div",20),ko(1,"mat-checkbox",21),au(2," I disagree "),wo(),wo()),2&e){var n=Fo().index,i=Fo();Ns(1),_o("disabled",!0)("checked",i.data.updatedResponses[n].isDisagree())}}function HB(e,t){1&e&&(ko(0,"div",22),ko(1,"i",23),au(2,"add_box"),wo(),ko(3,"ins",24),au(4," I disagree "),wo(),wo())}function BB(e,t){1&e&&(ko(0,"div",22),ko(1,"i",25),au(2,"indeterminate_check_box"),wo(),ko(3,"del",26),au(4,"I disagree"),wo(),wo())}function UB(e,t){if(1&e&&So(0,"div",28),2&e){var n=Fo(2).index;_o("innerHTML",Fo().diffHtmls[n],_s)}}function zB(e,t){if(1&e&&So(0,"div",28),2&e){var n=Fo(2).index;_o("innerHTML",Fo().updatedHtmls[n],_s)}}function VB(e,t){if(1&e&&(ko(0,"div",18),go(1,UB,1,1,"div",27),go(2,zB,1,1,"div",27),wo()),2&e){var n=Fo(2);Ns(1),_o("ngIf",n.showDiff),Ns(1),_o("ngIf",!n.showDiff)}}function GB(e,t){if(1&e&&(ko(0,"mat-expansion-panel",7),ko(1,"mat-expansion-panel-header"),ko(2,"mat-panel-title",8),ko(3,"div",9),au(4,"?"),wo(),So(5,"markdown",10),wo(),ko(6,"mat-panel-description"),ko(7,"mat-chip-list"),go(8,qB,2,0,"mat-chip",11),wo(),wo(),wo(),So(9,"br"),So(10,"markdown",10),So(11,"br"),go(12,NB,3,2,"div",12),go(13,HB,5,0,"div",13),go(14,BB,5,0,"div",13),ko(15,"mat-tab-group",14),ko(16,"mat-tab",15),go(17,VB,3,2,"div",16),wo(),ko(18,"mat-tab",17),ko(19,"div",18),ko(20,"markdown"),au(21),wo(),wo(),wo(),wo(),wo()),2&e){var n=t.$implicit,i=t.index,r=Fo();_o("expanded",r.panelOpenStates[i]),Ns(5),_o("data",r.data.updatedResponses[i].getTitleInMarkDown()),Ns(3),_o("ngIf",0===r.data.outdatedResponses[i].compareTo(r.data.updatedResponses[i])),Ns(2),_o("data",r.data.updatedResponses[i].description),Ns(2),_o("ngIf",r.data.updatedResponses[i].isDisagree()===r.data.outdatedResponses[i].isDisagree()||!r.showDiff),Ns(1),_o("ngIf",!r.data.outdatedResponses[i].isDisagree()&&r.data.updatedResponses[i].isDisagree()&&r.showDiff),Ns(1),_o("ngIf",r.data.outdatedResponses[i].isDisagree()&&!r.data.updatedResponses[i].isDisagree()&&r.showDiff),Ns(3),_o("ngIf",r.isReady),Ns(4),ou(n.updatedContent)}}var WB=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isReady=!1,this.showDiff=!0,this.conflicts=[],this.diffHtmls=[],this.updatedHtmls=[],this.panelOpenStates=[];for(var a=0;at}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"ngOnInit",value:function(){var e=this;this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Gg()).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)}),this.searchFilterCtrl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){return e.filterIssues()})}},{key:"filterIssues",value:function(){var e=this;this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)})}},{key:"updateDuplicateStatus",value:function(e){var t=this,n=this.getUpdatedIssue(e);this.issueService.updateIssueWithComment(n,n.issueComment).subscribe(function(e){return t.issueUpdated.emit(e)},function(e){return t.errorHandlingService.handleError(e)})}},{key:"dupIssueOptionIsDisabled",value:function(e){return e.duplicated||!!e.duplicateOf}},{key:"getDisabledDupOptionErrorText",value:function(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}},{key:"handleCheckboxChange",value:function(e){e.checked?this.openSelection():(this.isEditing=!1,this.duplicateOfSelection.close(),this.duplicateOfSelection.value=null,this.updateDuplicateStatus(null))}},{key:"openSelection",value:function(){this.isEditing=!0,this.duplicateOfSelection.open()}},{key:"handleSelectionOpenChange",value:function(e){e||(this.isEditing=!1,this.duplicatedCheckbox.checked=this.duplicateOfSelection.value)}},{key:"getUpdatedIssue",value:function(e){var t=this.issue.clone(this.phaseService.currentPhase);if(t.duplicated=!!e,t.duplicateOf=e?e.value:null,e){var n=this.issueService.issues[t.duplicateOf];t.severity=n.severity,t.type=n.type,t.assignees=n.assignees,t.response=n.response}return t.issueComment.description=t.createGithubTeamResponse(),t}},{key:"changeFilter",value:function(e,t){var n=this;return e.pipe(Gg(),ie(function(e){return JH(t,[KH.ID,KH.TITLE],n.issueService,e)}))}},{key:"getDupIssueList",value:function(){var e=this;return this.issueService.issues$.pipe(ie(function(t){return t.filter(function(t){return e.issue.id!==t.id&&e.issue.teamAssigned.id===t.teamAssigned.id})}))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(Yq),yo(hF),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-duplicate-of-component"]],viewQuery:function(e,t){var n;(1&e&&(Kl(zO,7),Kl(BM,7)),2&e)&&($l(n=Xl())&&(t.duplicateOfSelection=n.first),$l(n=Xl())&&(t.duplicatedCheckbox=n.first))},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:14,vars:12,consts:[["labelPosition","after",3,"disabled","checked","change"],[1,"mat-title"],["style","float: right","mat-icon-button","",3,"visibility","click",4,"ngIf"],["placeholder","-",1,"no-arrow",2,"width","100%",3,"value","selectionChange","openedChange"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value"],[1,"duplicate-dropdown-issuedetails",3,"ngStyle"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","display: inline-block; color: #f44336",4,"ngIf"],[1,"mat-caption",2,"display","inline-block","color","#f44336"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-checkbox",0),Ao("change",function(e){return t.handleCheckboxChange(e)}),ko(2,"span",1),au(3,"A Duplicate Of:"),wo(),wo(),go(4,xU,3,2,"button",2),ko(5,"mat-select",3),Ao("selectionChange",function(e){return t.updateDuplicateStatus(e)})("openedChange",function(e){return t.handleSelectionOpenChange(e)}),ko(6,"mat-option"),So(7,"ngx-mat-select-search",4),wo(),So(8,"mat-select-trigger"),go(9,LU,7,11,"mat-option",5),Pl(10,"async"),wo(),ko(11,"div"),go(12,AU,3,3,"span",6),go(13,OU,2,0,"span",6),wo(),wo()),2&e&&(Ns(1),_o("disabled",!t.permissions.isTeamResponseEditable()&&!t.permissions.isTutorResponseEditable())("checked",t.issue.duplicated),Ns(3),_o("ngIf",t.permissions.isIssueLabelsEditable()),Ns(1),Zo("display",t.isEditing?"block":"none"),_o("value",t.issue.duplicateOf),Ns(2),_o("formControl",t.searchFilterCtrl),Ns(2),_o("ngForOf",Fl(10,10,t.filteredDuplicateIssueList)),Ns(3),_o("ngIf",t.issue.duplicated),Ns(1),_o("ngIf",!t.issue.duplicated))},directives:[BM,Od,zO,Dx,Dq,dw,Zw,BO,Ld,yM,bL,XO,qd],pipes:[Ud],styles:[".mat-checkbox-disabled .mat-checkbox-label{color:#000}.duplicate-dropdown-issuedetails{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom!important}\n"],encapsulation:2}),e}(),RU=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.issueUpdated=new jl},[{key:"ngOnInit",value:function(){}},{key:"handleChangeOfUnsureCheckbox",value:function(e){var t=this,n=!1;e.checked&&(n=!0);var i=this.issue.clone(this.phaseService.currentPhase);i.unsure=n,this.issueService.updateIssue(i).subscribe(function(e){t.issueUpdated.emit(e)},function(e){t.errorHandlingService.handleError(e)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-unsure-checkbox"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:3,vars:1,consts:[["labelPosition","before",3,"checked","change"],[1,"mat-title"]],template:function(e,t){1&e&&(ko(0,"mat-checkbox",0),Ao("change",function(e){return t.handleChangeOfUnsureCheckbox(e)}),ko(1,"span",1),au(2," Unsure "),wo(),wo()),2&e&&_o("checked",t.issue.unsure)},directives:[BM],styles:[".mat-checkbox-disabled[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{color:#000}"]}),e}(),PU=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,Aq,Rq,Oq,Lq,Pq,YP,Cq,Mq,mk.forChild(),Iq]]}),e}();!function(e,t,n){var i=e.\u0275cmp;i.directiveDefs=function(){return t.map(_t)},i.pipeDefs=function(){return n.map(bt)}}(rN,[Od,TI,yN,sA,UH,$H,YB,jB,oU,uU,yU,DU,uB,TB,IU,RU],[Ud]);var FU=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.location=t,this.router=n,this.dialogService=i,this.modalDialogMessages=["Do you wish to leave the page?","You have unsaved changes that will be discarded."],this.yesButtonDialogMessage="Yes, I wish to leave",this.noButtonDialogMessage="No, I don't wish to leave"},[{key:"openDialog",value:function(){return this.dialogService.openUserConfirmationModal(this.modalDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed()}},{key:"canDeactivate",value:function(e,t,n,i){if(e.canDeactivate&&!e.canDeactivate()&&"/"!==i.url){var r=this.router.createUrlTree([],t).toString();return this.location.go(r),this.openDialog()}return Oh(!0)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(kd),$i(M_),$i(lN))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),YU=function(){var e=function(){return m(function e(t){g(this,e),this.route=t,this.issueComponents=[iN.TESTER_POST,iN.SEVERITY_LABEL,iN.TYPE_LABEL]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}();function jU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title required. "),wo())}function qU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot contain only whitespaces. "),wo())}function NU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot exceed 256 characters. "),wo())}function HU(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",256-(null==n.title.value?null:n.title.value.length)," characters remaining. ")}}var BU=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.labelService=r,this.router=s,this.isFormPending=!1},[{key:"ngOnInit",value:function(){this.newIssueForm=this.formBuilder.group({title:["",[Hk.required,Hk.maxLength(256),function(e){return e.value&&""===e.value.trim()?{whitespace:!0}:null}]],description:[""],severity:["",Hk.required],type:["",Hk.required]}),this.submitButtonText="Submit"}},{key:"submitNewIssue",value:function(e){var t=this;this.newIssueForm.invalid||(this.isFormPending=!0,this.issueService.createIssue(this.title.value,yj.updateDescription(this.description.value),this.severity.value,this.type.value).pipe(Kg(function(){return t.isFormPending=!1})).subscribe(function(n){t.issueService.updateLocalStore(n),t.router.navigateByUrl("phaseBugReporting/issues/".concat(n.id)),e.resetForm()},function(e){t.errorHandlingService.handleError(e)}))}},{key:"canDeactivate",value:function(){return!(this.isAttributeEditing(this.title)||this.isAttributeEditing(this.description)||this.isAttributeEditing(this.severity)||this.isAttributeEditing(this.type))}},{key:"isAttributeEditing",value:function(e){return null!==e.value&&""!==e.value}},{key:"title",get:function(){return this.newIssueForm.get("title")}},{key:"description",get:function(){return this.newIssueForm.get("description")}},{key:"severity",get:function(){return this.newIssueForm.get("severity")}},{key:"type",get:function(){return this.newIssueForm.get("type")}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Fj),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-new-issue"]],decls:22,vars:14,consts:[[1,"mat-display-1","title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"form"],[1,"row"],[1,"column","left"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],[4,"ngIf"],[2,"margin","10px 0 10px 0"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],["type","submit","mat-stroked-button","","color","primary",1,"submit-new-bug-report",2,"float","right",3,"disabled"],[1,"column","right"],[1,"severity-dropdown"],["initialValue","","attributeName","severity",3,"dropdownForm"],[1,"bug-dropdown"],["initialValue","","attributeName","type",3,"dropdownForm"]],template:function(e,t){if(1&e){var n=xo();ko(0,"h1",0),au(1,"New Issue"),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.submitNewIssue(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"div",5),ko(7,"mat-form-field"),So(8,"input",6),go(9,jU,2,0,"mat-error",7),go(10,qU,2,0,"mat-error",7),go(11,NU,2,0,"mat-error",7),go(12,HU,2,1,"mat-hint",7),wo(),ko(13,"div",8),ko(14,"app-comment-editor",9),Ao("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),wo(),wo(),ko(15,"button",10),au(16),wo(),wo(),ko(17,"div",11),ko(18,"div",12),So(19,"app-label-dropdown",13),wo(),ko(20,"div",14),So(21,"app-label-dropdown",15),wo(),wo(),wo(),wo(),wo()}2&e&&(Ns(2),_o("formGroup",t.newIssueForm),Ns(7),_o("ngIf",t.title.errors&&t.title.errors.required&&(t.title.touched||t.title.dirty)),Ns(1),_o("ngIf",t.title.errors&&t.title.errors.whitespace),Ns(1),_o("ngIf",t.title.errors&&t.title.errors.maxlength),Ns(1),_o("ngIf",(null==t.title.value?null:t.title.value.length)>=206),Ns(2),_o("id","description")("commentField",t.description)("commentForm",t.newIssueForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),Ns(1),_o("disabled",!t.newIssueForm.valid||t.isFormPending),Ns(1),uu(" ",t.submitButtonText," "),Ns(3),_o("dropdownForm",t.newIssueForm),Ns(2),_o("dropdownForm",t.newIssueForm))},directives:[zw,hw,$w,JC,Pk,IL,dw,Jw,eS,nS,Od,PH,yM,kB,jC,UC],styles:[".form[_ngcontent-%COMP%]{width:80%;margin:0 auto}mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:75%}.right[_ngcontent-%COMP%]{width:25%}"]}),e}(),UU=function(){var e=m(function e(t,n){g(this,e),this.snackBarRef=t,this.data=n});return e.\u0275fac=function(t){return new(t||e)(yo(oR),yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-undo-action"]],decls:4,vars:1,consts:[[2,"display","inline-block","max-width","300px"],["mat-button","","color","accent",2,"float","right","margin-top","8px",3,"click"]],template:function(e,t){1&e&&(ko(0,"p",0),au(1),wo(),ko(2,"button",1),Ao("click",function(){return t.snackBarRef.dismissWithAction()}),au(3," Undo "),wo()),2&e&&(Ns(1),uu(" ",t.data.message," "))},directives:[yM],encapsulation:2}),e}();function zU(e,t,n){return n.splice(e*t,t)}function VU(e,t){return String(e||"").toUpperCase()0),Ns(1),_o("ngIf",!i.isTodoListChecked(n)),Ns(1),_o("ngIf",n.issueDisputes.length>0),Ns(1),_o("ngIf",0===n.issueDisputes.length)}}function Az(e,t){1&e&&(ko(0,"mat-header-cell",34),au(1,"Response"),wo())}function Oz(e,t){if(1&e&&(ko(0,"span",24),Ao("click",function(e){return e.stopPropagation()}),au(1," Disagree "),wo()),2&e){var n=Fo(2);_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel("response","Rejected")))}}function Iz(e,t){if(1&e&&(ko(0,"span",24),Ao("click",function(e){return e.stopPropagation()}),au(1," Agree "),wo()),2&e){var n=Fo(2);_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel("response","Accepted")))}}function Rz(e,t){if(1&e&&(ko(0,"mat-cell"),go(1,Oz,2,1,"span",26),go(2,Iz,2,1,"span",26),wo()),2&e){var n=t.$implicit;Ns(1),_o("ngIf",n.testerDisagree),Ns(1),_o("ngIf",!n.testerDisagree)}}function Pz(e,t){1&e&&(ko(0,"mat-header-cell"),au(1," Actions "),wo())}function Fz(e,t){if(1&e){var n=xo();ko(0,"button",54),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().viewIssueInBrowser(t.id,e)}),ko(1,"mat-icon"),au(2,"open_in_new"),wo(),wo()}}function Yz(e,t){if(1&e){var n=xo();ko(0,"button",55),Ao("click",function(){ln(n);var e=Fo().$implicit;return Fo().logIssueRespondRouting(e.id)}),ko(1,"mat-icon"),au(2,"feedback"),wo(),wo()}2&e&&_o("routerLink","issues/"+Fo().$implicit.id)}function jz(e,t){1&e&&(ko(0,"button",57),ko(1,"mat-icon"),au(2,"edit"),wo(),wo())}function qz(e,t){if(1&e&&go(0,jz,3,0,"button",56),2&e){var n=Fo(2);_o("ngIf",n.permissions.isIssueEditable()&&n.isActionVisible(n.action_buttons.FIX_ISSUE))}}function Nz(e,t){if(1&e){var n=xo();ko(0,"button",58),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().markAsResponded(t,e)}),ko(1,"mat-icon"),au(2,"check_circle"),wo(),wo()}}function Hz(e,t){if(1&e){var n=xo();ko(0,"button",59),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().markAsPending(t,e)}),ko(1,"mat-icon"),au(2,"cancel"),wo(),wo()}}function Bz(e,t){if(1&e){var n=xo();ko(0,"button",60),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().openDeleteDialog(t.id,e),e.stopPropagation()}),ko(1,"mat-icon"),au(2,"delete_outline"),wo(),wo()}}function Uz(e,t){1&e&&So(0,"mat-spinner",61),2&e&&_o("diameter",25)}function zz(e,t){if(1&e&&(ko(0,"mat-cell"),go(1,Fz,3,0,"button",47),go(2,Yz,3,1,"button",48),go(3,qz,1,1,"ng-template",null,49,ic),go(5,Nz,3,0,"button",50),go(6,Hz,3,0,"button",51),go(7,Bz,3,0,"button",52),go(8,Uz,1,1,"mat-spinner",53),wo()),2&e){var n=t.$implicit,i=vo(4),r=Fo();Ns(1),_o("ngIf",r.isActionVisible(r.action_buttons.VIEW_IN_WEB)),Ns(1),_o("ngIf",r.isResponseEditable()&&!n.status&&r.isActionVisible(r.action_buttons.RESPOND_TO_ISSUE))("ngIfElse",i),Ns(3),_o("ngIf",r.isResponseEditable()&&n.status&&r.isActionVisible(r.action_buttons.MARK_AS_RESPONDED)),Ns(1),_o("ngIf",("Student"===r.userService.currentUser.role||"Admin"===r.userService.currentUser.role)&&r.isActionVisible(r.action_buttons.MARK_AS_PENDING)),Ns(1),_o("ngIf",r.permissions.isIssueDeletable()&&!r.issuesPendingDeletion[n.id]&&r.isActionVisible(r.action_buttons.DELETE_ISSUE)),Ns(1),_o("ngIf",r.issuesPendingDeletion[n.id]&&r.isActionVisible(r.action_buttons.DELETE_ISSUE))}}function Vz(e,t){1&e&&So(0,"mat-header-row")}function Gz(e,t){if(1&e){var n=xo();ko(0,"mat-row",62),Ao("click",function(){var e=ln(n).$implicit;return Fo().logIssueEditRouting(e.id)}),wo()}2&e&&_o("routerLink","issues/"+t.$implicit.id)}function Wz(e,t){1&e&&(ko(0,"mat-card",63),So(1,"mat-progress-spinner",64),wo())}var Zz=function(){return[10,20,50]},Qz=(function(e){e[e.VIEW_IN_WEB=0]="VIEW_IN_WEB",e[e.MARK_AS_RESPONDED=1]="MARK_AS_RESPONDED",e[e.MARK_AS_PENDING=2]="MARK_AS_PENDING",e[e.RESPOND_TO_ISSUE=3]="RESPOND_TO_ISSUE",e[e.FIX_ISSUE=4]="FIX_ISSUE",e[e.DELETE_ISSUE=5]="DELETE_ISSUE"}(Qz||(Qz={})),Qz),$z=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null;g(this,e),this.userService=t,this.permissions=n,this.labelService=i,this.githubService=r,this.issueService=s,this.issueTableSettingsService=a,this.phaseService=o,this.errorHandlingService=u,this.logger=l,this.dialogService=c,this.snackBar=d,this.snackBarAutoCloseTime=3e3,this.filters=void 0,this.action_buttons=Qz,this.deleteIssueModalMessages=["Do you wish to delete this issue?","This action is irreversible!"],this.yesButtonModalMessage="Yes, I wish to delete this issue",this.noButtonModalMessage="No, I don't wish to delete this issue"},[{key:"ngOnInit",value:function(){this.issues=new WU(this.issueService,this.sort,this.paginator,this.headers,this.filters),this.issuesPendingDeletion={},this.tableSettings=this.issueTableSettingsService.getTableSettings(this.table_name)}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.issues.loadIssues()})}},{key:"sortChange",value:function(e){this.tableSettings.sortActiveId=e.active,this.tableSettings.sortDirection=e.direction,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}},{key:"pageChange",value:function(e){this.tableSettings.pageSize=e.pageSize,this.tableSettings.pageIndex=e.pageIndex,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}},{key:"isActionVisible",value:function(e){return this.actions.includes(e)}},{key:"markAsResponded",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Marking Issue ".concat(e.id," as Responded"));var i=e.clone(this.phaseService.currentPhase);i.status=kj.Done,this.issueService.updateIssue(i).subscribe(function(e){n.issueService.updateLocalStore(e)},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation()}},{key:"isResponseEditable",value:function(){return this.permissions.isTeamResponseEditable()||this.permissions.isTesterResponseEditable()}},{key:"markAsPending",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Marking Issue ".concat(e.id," as Pending"));var i=e.clone(this.phaseService.currentPhase);i.status=kj.Incomplete,this.issueService.updateIssue(i).subscribe(function(e){n.issueService.updateLocalStore(e)},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation()}},{key:"logIssueRespondRouting",value:function(e){this.logger.info("IssueTablesComponent: Proceeding to Respond to Issue ".concat(e))}},{key:"logIssueEditRouting",value:function(e){this.logger.info("IssueTablesComponent: Proceeding to Edit Issue ".concat(e))}},{key:"todoFinished",value:function(e){return e.issueDisputes.length-e.numOfUnresolvedDisputes()}},{key:"isTodoListChecked",value:function(e){return e.issueDisputes&&0===e.numOfUnresolvedDisputes()}},{key:"viewIssueInBrowser",value:function(e,t){this.logger.info("IssueTablesComponent: Opening Issue ".concat(e," on Github")),this.githubService.viewIssueInBrowser(e,t)}},{key:"deleteIssue",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Deleting Issue ".concat(e)),this.issuesPendingDeletion=Object.assign(Object.assign({},this.issuesPendingDeletion),D({},e,!0)),this.issueService.deleteIssue(e).pipe(Kg(function(){var t=(0,QP._T)(n.issuesPendingDeletion,["symbol"==typeof e?e:e+""]);n.issuesPendingDeletion=t})).subscribe(function(e){},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation();this.snackBar.openFromComponent(UU,{data:{message:"Deleted issue ".concat(e)},duration:this.snackBarAutoCloseTime}).onAction().subscribe(function(){n.undeleteIssue(e,t)})}},{key:"undeleteIssue",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Undeleting Issue ".concat(e)),this.issueService.undeleteIssue(e).subscribe(function(e){},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation(),this.snackBar.open("Restored issue ".concat(e),"",{duration:this.snackBarAutoCloseTime})}},{key:"openDeleteDialog",value:function(e,t){var n=this;this.dialogService.openUserConfirmationModal(this.deleteIssueModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(i){i&&(n.logger.info("IssueTablesComponent: Deleting issue ".concat(e)),n.deleteIssue(e,t))})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(SF),yo(Yq),yo(Fj),yo(_F),yo(Hj),yo(QU),yo(Nj),yo(hF),yo(cF),yo(lN),yo(pR))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-tables"]],viewQuery:function(e,t){var n;(1&e&&(Kl(_R,7),Kl(fI,7)),2&e)&&($l(n=Xl())&&(t.sort=n.first),$l(n=Xl())&&(t.paginator=n.first))},inputs:{headers:"headers",actions:"actions",filters:"filters",table_name:"table_name"},decls:38,vars:14,consts:[["matSort","",1,"mat-elevation-z8",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","title"],["matColumnDef","teamAssigned",4,"ngIf"],["matColumnDef","type"],["matColumnDef","severity"],["matColumnDef","response"],["matColumnDef","assignees"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","duplicatedIssues"],[4,"matHeaderCellDef"],["matColumnDef","Todo Remaining"],["matColumnDef","testerDisagree"],["matColumnDef","actions"],[4,"matHeaderRowDef"],["style","cursor: pointer",3,"routerLink","click",4,"matRowDef","matRowDefColumns"],["style","display: flex; justify-content: center; align-items: center",4,"ngIf"],[3,"paginatorLocalStorage","pageSize","pageSizeOptions","pageIndex","page"],["mat-sort-header",""],[2,"cursor","default",3,"click"],[1,"no-underline","link-grey-dark","title-wrap",3,"routerLink"],["matColumnDef","teamAssigned"],[3,"ngStyle","click"],["style","display: inline; padding: 1px 2px",3,"click",4,"ngIf"],[3,"ngStyle","click",4,"ngIf"],[2,"display","inline","padding","1px 2px",3,"click"],[1,"arrow-right"],["style","display: inline; margin: 3px",3,"click",4,"ngIf"],[2,"display","inline","margin","3px",3,"click"],["style","margin-left: 10%",4,"ngIf"],[2,"margin-left","10%"],["matTooltip","Should not be empty","matTooltipPosition","above","color","warn"],["mat-header-cell","","mat-sort-header",""],["style","cursor: default",3,"click",4,"ngIf"],["style","margin-left: 5%",4,"ngIf"],[2,"margin-left","5%"],["matTooltip","We strongly recommend assigning all issues to someone","matTooltipPosition","above",2,"color","#ffab40"],[4,"ngIf"],["style","display: inline-block; margin-left: 5px",4,"ngFor","ngForOf"],[2,"display","inline-block","margin-left","5px"],["matTooltipPosition","above",2,"font-size","12px","cursor","pointer",3,"routerLink","matTooltip"],["role","progressbar","style","width: 100%","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",3,"value","max",4,"ngIf"],["color","green"],["color","red"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",2,"width","100%",3,"value","max"],["mat-button","","matTooltip","View this issue on GitHub","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Respond to this issue",3,"routerLink","click",4,"ngIf","ngIfElse"],["tryEditIssue",""],["mat-button","","color","primary","style","transform: scale(0.8)","matTooltip","Mark this issue as Responded",3,"click",4,"ngIf"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","warn","matTooltip","Delete this issue","style","transform: scale(0.8)",3,"click",4,"ngIf"],["color","warn","style","display: inline; padding-right: 30px; margin-left: 5px",3,"diameter",4,"ngIf"],["mat-button","","matTooltip","View this issue on GitHub",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","accent","matTooltip","Respond to this issue",2,"transform","scale(0.8)",3,"routerLink","click"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Edit this issue",4,"ngIf"],["mat-button","","color","accent","matTooltip","Edit this issue",2,"transform","scale(0.8)"],["mat-button","","color","primary","matTooltip","Mark this issue as Responded",2,"transform","scale(0.8)",3,"click"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","warn","matTooltip","Delete this issue",2,"transform","scale(0.8)",3,"click"],["color","warn",2,"display","inline","padding-right","30px","margin-left","5px",3,"diameter"],[2,"cursor","pointer",3,"routerLink","click"],[2,"display","flex","justify-content","center","align-items","center"],["color","primary","mode","indeterminate","diameter","50","strokeWidth","5"]],template:function(e,t){1&e&&(ko(0,"mat-table",0),Ao("matSortChange",function(e){return t.sortChange(e)}),Eo(1,1),go(2,KU,2,0,"mat-header-cell",2),go(3,JU,3,1,"mat-cell",3),To(),Eo(4,4),go(5,XU,2,0,"mat-header-cell",2),go(6,ez,3,2,"mat-cell",3),To(),go(7,iz,3,0,"ng-container",5),Eo(8,6),go(9,rz,2,0,"mat-header-cell",2),go(10,oz,5,4,"mat-cell",3),To(),Eo(11,7),go(12,uz,2,0,"mat-header-cell",2),go(13,dz,5,4,"mat-cell",3),To(),Eo(14,8),go(15,hz,2,0,"mat-header-cell",2),go(16,mz,3,2,"mat-cell",3),To(),Eo(17,9),go(18,gz,2,0,"mat-header-cell",10),go(19,_z,3,2,"mat-cell",3),To(),Eo(20,11),go(21,bz,2,0,"mat-header-cell",12),go(22,Ez,5,6,"mat-cell",3),To(),Eo(23,13),go(24,Tz,2,0,"mat-header-cell",2),go(25,Lz,5,4,"mat-cell",3),To(),Eo(26,14),go(27,Az,2,0,"mat-header-cell",10),go(28,Rz,3,2,"mat-cell",3),To(),Eo(29,15),go(30,Pz,2,0,"mat-header-cell",12),go(31,zz,9,7,"mat-cell",3),To(),go(32,Vz,1,0,"mat-header-row",16),au(33,"> "),go(34,Gz,1,1,"mat-row",17),wo(),go(35,Wz,2,0,"mat-card",18),Pl(36,"async"),ko(37,"mat-paginator",19),Ao("page",function(e){return t.pageChange(e)}),wo()),2&e&&(_o("dataSource",t.issues)("matSortActive",t.tableSettings.sortActiveId)("matSortDirection",t.tableSettings.sortDirection),Ns(7),_o("ngIf","Student"!==t.userService.currentUser.role),Ns(25),_o("matHeaderRowDef",t.headers),Ns(2),_o("matRowDefColumns",t.headers),Ns(1),_o("ngIf",Fl(36,11,t.issues.isLoading$)),Ns(2),_o("paginatorLocalStorage",t.table_name)("pageSize",t.tableSettings.pageSize)("pageSizeOptions",Ll(13,Zz))("pageIndex",t.tableSettings.pageIndex))},directives:[MR,_R,OR,AR,LR,Od,PR,FR,fI,$U,IR,TR,RR,O_,qd,bL,XO,Ld,nL,$M,A_,yM,TI,YR,jR,MM,EI],pipes:[Ud],styles:[".mat-table[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-width:1000px}.mat-paginator[_ngcontent-%COMP%]{min-width:1000px}.mat-column-id[_ngcontent-%COMP%]{flex:0 1 5%}.mat-column-type[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-responseTag[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-assignees[_ngcontent-%COMP%]{word-wrap:normal}.mat-column-actions[_ngcontent-%COMP%]{overflow-x:auto;text-align:center!important}.mat-header-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-icon.arrow-right[_ngcontent-%COMP%]{cursor:default;vertical-align:middle}.mat-cell.mat-column-type[_ngcontent-%COMP%]{flex-wrap:wrap}.mat-cell.mat-column-actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{min-width:32px}.mat-column-type[_ngcontent-%COMP%]{flex-basis:12px}.title-wrap[_ngcontent-%COMP%]{overflow-wrap:anywhere}"]}),e}();function Kz(e,t){1&e&&(ko(0,"button",8),au(1," New Issue "),wo())}var Jz=[{path:"phaseBugReporting",component:function(){var e=function(){return m(function e(t,n){g(this,e),this.permissions=t,this.userService=n,this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.DELETE_ISSUE,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Yq),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-bug-reporting"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:13,vars:4,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],[1,"grid-flush-right"],["mat-stroked-button","","class","create-new-bug-report-button","color","primary","routerLink","issues/new",4,"ngIf"],["table_name","tableBugReporting",3,"headers","actions"],["mat-stroked-button","","color","primary","routerLink","issues/new",1,"create-new-bug-report-button"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),ko(9,"mat-grid-tile"),ko(10,"div",5),go(11,Kz,2,0,"button",6),wo(),wo(),wo(),So(12,"app-issue-tables",7),wo()),2&e&&(Ns(5),uu(" ","Student"===t.userService.currentUser.role?"Issues you posted":"All Issues"," "),Ns(6),_o("ngIf",t.permissions.isIssueCreatable()),Ns(1),_o("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[GA,jA,JC,IL,Od,$z,yM,A_],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:20%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:35%}.mat-column-type[_ngcontent-%COMP%]{width:25%}.mat-column-severity[_ngcontent-%COMP%]{width:23%}"]}),e}(),canActivate:[lq]},{path:"phaseBugReporting/issues/new",component:BU,canActivate:[lq],canDeactivate:[FU]},{path:"phaseBugReporting/issues/:issue_id",component:YU,canActivate:[lq],canDeactivate:[FU]}],Xz=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(Jz)],z_]}),e}(),eV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[Xz,YP,Cq,cq,PU,mk.forChild(),dq,Mq]]}),e}(),tV=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.route=t,this.userService=n,this.permissions=i,this.issueService=r,this.issueComponents=[iN.TESTER_POST,iN.TEAM_RESPONSE,iN.ISSUE_DISPUTE,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.RESPONSE_LABEL,iN.DUPLICATE,iN.UNSURE_CHECKBOX]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy),yo(SF),yo(Yq),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}();function nV(e,t){1&e&&(ko(0,"button",11),ko(1,"mat-icon",12),au(2," settings "),wo(),wo()),2&e&&(Fo(),_o("matMenuTriggerFor",vo(6)))}function iV(e,t){if(1&e){var n=xo();ko(0,"button",13),Ao("click",function(){var e=ln(n).$implicit;return Fo().updateDisplayedTeam(e)}),ko(1,"span"),au(2),wo(),wo()}if(2&e){var i=t.$implicit;_o("disabled",i===Fo().teamFilter),Ns(2),uu(" ",i," ")}}var rV=[{path:"phaseModeration",component:function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.userService=n,this.dataService=i,this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.TODO,KH.ACTIONS],this.teamFilter="All Teams",this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.issueService.setIssueTeamFilter(this.teamFilter)}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}},{key:"teamList",get:function(){var e=this.dataService.getTeams();switch(Sj[LF.phaseModeration][this.userService.currentUser.role]){case wj.FilterByTeamAssigned:return["All Teams"].concat(d(this.userService.currentUser.allocatedTeams.map(function(e){return e.id})));case wj.NoFilter:return["All Teams"].concat(d(e))}}},{key:"updateDisplayedTeam",value:function(e){this.teamFilter=e,this.table.issues.teamFilter=this.teamFilter}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF),yo(wF))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-moderation"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:18,vars:5,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableModeration",3,"headers","actions"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"div",0),ko(2,"span",1),au(3),wo(),go(4,nV,3,1,"button",2),ko(5,"mat-menu",null,3),go(7,iV,3,2,"button",4),wo(),wo(),ko(8,"mat-grid-list",5),ko(9,"mat-grid-tile"),ko(10,"div",6),ko(11,"h1",7),au(12,"Issues Submitted by Students"),wo(),wo(),wo(),So(13,"br"),ko(14,"mat-grid-tile"),ko(15,"mat-form-field",8),ko(16,"input",9),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(17,"app-issue-tables",10),wo()),2&e&&(Ns(3),uu(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),Ns(1),_o("ngIf",t.teamList),Ns(3),_o("ngForOf",t.teamList),Ns(10),_o("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[Od,yO,Ld,GA,jA,JC,IL,$z,yM,SO,bL,fO],styles:[".mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-Todo-Remaining[_ngcontent-%COMP%]{width:20%}.mat-column-actions[_ngcontent-%COMP%]{width:10%;text-align:center}"]}),e}(),canActivate:[lq]},{path:"phaseModeration/issues/:issue_id",component:tV,canActivate:[lq],canDeactivate:[FU]}],sV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(rV)],z_]}),e}(),aV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[sV,YP,Cq,cq,PU,mk.forChild(),dq]]}),e}(),oV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.route=n,this.permissions=i,this.issueComponents=[iN.TESTER_POST,iN.TEAM_RESPONSE,iN.NEW_TEAM_RESPONSE,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.RESPONSE_LABEL,iN.ASSIGNEE,iN.DUPLICATE]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(uy),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}(),uV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.permissions=n,this.userService=i,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.RESPOND_TO_ISSUE,Qz.MARK_AS_RESPONDED,Qz.FIX_ISSUE],this.displayedColumns=i.currentUser.role!==kF.Student?[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){return function(t){return!e.issueService.hasTeamResponse(t.id)||!t.status||t.status===kj.Incomplete}(t)&&function(e){return!e.duplicateOf}(t)&&function(e){return!e.status||!e.teamResponseError}(t)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(Yq),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-pending"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Pending Response"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:26%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:10%}.mat-column-type[_ngcontent-%COMP%]{width:12%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-duplicateOf[_ngcontent-%COMP%]{width:12%}"]}),e}(),lV=function(){var e=function(){return m(function e(t,n){g(this,e),this.issueService=t,this.userService=n,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.MARK_AS_PENDING,Qz.FIX_ISSUE],this.displayedColumns=n.currentUser.role===kF.Student?[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){return n=t,e.issueService.hasTeamResponse(n.id)&&!t.duplicateOf&&t.status===kj.Done;var n}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-responded"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Responded"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:11%}.mat-column-severity[_ngcontent-%COMP%]{width:6%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:6%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.grid-flush-right[_ngcontent-%COMP%]{position:absolute;right:5px}"]}),e}(),cV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.userService=n,this.permissions=i,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE],this.displayedColumns=n.currentUser.role===kF.Student?[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){var n,i=(n=t,e.issueService.hasTeamResponse(n.id)&&!!t.duplicateOf&&function(t){return!!e.issueService.issues$.getValue().filter(function(e){return e.duplicateOf===t.id}).length}(t)),r=!!t.status&&function(e){return!!e.teamResponseError}(t);return i||r}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-faulty"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Faulty Issues"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:7%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:15%;text-align:center}"]}),e}();function dV(e,t){1&e&&(ko(0,"button",6),ko(1,"mat-icon",7),au(2," settings "),wo(),wo()),2&e&&(Fo(),_o("matMenuTriggerFor",vo(6)))}function hV(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){var e=ln(n).$implicit;return Fo().updateDisplayedTeam(e)}),ko(1,"span"),au(2),wo(),wo()}if(2&e){var i=t.$implicit;_o("disabled",i===Fo().teamFilter),Ns(2),uu(" ",i," ")}}var pV=[{path:"phaseTeamResponse",component:function(){var e=function(){return m(function e(t,n,i){g(this,e),this.userService=t,this.dataService=n,this.issueService=i,this.teamFilter="All Teams"},[{key:"ngOnInit",value:function(){this.issueService.setIssueTeamFilter(this.teamFilter)}},{key:"teamList",get:function(){var e=this.dataService.getTeams();switch(Sj[LF.phaseTeamResponse][this.userService.currentUser.role]){case wj.FilterByTeamAssigned:return["All Teams"].concat(d(this.userService.currentUser.allocatedTeams.map(function(e){return e.id})));case wj.NoFilter:return["All Teams"].concat(d(e))}}},{key:"updateDisplayedTeam",value:function(e){this.teamFilter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(SF),yo(wF),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-team-response"]],decls:11,vars:6,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],[3,"teamFilter"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"div",0),ko(2,"span",1),au(3),wo(),go(4,dV,3,1,"button",2),ko(5,"mat-menu",null,3),go(7,hV,3,2,"button",4),wo(),wo(),So(8,"app-issues-pending",5),So(9,"app-issues-responded",5),So(10,"app-issues-faulty",5),wo()),2&e&&(Ns(3),uu(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),Ns(1),_o("ngIf",t.teamList),Ns(3),_o("ngForOf",t.teamList),Ns(1),_o("teamFilter",t.teamFilter),Ns(1),_o("teamFilter",t.teamFilter),Ns(1),_o("teamFilter",t.teamFilter))},directives:[Od,yO,Ld,uV,lV,cV,yM,SO,bL,fO],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:80px;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:40%}.mat-column-type[_ngcontent-%COMP%]{width:30%}.mat-column-severity[_ngcontent-%COMP%]{width:12%}"]}),e}(),canActivate:[lq]},{path:"phaseTeamResponse/issues/:issue_id",component:oV,canActivate:[lq],canDeactivate:[FU]}],fV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(pV)],z_]}),e}(),mV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[fV,YP,Cq,cq,PU,mk.forChild(),dq]]}),e}(),gV=function(){var e=function(){return m(function e(t){g(this,e),this.route=t,this.issueComponents=[iN.TESTER_POST,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.TEAM_RESPONSE,iN.TESTER_RESPONSE]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[""]}),e}(),vV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.RESPOND_TO_ISSUE,Qz.MARK_AS_RESPONDED,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return function(e){return!e.status||e.status===kj.Incomplete}(e)&&function(e){return!!e.issueComment}(e)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-pending"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Pending Response"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),yV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.TESTER_DISAGREE,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.MARK_AS_PENDING,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return function(e){return e.status===kj.Done}(e)&&function(e){return!!e.issueComment}(e)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-responded"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Responded"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),_V=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return e.testerResponseError}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-faulty"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Faulty Issues"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),bV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB]},[{key:"ngOnInit",value:function(){this.filter=function(e){return e.teamAccepted}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-accepted"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseAccepted",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Accepted by Dev Team (No Action Required)"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),kV=[{path:"phaseTesterResponse",component:function(){var e=function(){return m(function e(){g(this,e)},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-phase-tester-response"]],decls:5,vars:0,template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-issue-pending"),So(2,"app-issue-responded"),So(3,"app-issue-faulty"),So(4,"app-issue-accepted"),wo())},directives:[vV,yV,_V,bV],styles:[""]}),e}(),canActivate:[lq]},{path:"phaseTesterResponse/issues/:issue_id",component:gV,canActivate:[lq],canDeactivate:[FU]}],wV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(kV)],z_]}),e}(),SV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,wV,YP,PU,dq,mk.forChild()]]}),e}(),EV=[{path:"",loadChildren:function(){return uq}},{path:"phaseBugReporting",loadChildren:function(){return eV},canLoad:[lq]},{path:"phaseTeamResponse",loadChildren:function(){return mV},canLoad:[lq]},{path:"phaseTesterResponse",loadChildren:function(){return SV},canLoad:[lq]},{path:"phaseModeration",loadChildren:function(){return aV},canLoad:[lq]},{path:"**",redirectTo:""}],TV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forRoot(EV)],z_]}),e}();function DV(e,t){if(1&e){var n=xo();ko(0,"button",12),Ao("click",function(){return ln(n),Fo().goBack()}),ko(1,"mat-icon"),au(2,"arrow_back_ios"),wo(),wo()}}function xV(e,t){if(1&e&&(ko(0,"span",13),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" (",n.getPhaseDescription(n.phaseService.currentPhase),") ")}}var CV=function(e){return{color:"green",visibility:e}};function MV(e,t){if(1&e){var n=xo();ko(0,"button",18),Ao("click",function(){var e=ln(n).$implicit;return Fo(2).routeToSelectedPhase(e)}),ko(1,"span"),ko(2,"mat-icon",19),au(3,"done"),wo(),au(4),wo(),wo()}if(2&e){var i=t.$implicit,r=Fo(2);Ns(2),_o("ngStyle",Al(2,CV,r.phaseService.currentPhase===i?"visible":"hidden")),Ns(2),uu(" ",r.getPhaseDescription(i)," ")}}function LV(e,t){if(1&e&&(ko(0,"div"),ko(1,"button",14),ko(2,"mat-icon",15),au(3,"expand_more"),wo(),wo(),ko(4,"mat-menu",null,16),go(6,MV,5,4,"button",17),wo(),wo()),2&e){var n=vo(5),i=Fo();Ns(1),_o("matMenuTriggerFor",n),Ns(5),_o("ngForOf",i.phaseService.sessionData.openPhases)}}function AV(e,t){if(1&e){var n=xo();ko(0,"button",20),Ao("click",function(){return ln(n),Fo().viewBrowser()}),ko(1,"mat-icon"),au(2,"open_in_new"),wo(),wo()}}function OV(e,t){if(1&e){var n=xo();ko(0,"button",21),Ao("click",function(){return ln(n),Fo().reload()}),au(1," Sync "),ko(2,"mat-icon"),au(3,"refresh"),wo(),wo()}}function IV(e,t){1&e&&(ko(0,"div",22),ko(1,"span",23),au(2,"Sync"),wo(),So(3,"mat-spinner",24),wo()),2&e&&(Ns(3),_o("diameter",20))}function RV(e,t){if(1&e){var n=xo();ko(0,"button",25),Ao("click",function(e){return ln(n),Fo().openLogOutDialog(),e.stopPropagation()}),au(1),ko(2,"mat-icon",26),au(3,"exit_to_app"),wo(),wo()}if(2&e){var i=Fo();Ns(1),uu(" (",i.userService.currentUser.loginId,") ")}}var PV=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d,h){var p=this;g(this,e),this.router=t,this.auth=n,this.phaseService=i,this.userService=r,this.logger=s,this.location=a,this.githubEventService=o,this.issueService=u,this.errorHandlingService=l,this.githubService=c,this.dialogService=d,this.issueTableSettingsService=h,this.isReloadButtonDisabled=!1,this.ISSUE_FILTER="/issues?q=is:issue+is:open",this.TUTORIAL_LABEL="+label:tutorial.",this.TEAM_LABEL="+label:team.",this.EXCLUDE_DUPLICATE="+-label:duplicate",this.logOutDialogMessages=["Do you wish to log out?"],this.yesButtonDialogMessage="Yes, I wish to log out",this.noButtonDialogMessage="No, I don't wish to log out",t.events.pipe(Rh(function(e){return e instanceof sv}),PS()).subscribe(function(e){p.prevUrl=e[0].urlAfterRedirects})},[{key:"ngOnInit",value:function(){}},{key:"routeToSelectedPhase",value:function(e){this.phaseService.currentPhase!==LF[e]&&(this.phaseService.currentPhase=LF[e],this.githubService.storePhaseDetails(this.phaseService.getPhaseOwner(this.phaseService.currentPhase),this.phaseService.sessionData[e]),this.githubService.reset(),this.issueService.reset(!1),this.reload(),this.issueTableSettingsService.clearTableSettings(),this.router.navigateByUrl(this.phaseService.currentPhase))}},{key:"isBackButtonShown",value:function(){return"/".concat(this.phaseService.currentPhase)!==this.router.url&&"/"!==this.router.url&&!this.router.url.startsWith("/?code")}},{key:"isReloadButtonShown",value:function(){return"/phaseBugReporting/issues/new"!==this.router.url}},{key:"isOpenUrlButtonShown",value:function(){return this.phaseService.currentPhase===LF.phaseBugReporting||this.userService.currentUser.role===kF.Student||"All Teams"!==this.issueService.getIssueTeamFilter()||this.router.url.includes("/issues")}},{key:"getVersion",value:function(){return HP.version}},{key:"getPhaseDescription",value:function(e){return qj[e]}},{key:"goBack",value:function(){this.prevUrl==="/".concat(this.phaseService.currentPhase,"/issues/new")?this.router.navigate(["/phaseBugReporting"]):this.location.back()}},{key:"viewBrowser",value:function(){var e,t=this.router.url.substring(1),n=t.indexOf("/");e=n<0?this.ISSUE_FILTER.concat(this.getTeamFilterString()):t.substring(n),window.open("https://github.com/".concat(this.githubService.getRepoURL()).concat(e))}},{key:"openIssueTracker",value:function(){window.open("https://github.com/CATcher-org/CATcher/issues")}},{key:"getTeamFilterString",value:function(){if(this.phaseService.currentPhase===LF.phaseBugReporting||this.phaseService.currentPhase===LF.phaseTesterResponse)return"";this.userService.currentUser.team&&this.issueService.setIssueTeamFilter(this.userService.currentUser.team.id);var e=this.issueService.getIssueTeamFilter().split("-"),t=this.TUTORIAL_LABEL.concat("".concat(e[0],"-").concat(e[1])).concat(this.TEAM_LABEL).concat(e[2]);return this.phaseService.currentPhase===LF.phaseModeration?t:this.EXCLUDE_DUPLICATE.concat(t)}},{key:"reload",value:function(){var e=this;this.isReloadButtonDisabled=!0,this.githubEventService.reloadPage().subscribe(function(e){return e},function(t){e.errorHandlingService.handleError(t,function(){return e.githubEventService.reloadPage()})}),setTimeout(function(){e.isReloadButtonDisabled=!1},3e3)}},{key:"logOut",value:function(){this.auth.logOut()}},{key:"openLogOutDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.logOutDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed().subscribe(function(t){t&&(e.logger.info("HeaderComponent: Logging out from ".concat(e.userService.currentUser.loginId)),e.logOut())})}},{key:"exportLogFile",value:function(){this.logger.exportLogFile()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(zj),yo(Nj),yo(SF),yo(cF),yo(kd),yo(Bj),yo(Hj),yo(hF),yo(_F),yo(lN),yo(QU))},e.\u0275cmp=yt({type:e,selectors:[["app-layout-header"]],decls:17,vars:9,consts:[["color","primary",2,"position","sticky","position","-webkit-sticky","top","0","z-index","1000"],["mat-icon-button","","class","mat-toolbar mat-primary back-button","style","transform: scale(0.9)",3,"click",4,"ngIf"],[1,"mat-toolbar","mat-primary",2,"text-decoration","none",3,"routerLink"],["id","phase-descriptor","style","margin-left: 10px",4,"ngIf"],[4,"ngIf"],[2,"flex","1 1 auto"],["mat-button","","matTooltip","Download CATcher Log",3,"click"],["mat-button","","matTooltip","Give feedback about CATcher",3,"click"],["mat-button","","matTooltip","View current page on GitHub",3,"click",4,"ngIf"],["mat-button","","matTooltip","Synchronize with Github data",3,"click",4,"ngIf"],["class","sync-spinner",4,"ngIf"],["mat-button","","matTooltip","Log out",3,"click",4,"ngIf"],["mat-icon-button","",1,"mat-toolbar","mat-primary","back-button",2,"transform","scale(0.9)",3,"click"],["id","phase-descriptor",2,"margin-left","10px"],["mat-button","",3,"matMenuTriggerFor"],[2,"color","white"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"ngStyle"],["mat-button","","matTooltip","View current page on GitHub",3,"click"],["mat-button","","matTooltip","Synchronize with Github data",3,"click"],[1,"sync-spinner"],[2,"font-size","14px","margin-right","7px"],[1,"white-spinner",3,"diameter"],["mat-button","","matTooltip","Log out",3,"click"],[2,"margin-left","2px"]],template:function(e,t){1&e&&(ko(0,"mat-toolbar",0),go(1,DV,3,0,"button",1),ko(2,"a",2),au(3),wo(),go(4,xV,2,1,"span",3),go(5,LV,7,2,"div",4),So(6,"span",5),ko(7,"button",6),Ao("click",function(){return t.exportLogFile()}),ko(8,"mat-icon"),au(9,"receipt"),wo(),wo(),ko(10,"button",7),Ao("click",function(){return t.openIssueTracker()}),ko(11,"mat-icon"),au(12,"mail"),wo(),wo(),go(13,AV,3,0,"button",8),go(14,OV,4,0,"button",9),go(15,IV,4,1,"div",10),go(16,RV,4,1,"button",11),wo()),2&e&&(Ns(1),_o("ngIf",t.isBackButtonShown()),Ns(1),_o("routerLink",t.phaseService.currentPhase),Ns(1),uu("CATcher v",t.getVersion(),""),Ns(1),_o("ngIf",t.auth.isAuthenticated()),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.phaseService.sessionData.openPhases.length>1),Ns(8),_o("ngIf",t.auth.isAuthenticated()&&t.isOpenUrlButtonShown()),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&!t.isReloadButtonDisabled),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&t.isReloadButtonDisabled),Ns(1),_o("ngIf",t.auth.isAuthenticated()))},directives:[AP,Od,O_,yM,XO,bL,SO,yO,Ld,fO,qd,TI],encapsulation:2}),e}(),FV=function(){var e=function(){return m(function e(t,n){g(this,e),this.errorHandlingService=n,this.NOT_CONNECTED_ERROR=new Error("You are not connected to the internet."),t.info("AppComponent: AppConfig",HP),t.info("AppComponent: Mode web")},[{key:"ngAfterViewInit",value:function(){this.addListenerForNetworkOffline()}},{key:"addListenerForNetworkOffline",value:function(){var e=this;window.addEventListener("offline",function(t){e.errorHandlingService.handleError(e.NOT_CONNECTED_ERROR)},!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(cF),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"container"]],template:function(e,t){1&e&&(So(0,"app-layout-header"),ko(1,"div",0),So(2,"router-outlet"),wo())},directives:[PV,R_],styles:[".container[_ngcontent-%COMP%]{padding:30px;min-height:87.9vh}"]}),e}(),YV=(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(YV||(YV={})),YV),jV=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.router=t,this.ngZone=n,this.githubService=i,this.userService=r,this.issueService=s,this.phaseService=a,this.dataService=o,this.githubEventService=u,this.titleService=l,this.logger=c,this.authStateSource=new lg(YV.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new lg(void 0)},[{key:"storeOAuthAccessToken",value:function(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}},{key:"reset",value:function(){var e=this;this.accessToken.next(void 0),this.changeAuthState(YV.NotAuthenticated),this.ngZone.run(function(){return e.router.navigate([""])})}},{key:"logOut",value:function(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}},{key:"isAuthenticated",value:function(){return this.authStateSource.getValue()===YV.Authenticated}},{key:"changeAuthState",value:function(e){if(e===YV.Authenticated){var t="".concat(Date.now(),"-").concat(ZP());this.issueService.setSessionId(t),this.logger.info("MockAuthService: Successfully authenticated with session: ".concat(t))}this.authStateSource.next(e)}},{key:"setTitleWithPhaseDetail",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version," - ").concat(this.phaseService.getPhaseDetail());this.titleService.setTitle(t)}},{key:"setLandingPageTitle",value:function(){var e=w(4147);this.titleService.setTitle("".concat(e.name," ").concat(e.version))}},{key:"startOAuthProcess",value:function(){this.accessToken.next("FabricatedToken")}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Cc),$i(_F),$i(SF),$i(Hj),$i(Nj),$i(wF),$i(Bj),$i(Ah),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function qV(e,t,n,i,r,s,a,o,u,l){return HP.test?new jV(e,t,n,i,r,s,a,o,u,l):(console.log(l),new zj(e,t,n,i,r,s,a,o,u,l))}var NV=Object.assign({},Object.assign(Object.assign({},Object.assign(Object.assign({},jP),{version:qP.version,production:!1,test:!1,clientId:"0cbc5e651d8b01e36687",origin:"http://localhost:4200"})),{test:!0,role:"student",username:"CAT-Tester",team:"CS2103T-W12-3"})),HV=w(60837).Octokit,BV=(new HV,function(){var e=function(){return m(function e(){g(this,e),this.numIssuesCreated=0},[{key:"storeOAuthAccessToken",value:function(e){new HV({auth:function(){return"Token ".concat(e)}})}},{key:"storeOrganizationDetails",value:function(e,t){e,t}},{key:"storePhaseDetails",value:function(e,t){t,e}},{key:"isRepositoryPresent",value:function(e,t){return Oh(!0)}},{key:"createIssue",value:function(e,t,n){var i=n.map(function(e){return new eF({name:e})}),r={number:this.numIssuesCreated,title:e,body:t,labels:i};return this.numIssuesCreated++,Oh(new tF(r))}},{key:"fetchAllLabels",value:function(){return Oh(Fj.getRequiredLabelsAsArray(!0).map(function(e){return{name:e.labelCategory?"".concat(e.labelCategory,".").concat(e.labelValue):"".concat(e.labelValue),color:"".concat(e.labelColor)}}))}},{key:"fetchEventsForRepo",value:function(){return Oh([])}},{key:"fetchDataFile",value:function(){return Oh({data:"role,name,team\n".concat(NV.role,",").concat(NV.username,",").concat(NV.team,"\n")})}},{key:"fetchLatestRelease",value:function(){var e=w(4147);return Oh({html_url:"www.github.com/CATcher-org/releases/v".concat(e.version),tag_name:"v".concat(e.version)})}},{key:"fetchSettingsFile",value:function(){return Oh(D(D(D(D({openPhases:[LF.phaseBugReporting,LF.phaseTeamResponse,LF.phaseTesterResponse,LF.phaseModeration]},LF.phaseBugReporting,"undefined"),LF.phaseTeamResponse,"undefined"),LF.phaseTesterResponse,"undefined"),LF.phaseModeration,"undefined"))}},{key:"fetchAuthenticatedUser",value:function(){return Oh({login:NV.username,name:NV.username})}},{key:"getProfilesData",value:function(){var e=[{profileName:"CATcher",repoName:"CATcher-org/public_data"}],t={json:function(){return Promise.resolve({profiles:e})}};return Promise.resolve(t)}},{key:"reset",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}());function UV(e,t,n){return HP.test?new BV:new _F(e,t,n)}new bF({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:kF.Student},{loginId:"003-samuel",role:kF.Student},{loginId:"damithc",role:kF.Student},{loginId:"ptvrajsk",role:kF.Student}]}),new bF({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:kF.Student}]});var zV=(new Map([["CS2103T-W12-3",new bF({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:kF.Student},{loginId:"003-samuel",role:kF.Student},{loginId:"damithc",role:kF.Student},{loginId:"ptvrajsk",role:kF.Student}]})],["CS2103T-W12-4",new bF({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:kF.Student}]})]]),{body:"# Team's Response\n\n ## Duplicate status (if any):\n--",created_at:"2020-02-16T18:31:38Z",id:586737495,issue_url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/comments/586737495",user:{login:"testathorStudent",id:46639862,avatar_url:"https://avatars3.githubusercontent.com/u/46639862?v=4",url:"https://api.github.com/users/testathorStudent"}}),VV={body:"# Tutor Moderation\n\n## :question: Issue Type\n\n- [x] Done\n\ntest\n\n
    \n## :question: Issue Severity\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
    \n## :question: Not Related Question\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
    \n",created_at:"2020-08-15T06:39:24Z",id:674357972,issue_url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/26",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/comments/674357972",user:{login:"testathorTutor",id:46640218,avatar_url:"https://avatars2.githubusercontent.com/u/46640218?v=4",url:"https://api.github.com/users/testathorTutor"}},GV={color:"9900cc",name:"type.FunctionalityBug",id:1226647550,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FunctionalityBug"},WV={id:1462485994,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FeatureFlaw",name:"type.FeatureFlaw",color:"d966ff"},ZV={id:1226647431,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.DocumentationBug",name:"type.DocumentationBug",color:"d966ff"},QV={id:1226646828,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Low",name:"severity.Low",color:"ffcccc"},$V={id:1226646649,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.High",name:"severity.High",color:"ff6666"},KV={color:"ff9999",name:"severity.Medium",id:1226647149,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Medium"},JV={url:"https://api.github.com/repos/CATcher-org/pe-results/labels/tutorial.CS2103T-W12",name:"tutorial.CS2103T-W12",color:"c2e0c6",id:1226649736},XV={id:1226649835,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/team.3",name:"team.3",color:"d4c5f9"},eG={login:"anubh-v",avatar_url:"https://avatars1.githubusercontent.com/u/35621759?v=4",url:"https://api.github.com/users/anubh-v"},tG={login:"geshuming",avatar_url:"https://avatars0.githubusercontent.com/u/43642522?v=4",url:"https://api.github.com/users/geshuming"},nG={login:"geshuming",id:43642522,url:"https://api.github.com/users/geshuming"},iG="# Issue Description\n{original issue description}\n# Team's Response\n{team's response}\n # Disputes\n\n## :question: Issue Type\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n## :question: Issue Severity\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n## :question: Not Related Question\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n\n",rG=(new tF({id:"574085971",number:92,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"App starts to lag when given large amount of input",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/92",user:eG}),new tF({id:"384830567",number:130,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[XV,JV,WV,QV],state:vk.Open,title:"App is sometimes slow",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"573957398",number:32,assignees:[],comments:[],body:"",created_at:"2010-03-12T19:12:02Z",labels:[XV,JV,ZV,$V],state:vk.Open,title:"Too many typos",updated_at:"2012-03-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"573957399",number:33,assignees:[],comments:[],body:"",created_at:"2010-04-12T19:12:02Z",labels:[XV,JV,ZV,$V],state:vk.Open,title:"Too many typos 2",updated_at:"2012-04-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"551732011",number:91,assignees:[{login:"anubh-v",id:35621759,url:"https://api.github.com/users/anubh-v"},nG],body:"Screen freezes every few minutes",created_at:"2020-01-18T07:01:45Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"Screen freezes",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",user:eG,comments:[zV]}),function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(2020,1,1),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return new Date(e.getTime()+Math.random()*(e.getTime()-t.getTime())).toISOString()}(),t=Math.round(1e3*Math.random()),n=[QV,KV,$V],i=[GV,WV,ZV];return new tF({id:Math.floor(1e9*Math.random()).toString(),number:t,assignees:[],comments:[],body:"Issue No.: ".concat(t,"\nSample Content."),created_at:e,labels:[XV,JV,i[t%3],n[t%3]],state:vk.Open,title:"Random Issue: ".concat(t),updated_at:e,url:"https://api.github.com/repos/CATcher-org/pe-results/issues/".concat(t),user:eG})});new tF({id:"574674360",number:26,assignees:[nG],body:iG,created_at:"2020-03-03T13:38:32Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"Basic Issue, Three Disputes, Unsure",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]}),new tF({id:"239538360",number:93,assignees:[nG],body:iG,created_at:"2020-10-14T10:28:32Z",labels:[XV,JV,WV,$V],state:vk.Open,title:"Redundant buggy feature",updated_at:"2020-11-25T13:19:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]}),new tF({id:"384756360",number:6,assignees:[nG],body:iG,created_at:"2020-03-26T09:08:12Z",labels:[XV,JV,ZV,QV],state:vk.Open,title:"Documentation bug, too many typos",updated_at:"2020-11-10T16:59:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]});var sG=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.phaseService=n,this.dataService=i,this.issueTeamFilter="All Teams",this.isLoading=new lg(!1),this.issues$=new lg(new Array)},[{key:"startPollIssues",value:function(){var e=this;void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=Oh(this.reloadAllIssues()).subscribe(function(t){return e.isLoading.next(!1)}))}},{key:"stopPollIssues",value:function(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}},{key:"pollIssue",value:function(e){return Oh(this.issues[e])}},{key:"reloadAllIssues",value:function(){return this.initializeData()}},{key:"getIssue",value:function(e){return void 0===this.issues?this.getLatestIssue(e):Oh(this.issues[e])}},{key:"getLatestIssue",value:function(e){var t=this;return this.githubService.fetchIssueGraphql(e).pipe(ie(function(n){return t.createAndSaveIssueModel(n),t.issues[e]}),Ig(function(n){return Oh(t.issues[e])}))}},{key:"createIssue",value:function(e,t,n,i){var r=this,s=[this.createLabel("severity",n),this.createLabel("type",i)],a=new Map([["session",this.sessionId]]),o=CF.embedDataIntoString(t,a);return this.githubService.createIssue(e,o,s).pipe(ie(function(e){return r.createIssueModel(e)}))}},{key:"updateIssue",value:function(e){var t=this,n=this.phaseService.currentPhase===LF.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),n).pipe(ie(function(n){return n.comments=e.githubComments,t.createIssueModel(n)}))}},{key:"updateIssueWithComment",value:function(e,t){var n=this;return this.githubService.updateIssueComment(t).pipe(ge(function(t){return e.githubComments=[t].concat(d(e.githubComments.filter(function(e){return e.id!==t.id}))),n.updateIssue(e)}))}},{key:"updateTesterResponse",value:function(e,t){var n=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),i=e.clone(this.phaseService.currentPhase);return i.status=kj.Done,Ck([n,this.updateIssue(i)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateTesterResponse(n),i}))}},{key:"updateTutorResponse",value:function(e,t){return Ck([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createTeamResponse",value:function(e){var t=this,n=e.createGithubTeamResponse();return this.githubService.createIssueComment(e.id,n).pipe(ge(function(n){return e.githubComments=[n].concat(d(e.githubComments.filter(function(e){return e.id!==n.id}))),t.updateIssue(e)}))}},{key:"createTutorResponse",value:function(e,t){return Ck([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createGithubIssueDescription",value:function(e){return this.phaseService.currentPhase===LF.phaseModeration?"# Issue Description\n".concat(e.createGithubIssueDescription(),"\n# Team's Response\n").concat(e.teamResponse,"\n # Disputes\n\n").concat(this.getIssueDisputeString(e.issueDisputes),"\n"):e.createGithubIssueDescription()}},{key:"getIssueDisputeString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"deleteIssue",value:function(e){var t=this;return this.githubService.closeIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.deleteFromLocalStore(n),n}))}},{key:"deleteFromLocalStore",value:function(e){var t=e.id,n=(0,QP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=n,this.issues$.next(Object.values(this.issues))}},{key:"updateLocalStore",value:function(e){this.issues=Object.assign(Object.assign({},this.issues),D({},e.id,e)),this.issues$.next(Object.values(this.issues))}},{key:"hasTeamResponse",value:function(e){return!!this.issues[e].teamResponse}},{key:"getDuplicateIssuesFor",value:function(e){return this.issues$.pipe(ie(function(t){return t.filter(function(t){return t.duplicateOf===e.id})}))}},{key:"reset",value:function(){this.issues=void 0,this.sessionId=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new lg(!1)}},{key:"initializeData",value:function(){if(null!=this.issues)return Oh(Object.values(this.issues));var e=[];if(this.phaseService.currentPhase===LF.phaseBugReporting)for(var t=0;t<10;t++)e.push(rG());for(var n=0,i=e;n0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}},{key:"createLabel",value:function(e,t){return"".concat(e,".").concat(t)}},{key:"extractTeamIdFromGithubIssue",value:function(e){return e.findLabel(eF.LABELS.tutorial).concat("-").concat(e.findLabel(eF.LABELS.team))}},{key:"createIssueModel",value:function(e){switch(this.phaseService.currentPhase){case LF.phaseBugReporting:return yj.createPhaseBugReportingIssue(e);case LF.phaseTeamResponse:return yj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));case LF.phaseTesterResponse:return yj.createPhaseTesterResponseIssue(e);case LF.phaseModeration:return yj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));default:return}}},{key:"setIssueTeamFilter",value:function(e){e&&(this.issueTeamFilter=e)}},{key:"setSessionId",value:function(e){this.sessionId=e}},{key:"getIssueTeamFilter",value:function(){return this.issueTeamFilter}}])}();return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Nj),$i(wF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function aG(e,t,n,i,r){return HP.test?new sG(e,n,i):new Hj(e,t,n,i,r)}function oG(){var e=new nk,t=e.link;return e.link=function(n,i,r){return t.call(e,n,i,r).replace(/^
    ':' '},{renderer:e,gfm:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!1}}var uG=w(94989),lG=w(66795),cG=w.n(lG),dG=function(){function e(e){var t=e.batchInterval,n=e.batchMax,i=e.batchHandler,r=e.batchKey;this.queuedRequests=new Map,this.batchInterval=t,this.batchMax=n||0,this.batchHandler=i,this.batchKey=r||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=(0,eb.pi)({},e),i=!1,r=this.batchKey(e.operation);return n.observable||(n.observable=new nb.y$(function(e){t.queuedRequests.has(r)||t.queuedRequests.set(r,[]),i||(t.queuedRequests.get(r).push(n),i=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(r).length&&t.scheduleQueueConsumption(r),t.queuedRequests.get(r).length===t.batchMax&&t.consumeQueue(r)})),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var i=n.map(function(e){return e.operation}),r=n.map(function(e){return e.forward}),s=[],a=[],o=[],u=[];n.forEach(function(e,t){s.push(e.observable),a.push(e.next),o.push(e.error),u.push(e.complete)});var l=this.batchHandler(i,r)||nb.y$.of(),c=function(e){o.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return l.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,c(t)}e.forEach(function(e,t){a[t]&&a[t].forEach(function(t){return t(e)})})},error:c,complete:function(){u.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),s}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";setTimeout(function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)},this.batchInterval)},e}();!function(e){function t(t){var n=e.call(this)||this,i=t||{},r=i.batchInterval,s=i.batchMax,a=i.batchHandler,o=i.batchKey;return n.batcher=new dG({batchInterval:void 0===r?10:r,batchMax:void 0===s?0:s,batchHandler:void 0===a?function(){return null}:a,batchKey:void 0===o?function(){return""}:o}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}(0,eb.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})}}(tb.i0);var hG=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).httpClient=e,i.options=n,i.print=uG.S,i.options.operationPrinter&&(i.print=i.options.operationPrinter),i.requester=function(e){return new X_.y$(function(t){var n=e.getContext(),r=function(e,t){return function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]>7==0?1:(224&n)>>5==6?2:(240&n)>>4==14?3:(240&n)>>4==15?4:1},l=function(e,t,n){var i=Uint8Array.from({length:t},function(t,i){return n.getUint8(e+i)});return a.decode(i)},c=function(e){for(var t,n=0,i=0;i>=8,i++;n++}return n},h=function(){return(e=h||(h={})).STRING="string",e.ARRAY_BUFFER="arrayBuffer",e.TYPED_ARRAY="typedArray",e.DATA_VIEW="dataView",h;var e}(),p=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var r=s.encode(e);t=new DataView(r.buffer),n=h.STRING}else if(e instanceof ArrayBuffer)t=new DataView(e),n=h.ARRAY_BUFFER;else if(function(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array}(e))t=new DataView(e.buffer),n=h.TYPED_ARRAY;else{if(!(e instanceof DataView))throw new Error("Cannot process input. Must be a string, ArrayBuffer, TypedArray, or DataView. but got "+typeof e);t=e,n=h.DATA_VIEW}return{dataView:t,inputType:n,isError:!1,error:null,result:null,data:i,index:0}},f=function(e,t){return N(q({},e),{isError:!0,error:t})},v=function(e,t){return N(q({},e),{result:t})},y=function(e,t){return N(q({},e),{data:t})},_=function(e,t,n){return N(q({},e),{result:t,index:n})},b=function(){function e(t){g(this,e),this.p=t}return m(e,[{key:"run",value:function(e){var t=p(e),n=this.p(t);return n.isError?{isError:!0,error:n.error,index:n.index,data:n.data}:{isError:!1,result:n.result,index:n.index,data:n.data}}},{key:"fork",value:function(e,t,n){var i=p(e),r=this.p(i);return r.isError?t(r.error,r):n(r.result,r)}},{key:"map",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?i:v(i,t(i.result))})}},{key:"chain",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?i:t(i.result).p(i)})}},{key:"ap",value:function(t){var n=this.p;return new e(function(e){if(e.isError)return e;var i=n(e);if(i.isError)return i;var r=t.p(i);return r.isError?r:v(r,r.result(i.result))})}},{key:"errorMap",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?f(i,t({isError:!0,error:i.error,index:i.index,data:i.data})):i})}},{key:"errorChain",value:function(t){var n=this.p;return new e(function(e){var i=n(e);if(i.isError){var r=i.error,s=i.index,a=i.data;return t({isError:!0,error:r,index:s,data:a}).p(N(q({},i),{isError:!1}))}return i})}},{key:"mapFromData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError&&i.error?i:v(i,t({isError:!1,result:i.result,data:i.data,index:i.index}))})}},{key:"chainFromData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError&&i.error?i:t({result:i.result,data:i.data}).p(i)})}},{key:"mapData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return y(i,t(i.data))})}}],[{key:"of",value:function(t){return new e(function(e){return v(e,t)})}}])}(),k=/[0-9]/,w=/[a-zA-Z]/,S=/ParseError.+Expecting/,E=new b(function(e){return e.isError?e:v(e,e.data)});function D(e){return new b(function(t){return t.isError?t:y(t,e)})}function x(e){return new b(function(t){return t.isError?t:y(t,e(t.data))})}function C(e){return function(t){return D(t).chain(function(){return e})}}function L(e){return new b(function(t){var n,i=t,r=M(e);try{for(r.s();!(n=r.n()).done;){i=n.value.p(i)}}catch(s){r.e(s)}finally{r.f()}return i})}function A(e){return new b(function(t){return L(d(e).reverse()).p(t)})}function O(e){return new b(function(t){return e(t),t})}function I(e){return function(t){return e.run(t)}}function R(e){return new b(function(t){return t.isError?t:e(t.result).p(t)})}function P(e){return new b(function(t){return t.isError?t:f(t,e)})}var F=b.of;function Y(e){return new b(function(t){if(t.isError)return t;var n=e.p(t);return v(N(q({},n),{isError:!1}),{isError:n.isError,value:n.isError?n.error:n.result})})}function j(e){return new b(function(t){for(var n,i=e(),r=t;;){var s=i.next(n),a=s.value;if(s.done)return v(r,a);if(!(a&&a instanceof b))throw new Error("[coroutine] yielded values must be Parsers, got ".concat(s.value,"."));if((r=a.p(r)).isError)return r;n=r.result}})}function H(e){if("number"!=typeof e||e<=0)throw new TypeError("exactly must be called with a number > 0, but got ".concat(e));return function(t){return new b(function(n){if(n.isError)return n;for(var i=[],r=n,s=0;s=i.dataView.byteLength)break}return v(i,n)})},U=function(e){return new b(function(t){if(t.isError)return t;var n=B(e).p(t);return n.result.length?n:f(t,"ParseError 'many1' (position ".concat(t.index,"): Expecting to match at least one value"))})};function z(e){return new b(function(t){return t.isError?t:v(t,e(t.result))})}function V(e){return new b(function(t){return t.isError?f(t,e(t.error,t.index,t.data)):t})}var G=function(e){if(!e||1!==c(e))throw new TypeError("char must be called with a single character, but got ".concat(e));return new b(function(t){if(t.isError)return t;var n=t.index,i=t.dataView;if(n 1, but got ".concat(e));var t=s.encode(e);return new b(function(n){var i=n.index,r=n.dataView;if(r.byteLength-i=1){var a=r.match(e);return a?_(t,a[0],i+s.encode(a[0]).byteLength):f(t,"ParseError (position ".concat(i,"): Expecting string matching '").concat(e,"', got '").concat(r.slice(0,5),"...'"))}return f(t,"ParseError (position ".concat(i,"): Expecting string matching '").concat(e,"', but got end of input."))})}var K=new b(function(e){if(e.isError)return e;var t=e.dataView,n=e.index;if(t.byteLength>n){var i=u(n,t);if(n+i<=t.byteLength){var r=l(n,i,t);return t.byteLength&&r&&k.test(r)?_(e,r,n+i):f(e,"ParseError (position ".concat(n,"): Expecting digit, got '").concat(r,"'"))}}return f(e,"ParseError (position ".concat(n,"): Expecting digit, but got end of input."))}),J=$(/^[0-9]+/).errorMap(function(e){var t=e.index;return"ParseError (position ".concat(t,"): Expecting digits")}),X=new b(function(e){if(e.isError)return e;var t=e.index,n=e.dataView;if(n.byteLength>t){var i=u(t,n);if(t+i<=n.byteLength){var r=l(t,i,n);return n.byteLength&&r&&w.test(r)?_(e,r,t+i):f(e,"ParseError (position ".concat(t,"): Expecting letter, got '").concat(r,"'"))}}return f(e,"ParseError (position ".concat(t,"): Expecting letter, but got end of input."))}),ee=$(/^[a-zA-Z]+/).errorMap(function(e){var t=e.index;return"ParseError (position ".concat(t,"): Expecting letters")});function te(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index;if(n.byteLength>i){var r=u(i,n);if(i+r<=n.byteLength){var s=l(i,r,n);return e.includes(s)?_(t,s,i+r):f(t,"ParseError (position ".concat(i,'): Expecting any of the string "').concat(e,'", got ').concat(s))}}return f(t,"ParseError (position ".concat(i,'): Expecting any of the string "').concat(e,'", but got end of input.'))})}function ne(e){return new b(function(t){if(t.isError)return t;var n,i={},r=t,s=M(e);try{for(s.s();!(n=s.n()).done;){var a=T(n.value,2),o=a[0],u=a[1].p(r);if(u.isError)return u;r=u,i[o]=u.result}}catch(l){s.e(l)}finally{s.f()}return v(r,i)})}function ie(e){return new b(function(t){if(t.isError)return t;for(var n=e.length,i=new Array(n),r=t,s=0;si.index)&&(i=s)}}catch(a){r.e(a)}finally{r.f()}return i})}function oe(e){return function(t){return function(n){return ie([e,n,t]).map(function(e){var t=T(e,2);t[0];return t[1]})}}}function ue(e){return new b(function(t){if(t.isError)return t;for(var n=[],i=t;e.p(i).isError;){var r=i,s=r.index,a=r.dataView;if(a.byteLength<=s)return f(i,"ParseError 'everythingUntil' (position ".concat(i.index,"): Unexpected end of input."));var o=a.getUint8(s);o&&(n.push(o),i=_(i,o,s+1))}return v(i,n)})}var le=function(e){return ue(e).map(function(e){return a.decode(Uint8Array.from(e))})},ce=function(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index,r=e.p(t);return r.isError?_(t,n.getUint8(i),i+1):f(t,"ParseError 'anythingExcept' (position ".concat(i,"): Matched '").concat(r.result,"' from the exception parser"))})},de=function(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index,r=e.p(t);if(r.isError){if(i0?f(e,"ParseError 'startOfInput' (position ".concat(t,"): Expected start of input'")):e}),ge=new b(function(e){if(e.isError)return e;var t=e.dataView,n=e.index,i=e.inputType;if(n!==t.byteLength){var r=i===h.STRING?String.fromCharCode(t.getUint8(n)):"0x".concat(t.getUint8(n).toString(16).padStart(2,"0"));return f(e,"ParseError 'endOfInput' (position ".concat(n,"): Expected end of input but got '").concat(r,"'"))}return v(e,null)}),ve=$(/^\s+/).errorMap(function(e){var t=e.index;return"ParseError 'many1' (position ".concat(t,"): Expecting to match at least one value")}),ye=pe(ve).map(function(e){return e||""});function _e(e){return new b(function(t){return e().p(t)})}function be(e){return function(t){return e.chain(function(){return t})}}var ke=function(e){return function(t){return e.chain(function(e){return t.map(function(){return e})})}};function we(e){return!0===e.isError?Promise.reject({error:e.error,index:e.index,data:e.data}):Promise.resolve(e.result)}function Se(e){if(!0===e.isError){var t=new Error(String(e.error)||"null");throw t.parseIndex=e.index,t.data=e.data,t}return e.result}},30744:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5202);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return a(e,[])}function a(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var s=r.call(e);if(s!==e)return"string"==typeof s?s:a(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],s=0;s1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map(function(n){return n+": "+a(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5202:function(e,t){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},10290:function(e,t,n){"use strict";n.d(t,{Ye:function(){return s},WU:function(){return a},UG:function(){return o}});var i=n(5202);function r(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}var s=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();r(s);var a=function(){function e(e,t,n,i,r,s,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=s,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function o(e){return null!=e&&"string"==typeof e.kind}r(a)},12032:function(e,t,n){"use strict";function i(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,s=null,a=0;as&&r(t[a-1]);)--a;return t.slice(s,a).join("\n")}function r(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],s='"'===e[e.length-1],a="\\"===e[e.length-1],o=!i||s||a||n,u="";return o&&!(i&&r)&&(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,o&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return i},LZ:function(){return s}})},94989:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var i=n(61335),r=n(12032);function s(e){return(0,i.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,i=c("(",u(e.variableDefinitions,", "),")"),r=u(e.directives," "),s=e.selectionSet;return n||r||i||"query"!==t?u([t,u([n,i]),r,s]," "):s},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+c(" = ",e.defaultValue)+c(" ",u(t," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.name,n=e.arguments,i=e.directives,r=e.selectionSet,s=c("",e.alias,": ")+t,a=s+c("(",u(n,", "),")");return a.length>80&&(a=s+c("(\n",d(u(n,"\n")),"\n)")),u([a,u(i," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.directives,n=e.selectionSet;return u(["...",c("on ",e.typeCondition),u(t," "),n]," ")},FragmentDefinition:function(e){var t=e.typeCondition,n=e.variableDefinitions,i=e.directives,r=e.selectionSet;return"fragment ".concat(e.name).concat(c("(",u(n,", "),")")," ")+"on ".concat(t," ").concat(c("",u(i," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,r.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:o(function(e){var t=e.operationTypes;return u(["schema",u(e.directives," "),l(t)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:o(function(e){return u(["scalar",e.name,u(e.directives," ")]," ")}),ObjectTypeDefinition:o(function(e){var t=e.directives,n=e.fields;return u(["type",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")}),FieldDefinition:o(function(e){var t=e.arguments,n=e.type,i=e.directives;return e.name+(p(t)?c("(\n",d(u(t,"\n")),"\n)"):c("(",u(t,", "),")"))+": "+n+c(" ",u(i," "))}),InputValueDefinition:o(function(e){var t=e.directives;return u([e.name+": "+e.type,c("= ",e.defaultValue),u(t," ")]," ")}),InterfaceTypeDefinition:o(function(e){var t=e.directives,n=e.fields;return u(["interface",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")}),UnionTypeDefinition:o(function(e){var t=e.types;return u(["union",e.name,u(e.directives," "),t&&0!==t.length?"= "+u(t," | "):""]," ")}),EnumTypeDefinition:o(function(e){var t=e.values;return u(["enum",e.name,u(e.directives," "),l(t)]," ")}),EnumValueDefinition:o(function(e){return u([e.name,u(e.directives," ")]," ")}),InputObjectTypeDefinition:o(function(e){var t=e.fields;return u(["input",e.name,u(e.directives," "),l(t)]," ")}),DirectiveDefinition:o(function(e){var t=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+e.name+(p(t)?c("(\n",d(u(t,"\n")),"\n)"):c("(",u(t,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")}),SchemaExtension:function(e){var t=e.operationTypes;return u(["extend schema",u(e.directives," "),l(t)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,n=e.fields;return u(["extend type",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")},InterfaceTypeExtension:function(e){var t=e.directives,n=e.fields;return u(["extend interface",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")},UnionTypeExtension:function(e){var t=e.types;return u(["extend union",e.name,u(e.directives," "),t&&0!==t.length?"= "+u(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return u(["extend enum",e.name,u(e.directives," "),l(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return u(["extend input",e.name,u(e.directives," "),l(t)]," ")}};function o(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function l(e){return c("{\n",d(u(e,"\n")),"\n}")}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function d(e){return c(" ",e.replace(/\n/g,"\n "))}function h(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(h)}},61335:function(e,t,n){"use strict";n.d(t,{$_:function(){return a},Vn:function(){return o}});var i=n(30744),r=n(10290),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,o=void 0,l=Array.isArray(e),c=[e],d=-1,h=[],p=void 0,f=void 0,m=void 0,g=[],v=[],y=e;do{var _=++d===c.length,b=_&&0!==h.length;if(_){if(f=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),b){if(l)p=p.slice();else{for(var k={},w=0,S=Object.keys(p);w dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.2"}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"CATcher","version":"3.5.3","main":"main.js","engines":{"node":">=14.0.0"},"scripts":{"ng":"ng","build:staging":"npm run codegen:gql && ng build --c staging --base-href=https://catcher-org.github.io/CATcher-staging/","build:prod:web":"npm run codegen:gql && ng build --configuration production --base-href=https://CATcher-org.github.io/CATcher/","ng:serve":"npm run codegen:gql && ng serve","ng:serve:web":"npm run ng:serve -- -o","deploy:staging":"npm run build:staging && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","ng:serve:test":"npm run ng:serve -- --configuration=test -o","deploy:web":"npm run build:prod:web && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","test":"npm run codegen:gql && ng test","e2e":"npx playwright test --headed --project=chromium --workers=1","lint":"ng lint","lint:fix":"ng lint --fix","codegen:gql":"graphql-codegen --config codegen.yml","codegen:gql-watch":"graphql-codegen --config -w codegen.yml","pretty-quick":"pretty-quick"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","pre-push":"npm run lint && npm run test"}},"dependencies":{"@angular/animations":"^12.2.17","@angular/cdk":"^12.2.13","@angular/common":"^12.2.17","@angular/compiler":"^12.2.17","@angular/core":"^12.2.17","@angular/forms":"^12.2.17","@angular/localize":"^12.2.17","@angular/material":"^12.2.13","@angular/platform-browser":"^12.2.17","@angular/platform-browser-dynamic":"^12.2.17","@angular/router":"^12.2.17","@apollo/client":"3.3.0","@github/markdown-toolbar-element":"^2.1.1","@octokit/rest":"^16.37.0","ajv":"^6.11.0","apollo-angular":"^2.6.0","arcsecond":"^4.1.0","core-js":"^3.16.4","diff-match-patch":"^1.0.4","graphql":"^15.0.0","karma-spec-reporter":"0.0.32","moment":"^2.24.0","ngx-markdown":"^12.0.1","ngx-mat-select-search":"^3.3.3","rxjs":"6.6.7","tslib":"^2.0.0","uuid":"7.0.3","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"~12.2.18","@angular-eslint/builder":"12.7.0","@angular-eslint/eslint-plugin":"12.7.0","@angular-eslint/eslint-plugin-template":"12.7.0","@angular-eslint/schematics":"12.7.0","@angular-eslint/template-parser":"12.7.0","@angular/cli":"^12.2.18","@angular/compiler-cli":"^12.2.17","@angular/language-service":"^12.2.17","@graphql-codegen/cli":"2.16.4","@graphql-codegen/fragment-matcher":"^1.17.7","@graphql-codegen/typescript":"1.17.7","@graphql-codegen/typescript-document-nodes":"1.17.7","@graphql-codegen/typescript-operations":"^1.18.4","@graphql-codegen/typescript-resolvers":"^1.20.0","@octokit/graphql-schema":"^8.24.0","@playwright/test":"~1.33","@types/dompurify":"^2.3.1","@types/jasmine":"^3.8.2","@types/jasminewd2":"2.0.8","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"4.28.2","@typescript-eslint/parser":"4.28.2","angular-cli-ghpages":"^1.0.0-rc.2","eslint":"^7.26.0","husky":"^4.2.5","jasmine":"^3.9.0","jasmine-core":"~3.8.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.4.2","karma-chrome-launcher":"^3.1.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-firefox-launcher":"^2.1.1","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.1.5","prettier":"2.2.1","pretty-quick":"^3.1.1","scuri":"^0.9.4","ts-node":"^10.9.2","tslint-config-prettier":"^1.18.0","typescript":"4.3.5"}}')}},function(e){e(e.s=69200)}])}(); \ No newline at end of file +!function(){var e,t,n,i,r,s,a,o,u,l;function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function d(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=p(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},h.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}function f(e,t){for(var n=0;n=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=L(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function L(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),d=new u;function h(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var p=[];function f(e,t){if(!e)throw new Error(t||"assertion failure")}function m(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var g=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return this.value[0]},e.prototype.recompute=function(e){return f(!this.recomputing,"already recomputing"),function(e){var t=d.getValue();t&&(e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?k(t,e):w(t,e))}(this),y(this)?function(e,t){return E(e),d.withValue(e,v,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{h(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!y(e)&&b(e)}(e),m(e.value)}(this,e):m(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,_(this),E(this),h(this))},e.prototype.dispose=function(){var e=this;E(this),h(this),this.parents.forEach(function(t){t.setDirty(),T(t,e)})},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=p.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach(function(t){return t.delete(e)}),this.deps.clear(),p.push(this.deps),this.deps=null)},e.count=0,e}();function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function y(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function _(e){e.parents.forEach(function(t){return k(t,e)})}function b(e){e.parents.forEach(function(t){return w(t,e)})}function k(e,t){if(f(e.childValues.has(t)),f(y(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=p.pop()||new Set;e.dirtyChildren.add(t),_(e)}function w(e,t){f(e.childValues.has(t)),f(!y(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),S(e,t),!y(e)&&b(e)}function S(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(p.length<100&&p.push(n),e.dirtyChildren=null))}function E(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){T(e,n)}),e.forgetDeps(),f(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),S(e,t)}var D=function(){return Object.create(null)},x=Array.prototype,C=x.forEach,M=x.slice,L=function(){function e(e,t){void 0===t&&(t=D),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(i){U.call(n,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete n[i])});var i=Object.keys(n);if(i.length){for(var r=this;r instanceof ne;)r=r.parent;i.forEach(function(e){return r.delete(e)})}return i},e.prototype.findChildRefIds=function(e){if(!U.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),i=function(e){return null!==e&&"object"==typeof e};n.forEach(function(e){(0,Y.hh)(e)?t[e.__ref]=!0:i(e)&&Object.values(e).filter(i).forEach(n.add,n)})}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(c&&!o)throw l.missing[0];return{result:l.result,missing:l.missing,complete:!c}},e.prototype.isFresh=function(e,t,n,i){if(re(i.store)&&this.knownResults.get(e)===n){var r=this.executeSelectionSet.peek(n,t,i);if(r&&e===r.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,i=e.objectOrReference,r=e.context;if((0,Y.hh)(i)&&!r.policies.rootTypenamesById[i.__ref]&&!r.store.has(i.__ref))return{result:{},missing:[se(new H.ej(4),r)]};var s=r.variables,a=r.policies,o=[],u={result:null},l=r.store.getFieldValue(i,"__typename");function c(){return u.missing||(u.missing=[])}function d(e){var t;return e.missing&&(t=c()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof l&&!a.rootIdsByTypename[l]&&o.push({__typename:l});var h=new Set(n.selections);return h.forEach(function(e){var n;if((0,Y.LZ)(e,s))if((0,Y.My)(e)){var u=a.readField({fieldName:e.name.value,field:e,variables:r.variables,from:i},r),p=(0,Y.u2)(e);r.path.push(p);var f=r.clientOnly;r.clientOnly=f||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0===u?Y.Gw.added(e)||c().push(se(new H.ej(5),r)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,context:r})):e.selectionSet&&null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,context:r}))),void 0!==u&&o.push(((n={})[p]=u,n)),r.clientOnly=f,(0,H.kG)(r.path.pop()===p)}else{var m=(0,Y.hi)(e,r.fragmentMap);m&&a.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(h.add,h)}}),u.result=(0,Y.bw)(o),this.knownResults.set(u.result,n),u},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,i=e.field,r=e.array,s=e.context;function a(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,H.kG)(s.path.pop()===n),e.result}return i.selectionSet&&(r=r.filter(s.store.canRead)),{result:r=r.map(function(e,t){return null===e?null:(s.path.push(t),Array.isArray(e)?a(n.executeSubSelectedArray({field:i,array:e,context:s}),t):i.selectionSet?a(n.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,context:s}),t):((0,H.kG)(s.path.pop()===t),e))}),missing:t}},e}(),oe=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,n=e.result,i=e.dataId,r=e.store,s=e.variables,a=(0,Y.$H)(t),o=new Y.w0;s=(0,N.pi)((0,N.pi)({},(0,Y.O4)(a)),s);var u=this.processSelectionSet({result:n||Object.create(null),dataId:i,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:{store:r,written:Object.create(null),merge:function(e,t){return o.merge(e,t)},variables:s,varString:JSON.stringify(s),fragmentMap:(0,Y.F)((0,Y.kU)(t))}});if(!(0,Y.hh)(u))throw new H.ej(7);return r.retain(u.__ref),u},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,i=e.result,r=e.selectionSet,s=e.context,a=e.mergeTree,o=this.cache.policies,u=o.identify(i,r,s.fragmentMap),l=u[1];if("string"==typeof(n=n||u[0])){var c=s.written[n]||(s.written[n]=[]),d=(0,Y.kQ)(n);if(c.indexOf(r)>=0||(c.push(r),this.reader&&this.reader.isFresh(i,d,r,s)))return d}var h=Object.create(null);l&&(h=s.merge(h,l));var p=n&&o.rootTypenamesById[n]||(0,Y.qw)(i,r,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof p&&(h.__typename=p);var f=new Set(r.selections);if(f.forEach(function(e){var n;if((0,Y.LZ)(e,s.variables))if((0,Y.My)(e)){var r=(0,Y.u2)(e),u=i[r];if(void 0!==u){var l=o.getStoreFieldName({typename:p,fieldName:e.name.value,field:e,variables:s.variables}),c=le(a,l),d=t.processFieldValue(u,e,s,c),m=e.selectionSet&&s.store.getFieldValue(d,"__typename")||void 0,g=o.getMergeFunction(p,e.name.value,m);g?c.info={field:e,typename:p,merge:g}:ce(a,l),h=s.merge(h,((n={})[l]=d,n))}else if(o.usingPossibleTypes&&!(0,Y.FS)(["defer","client"],e))throw new H.ej(8)}else{var v=(0,Y.hi)(e,s.fragmentMap);v&&o.fragmentMatches(v,p,i,s.variables)&&v.selectionSet.selections.forEach(f.add,f)}}),"string"==typeof n){var m=(0,Y.kQ)(n);return a.map.size&&(h=this.applyMerges(a,m,h,s)),s.store.merge(n,h),m}return h},e.prototype.processFieldValue=function(e,t,n,i){var r=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,s){var a=r.processFieldValue(e,t,n,le(i,s));return ce(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i}):e},e.prototype.applyMerges=function(e,t,n,i,r){var s,a=this;if(e.map.size&&!(0,Y.hh)(n)){var o=Array.isArray(n)||!(0,Y.hh)(t)&&!W(t)?void 0:t,u=n;o&&!r&&(r=[(0,Y.hh)(o)?o.__ref:o]);var l,c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){r&&r.push(t);var n=c(o,t),s=c(u,t),d=a.applyMerges(e,n,s,i,r);d!==s&&(l=l||new Map).set(t,d),r&&(0,H.kG)(r.pop()===t)}),l&&(n=Array.isArray(u)?u.slice(0):(0,N.pi)({},u),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,r&&(s=i.store).getStorage.apply(s,r)):n},e}(),ue=[];function le(e,t){var n=e.map;return n.has(t)||n.set(t,ue.pop()||{map:new Map}),n.get(t)}function ce(e,t){var n=e.map,i=n.get(t);i&&!i.info&&!i.map.size&&(ue.push(i),n.delete(t))}new Set;var de=A(),he=new u;function pe(e,t){if(e.size){var n=[];e.forEach(function(e){return n.push(e)}),e.clear(),n.forEach(t)}}var fe=new WeakMap;function me(e){var t=new Set,n=new Set,i=function i(s){if(arguments.length>0)e!==s&&(e=s,de.dirty(i),t.forEach(ge),pe(n,function(t){return t(e)}));else{var a=he.getValue();a&&r(a),de(i)}return e};i.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=i.attachCache=function(e){t.add(e);var n=fe.get(e);return n||fe.set(e,n=new Set),n.add(i),i};return i.forgetCache=function(e){var n=t.delete(e);if(n){var r=fe.get(e);r&&r.delete(i)}return n},i}function ge(e){e.broadcastWatches&&e.broadcastWatches()}function ve(e){return void 0!==e.args?e.args:e.field?(0,Y.NC)(e.field,e.variables):null}var ye=function(e,t){var n=e.__typename,i=e.id,r=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==i?{id:i}:void 0!==r?{_id:r}:void 0),void 0===i&&(i=r),void 0!==i))return n+":"+("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))},_e=function(){},be=function(e,t){return t.fieldName},ke=function(e,t,n){return(0,n.mergeObjects)(e,t)},we=function(e,t){return t},Se=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,N.pi)({dataIdFromObject:ye},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var i=t&&n?(0,Y.qw)(e,t,n):e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var r,s={typename:i,selectionSet:t,fragmentMap:n},a=i&&this.getTypePolicy(i),o=a&&a.keyFn||this.config.dataIdFromObject;o;){var u=o(e,s);if(!Array.isArray(u)){r=u;break}o=xe(u)}return r=r&&String(r),s.keyObject?[r,s.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n];U.call(t.toBeAdded,n)?t.toBeAdded[n].push(i):t.toBeAdded[n]=[i]})},e.prototype.updateTypePolicy=function(e,t){var n=this,i=this.getTypePolicy(e),r=t.keyFields,s=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ke:!1===t?we:e.merge}a(i,t.merge),t.queryType&&this.setRootTypename("Query",e),t.mutationType&&this.setRootTypename("Mutation",e),t.subscriptionType&&this.setRootTypename("Subscription",e),i.keyFn=!1===r?_e:Array.isArray(r)?xe(r):"function"==typeof r?r:i.keyFn,s&&Object.keys(s).forEach(function(t){var i=n.getFieldPolicy(e,t,!0),r=s[t];if("function"==typeof r)i.read=r;else{var o=r.keyArgs,u=r.read,l=r.merge;i.keyFn=!1===o?be:Array.isArray(o)?De(o):"function"==typeof o?o:i.keyFn,"function"==typeof u&&(i.read=u),a(i,l)}i.read&&i.merge&&(i.keyFn=i.keyFn||be)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&((0,H.kG)(!i||i===e,1),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var i=e.match(z);(!i||i[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!U.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),r=i.fields,s=(0,N._T)(i,["fields"]);Object.assign(n,s),Object.assign(n.fields,r)})}var r=this.toBeAdded[e];return r&&r.length&&this.updateTypePolicy(e,Y.oA.apply(void 0,r.splice(0))),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var i=this.getTypePolicy(e).fields;return i[t]||n&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,i){var r=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),o=[a],u=function(e){var t=r.getSupertypeSet(e,!1);t&&t.size&&o.indexOf(t)<0&&o.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=0;c=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new l.c({graphQLErrors:r.errors}));e.markResult(r,n,t),e.markReady()}var o={data:r.data,loading:!1,networkStatus:e.networkStatus||d.I.ready};return s&&"ignore"!==n.errorPolicy&&(o.errors=r.errors),o},function(t){var n=(0,l.M)(t)?t:new l.c({networkError:t});throw i>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var i=this;void 0===n&&(n=d.I.loading);var r=this.transform(t.query).document,s=this.getVariables(r,t.variables),o=this.getQuery(e),u=o.networkStatus,l=t.fetchPolicy,c=void 0===l?"cache-first":l,h=t.errorPolicy,p=void 0===h?"none":h,f=t.returnPartialData,m=void 0!==f&&f,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,_=void 0===y?{}:y;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&v&&"number"==typeof u&&u!==n&&(0,d.O)(n)&&("cache-first"!==c&&(c="cache-and-network"),m=!0);var b=Object.assign({},t,{query:r,variables:s,fetchPolicy:c,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:v,context:_}),k=function(e){return b.variables=e,i.fetchQueryByPolicy(o,b,n)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return w.cancel(e)})});var w=new a.X_(this.transform(b.query).hasClientExports?this.localState.addExportedVariables(b.query,b.variables,b.context).then(k):k(b.variables));return w.cleanup(function(){i.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)}),w},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,s=t.query,o=t.variables,u=t.fetchPolicy,l=t.errorPolicy,c=t.returnPartialData,h=t.context;e.init({document:s,variables:o,lastRequestId:this.generateRequestId(),networkStatus:n});var p=function(){return e.getDiff(o)},f=function(t,n){void 0===n&&(n=e.networkStatus||d.I.loading);var u=t.result,l=function(e){return a.y$.of((0,i.pi)({data:e,loading:(0,d.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return r.transform(s).hasForcedResolvers?r.localState.runResolvers({document:s,remoteResult:{data:u},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data)}):l(u)},m=function(t){return r.getResultsFromLink(e,t,{variables:o,context:h,fetchPolicy:u,errorPolicy:l})};switch(u){default:case"cache-first":return(g=p()).complete?[f(g,e.markReady())]:c?[f(g),m(!0)]:[m(!0)];case"cache-and-network":var g;return(g=p()).complete||c?[f(g),m(!0)]:[m(!0)];case"cache-only":return[f(p(),e.markReady())];case"network-only":return[m(!0)];case"no-cache":return[m(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new y(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,i.pi)((0,i.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function w(e,t){return(0,a.oA)(e,t,t.variables&&{variables:(0,i.pi)((0,i.pi)({},e.variables),t.variables)})}var S=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,i=e.cache,a=e.ssrMode,u=void 0!==a&&a,l=e.ssrForceFetchDelay,c=void 0===l?0:l,d=e.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:d,p=e.queryDeduplication,m=void 0===p||p,g=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,_=e.resolvers,b=e.typeDefs,w=e.fragmentMatcher,S=e.name,E=e.version,T=e.link;if(T||(T=n?new o.uG({uri:n,credentials:e.credentials,headers:e.headers}):s.i0.empty()),!i)throw new r.ej(9);this.link=T,this.cache=i,this.disableNetworkFetches=u||c>0,this.queryDeduplication=m,this.defaultOptions=g||{},this.typeDefs=b,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new f({cache:i,client:this,resolvers:_,fragmentMatcher:w}),this.queryManager=new k({cache:this.cache,link:this.link,queryDeduplication:m,ssrMode:u,clientAwareness:{name:S,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=w(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=w(this.defaultOptions.query,e)),(0,r.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=w(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.ht)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},4272:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var i=n(20884),r=n(13941),s=n(11913),a=n(47402),o=n(11459),u=function(){function e(e,t,n,i){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=i}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,(0,o.oA)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,r.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var i=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},a.I.poll).then(s,s):s())},s=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};s()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),l=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,s=t.options,u=e.call(this,function(e){return u.onSubscribe(e)})||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(e){(u.lastError||u.isDifferentFromLastResult(e))&&(u.updateLastResult(e),(0,o.pM)(u.observers,"next",e))},error:function(e){u.updateLastResult((0,i.pi)((0,i.pi)({},u.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:a.I.error,loading:!1})),(0,o.pM)(u.observers,"error",u.lastError=e)}},u.isTornDown=!1,u.options=s,u.queryId=n.generateQueryId();var l=(0,o.$H)(s.query);return u.queryName=l&&l.name&&l.name.value,u.queryManager=n,u.queryInfo=r,u}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var i={next:function(n){t(n),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){r.unsubscribe()},0)},error:n},r=e.subscribe(i)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||a.I.ready,r=(0,i.pi)((0,i.pi)({},t),{loading:(0,a.O)(n),networkStatus:n});if(this.isTornDown)return r;var s=this.options.fetchPolicy,o=void 0===s?"cache-first":s;if("no-cache"===o||"network-only"===o)delete r.partial;else if(!r.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();r.data=u.complete||this.options.returnPartialData?u.result:void 0,u.complete?(r.networkStatus===a.I.loading&&("cache-first"===o||"cache-only"===o)&&(r.networkStatus=a.I.ready,r.loading=!1),delete r.partial):r.partial=!0}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!(0,s.D)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,s.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,a.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,i.pi)((0,i.pi)({},e.query?e:(0,i.pi)((0,i.pi)((0,i.pi)({},this.options),e),{variables:(0,i.pi)((0,i.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=a.I.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,a.I.fetchMore).then(function(i){var r=i.data,s=e.updateQuery;return s?t.updateQuery(function(e){return s(e,{fetchMoreResult:r,variables:n.variables})}):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:r}),i}).finally(function(){t.queryManager.stopQuery(r),t.reobserve()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,{subscriptionData:n,variables:t.variables})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if((0,s.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,i={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(i.fetchPolicy="cache-and-network",i.nextFetchPolicy=n),this.reobserve(i,a.I.setVariables)},t.prototype.updateQuery=function(e){var t,n=this.queryManager,i=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});i&&(n.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,o.Xh)(e),(0,o.Of)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=c)}catch(r){}var i=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),i&&this.reobserve().catch(function(e){}),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,n=this.queryManager,r=this.queryId;return n.setObservableQuery(this),new u(this.observer,e?this.options:(0,i.pi)({},this.options),function(e,i){return n.setObservableQuery(t),n.fetchQueryObservable(r,e,i)},!n.ssrMode&&function(){return!(0,a.O)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),delete this.options.context,this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(o.y$);function c(e){}},76088:function(e,t,n){"use strict";n.d(t,{fe:function(){return i.f},h4:function(){return s.h4},ApolloLink:function(){return o.i0},y$:function(){return u.y$}});var i=n(4723),r=(n(4272),n(62433));n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n(36125);var s=n(92970),a=n(52806);n.o(a,"ApolloLink")&&n.d(t,{ApolloLink:function(){return a.ApolloLink}});var o=n(92309),u=(n(87397),n(58105),n(11459)),l=n(13941);n(74009),(0,l.U6)("warn")},47402:function(e,t,n){"use strict";n.d(t,{I:function(){return r},O:function(){return s}});var i,r=((i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",r);function s(e){return!!e&&e<7}},62433:function(){},36125:function(e,t,n){"use strict";n.d(t,{M:function(){return s},c:function(){return a}});var i=n(20884),r=n(11459);function s(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(n){var i=n.graphQLErrors,s=n.networkError,a=n.errorMessage,o=n.extraInfo,u=e.call(this,a)||this;return u.graphQLErrors=i||[],u.networkError=s||null,u.message=a||function(e){var t="";return(0,r.Of)(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){t+=(e?e.message:"Error message not found.")+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(u),u.extraInfo=o,u.__proto__=t.prototype,u}return(0,i.ZT)(t,e),t}(Error)},92309:function(e,t,n){"use strict";n.d(t,{i0:function(){return d},ht:function(){return h}});var i,r=n(20884),s=n(13941),a=n(11459),o=n(58105);function u(e,t){return t?t(e):a.y$.of()}function l(e){return"function"==typeof e?new d(e):e}function c(e){return e.request.length<=1}i=Error,(0,r.ZT)(function(e,t){var n=i.call(this,e)||this;return n.link=t,n},i);var d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return a.y$.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,i){var r=l(n),s=l(i||new e(u));return c(r)&&c(s)?new e(function(e){return t(e)?r.request(e)||a.y$.of():s.request(e)||a.y$.of()}):new e(function(e,n){return t(e)?r.request(e,n)||a.y$.of():s.request(e,n)||a.y$.of()})},e.execute=function(e,t){return e.request((0,o.zi)(t.context,(0,o.DQ)((0,o.Ak)(t))))||a.y$.of()},e.concat=function(t,n){var i=l(t);if(c(i))return i;var r=l(n);return c(r)?new e(function(e){return i.request(e,function(e){return r.request(e)||a.y$.of()})||a.y$.of()}):new e(function(e,t){return i.request(e,function(e){return r.request(e,t)||a.y$.of()})||a.y$.of()})},e.prototype.split=function(t,n,i){return this.concat(e.split(t,n,i||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new s.ej(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),h=d.execute},87397:function(e,t,n){"use strict";n.d(t,{uG:function(){return p}});var i=n(58105),r=Object.prototype.hasOwnProperty,s=n(13941),a=function(e,t){var n;try{n=JSON.stringify(e)}catch(r){var i=new s.ej(23);throw i.parseError=r,i}return n},o=n(20884),u=n(94989),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},c=n(61335),d=n(92309),h=n(11459),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,p=e.fetch,f=e.includeExtensions,m=e.useGETForQueries,g=e.includeUnusedVariables,v=void 0!==g&&g,y=(0,o._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new s.ej(22)})(p),p||(p=fetch);var _={http:{includeExtensions:f},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return new d.i0(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),s=e.getContext(),d={};if(s.clientAwareness){var g=s.clientAwareness,y=g.name,b=g.version;y&&(d["apollographql-client-name"]=y),b&&(d["apollographql-client-version"]=b)}var k,w=(0,o.pi)((0,o.pi)({},d),s.headers),S=function(e,t){for(var n=[],i=2;i=300&&(0,i.PW)(t,n,"Response not successful: Received status code "+t.status),!Array.isArray(n)&&!r.call(n,"data")&&!r.call(n,"errors")&&(0,i.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),n})}}(e)).then(function(e){return n.next(e),n.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))}),function(){k&&k.abort()}})})}(t).request)||this;return n.options=t,n}return(0,o.ZT)(t,e),t}(d.i0)},58105:function(e,t,n){"use strict";n.d(t,{zi:function(){return l},Qc:function(){return r},PW:function(){return a},DQ:function(){return c},Ak:function(){return o}});var i=n(11459);function r(e){return new i.y$(function(t){t.error(e)})}var s=n(13941),a=function(e,t,n){var i=new Error(n);throw i.name="ServerError",i.response=e,i.statusCode=e.status,i.result=t,i};function o(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n-1})}function o(e){return e&&a(["client"],e)&&a(["export"],e)}var u=n(20884);function l(e,t){var n=t,i=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new r.ej(42);"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n&&((0,r.kG)(1===i.length,43),n=i[0].name.value),(0,u.pi)((0,u.pi)({},e),{definitions:(0,u.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function c(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function d(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,r.kG)(n,44),n;default:return null}}var h=n(73324),p=n.n(h);function f(e){return{__ref:String(e)}}function m(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function g(e,t,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var s={};n.fields.map(function(e){return g(s,e.name,e.value,i)}),e[t.value]=s}else if(function(e){return"Variable"===e.kind}(n))e[t.value]=(i||{})[n.name.value];else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return g(n,t,e,i),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new r.ej(53);e[t.value]=null}}function v(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(i){return g(n[e.name.value],i.name,i.value,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){return g(i,e.name,e.value,t)})),_(e.name.value,i,n)}var y=["connection","include","skip","client","rest","export"];function _(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var i=n.connection.filter?n.connection.filter:[];i.sort();var r={};return i.forEach(function(e){r[e]=t[e]}),n.connection.key+"("+JSON.stringify(r)+")"}return n.connection.key}var s=e;if(t){var a=p()(t);s+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?s+="@"+e+"("+JSON.stringify(n[e])+")":s+="@"+e)}),s}function b(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return g(n,e.name,e.value,t)}),n}return null}function k(e){return e.alias?e.alias.value:e.name.value}function w(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var i=0,r=t.selections;i1)for(var i=new Q,r=1;r0}function oe(e){return e.errors&&e.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(se,Symbol.species,{value:K()});var ue="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function le(){for(var e=[],t=0;t]+)>;\s*rel="next"/)||[])[1],{value:t}}):Promise.resolve({done:!0})}}})}function s(e,t,n,i){return"function"==typeof n&&(i=n,n=void 0),a(e,[],r(e,t,n)[Symbol.asyncIterator](),i)}function a(e,t,n,i){return n.next().then(function(r){if(r.done)return t;var s=!1;return t=t.concat(i?i(r.value,function(){s=!0}):r.value.data),s?t:a(e,t,n,i)})}function o(e){return{paginate:Object.assign(s.bind(null,e),{iterator:r.bind(null,e)})}}o.VERSION="1.1.2"},88514:function(e,t,n){"use strict";function i(e){e.hook.wrap("request",function(t,n){e.log.debug("request",n);var i=Date.now(),r=e.request.endpoint.parse(n),s=r.url.replace(n.baseUrl,"");return t(n).then(function(t){return e.log.info("".concat(r.method," ").concat(s," - ").concat(t.status," in ").concat(Date.now()-i,"ms")),t}).catch(function(t){throw e.log.info("".concat(r.method," ").concat(s," - ").concat(t.status," in ").concat(Date.now()-i,"ms")),t})})}n.r(t),n.d(t,{requestLog:function(){return i}}),i.VERSION="1.0.4"},6260:function(e,t,n){"use strict";n.r(t),n.d(t,{restEndpointMethods:function(){return o}});var i=n(17292),r={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/cancel"},createOrUpdateSecretForRepo:{method:"PUT",params:{encrypted_value:{type:"string"},key_id:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:!0,type:"string"},artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/jobs"},listRepoWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/logs"},listWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},activity:{checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/token"}},checks:{create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},codesOfConduct:{getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},emojis:{get:{method:"GET",params:{},url:"/emojis"}},gists:{checkIsStarred:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:!0,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},interactions:{addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},licenses:{get:{method:"GET",params:{license:{required:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},markdown:{render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},downloadArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{deprecated:"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},repo_name:{required:!0,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},oauthAuthorizations:{checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:!0,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:!0,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},orgs:{addOrUpdateMembership:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"integer"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,type:"string"}},url:"/user/memberships/orgs/:org"}},projects:{addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},position:{required:!0,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:!0,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:!0,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},rateLimit:{get:{method:"GET",params:{},url:"/rate_limit"}},reactions:{createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member","internal"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"integer"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,type:"string"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{data:{mapTo:"data",required:!0,type:"string | object"},file:{alias:"data",deprecated:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:!0,type:"string"},repository_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},teams:{addMember:{deprecated:"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},removeMember:{deprecated:"octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{deprecated:"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},users:{addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username"},getContextForUser:{method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}}};function s(e,t){Object.keys(t).forEach(function(n){e[n]||(e[n]={}),Object.keys(t[n]).forEach(function(r){var s=t[n][r],o=["method","url","headers"].reduce(function(e,t){return void 0!==s[t]&&(e[t]=s[t]),e},{});o.request={validate:s.params};var u=e.request.defaults(o);if(Object.keys(s.params||{}).find(function(e){return s.params[e].deprecated})){var l=a.bind(null,e,s);(u=l(e.request.defaults(o),".".concat(n,".").concat(r,"()"))).endpoint=l(u.endpoint,".".concat(n,".").concat(r,".endpoint()")),u.endpoint.merge=l(u.endpoint.merge,".".concat(n,".").concat(r,".endpoint.merge()"))}e[n][r]=s.deprecated?Object.assign(function(){return e.log.warn(new i.Deprecation("[@octokit/rest] ".concat(s.deprecated))),e[n][r]=u,u.apply(null,arguments)},u):u})})}function a(e,t,n,r){var s=function(s){return s=Object.assign({},s),Object.keys(s).forEach(function(n){if(t.params[n]&&t.params[n].deprecated){var a=t.params[n].alias;e.log.warn(new i.Deprecation('[@octokit/rest] "'.concat(n,'" parameter is deprecated for "').concat(r,'". Use "').concat(a,'" instead'))),a in s||(s[a]=s[n]),delete s[n]}}),n(s)};return Object.keys(n).forEach(function(e){s[e]=n[e]}),s}function o(e){return e.registerEndpoints=s.bind(null,e),s(e,r),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(function(t){var n=T(t,2),r=n[0],s=n[1];Object.defineProperty(e,r,{get:function(){return e.log.warn(new i.Deprecation('[@octokit/plugin-rest-endpoint-methods] "octokit.'.concat(r,'.*" methods are deprecated, use "octokit.').concat(s,'.*" instead'))),e[s]}})}),{}}o.VERSION="2.4.0"},38604:function(e,t,n){"use strict";n.r(t),n.d(t,{RequestError:function(){return a}});var i=n(17292),r=n(99318),s=n.n(r)()(function(e){return console.warn(e)}),a=function(e){function t(e,n,r){var a;g(this,t),a=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(a),a.constructor),a.name="HttpError",a.status=n,Object.defineProperty(y(a),"code",{get:function(){return s(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),n}}),a.headers=r.headers||{};var o=Object.assign({},r.request);return r.request.headers.authorization&&(o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),a.request=o,a}return _(t,e),m(t)}(b(Error))},46455:function(e,t,n){"use strict";n.r(t),n.d(t,{request:function(){return U}});var i=n(8239);function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!(!1===r(n=t.prototype)||!1===n.hasOwnProperty("isPrototypeOf")))}function a(e,t){var n=Object.assign({},e);return Object.keys(t).forEach(function(i){s(t[i])&&i in e?n[i]=a(e[i],t[i]):Object.assign(n,D({},i,t[i]))}),n}function o(e){for(var t in e)void 0===e[t]&&delete e[t];return e}function u(e,t,n){if("string"==typeof t){var i=T(t.split(" "),2),r=i[0],s=i[1];n=Object.assign(s?{method:r,url:s}:{url:r},n)}else n=Object.assign({},t);n.headers=function(e){return e?Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{}):{}}(n.headers),o(n),o(n.headers);var u=a(e||{},n);return e&&e.mediaType.previews.length&&(u.mediaType.previews=e.mediaType.previews.filter(function(e){return!u.mediaType.previews.includes(e)}).concat(u.mediaType.previews)),u.mediaType.previews=u.mediaType.previews.map(function(e){return e.replace(/-preview/,"")}),u}var l=/\{[^}]+\}/g;function c(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function d(e,t){return Object.keys(e).filter(function(e){return!t.includes(e)}).reduce(function(t,n){return t[n]=e[n],t},{})}function h(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function p(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function f(e,t,n){return t="+"===e||"#"===e?h(t):p(t),n?p(n)+"="+t:t}function k(e){return null!=e}function w(e){return";"===e||"&"===e||"?"===e}function S(e,t){var n=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,i,r){if(i){var s="",a=[];if(-1!==n.indexOf(i.charAt(0))&&(s=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(e){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(e);a.push(function(e,t,n,i){var r=e[n],s=[];if(k(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),i&&"*"!==i&&(r=r.substring(0,parseInt(i,10))),s.push(f(t,r,w(t)?n:""));else if("*"===i)Array.isArray(r)?r.filter(k).forEach(function(e){s.push(f(t,e,w(t)?n:""))}):Object.keys(r).forEach(function(e){k(r[e])&&s.push(f(t,r[e],e))});else{var a=[];Array.isArray(r)?r.filter(k).forEach(function(e){a.push(f(t,e))}):Object.keys(r).forEach(function(e){k(r[e])&&(a.push(p(e)),a.push(f(t,r[e].toString())))}),w(t)?s.push(p(n)+"="+a.join(",")):0!==a.length&&s.push(a.join(","))}else";"===t?k(r)&&s.push(p(n)):""!==r||"&"!==t&&"?"!==t?""===r&&s.push(""):s.push(p(n)+"=");return s}(t,s,n[1],n[2]||n[3]))}),s&&"+"!==s){var o=",";return"?"===s?o="&":"#"!==s&&(o=s),(0!==a.length?s:"")+a.join(o)}return a.join(",")}return h(r)})}function E(e){var t,n=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),s=d(e,["method","baseUrl","url","headers","request","mediaType"]),a=function(e){var t=e.match(l);return t?t.map(c).reduce(function(e,t){return e.concat(t)},[]):[]}(i);i=function(e){return{expand:S.bind(null,e)}}(i).expand(s),/^http/.test(i)||(i=e.baseUrl+i);var o=d(s,Object.keys(e).filter(function(e){return a.includes(e)}).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(function(t){return t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2.".concat(e.mediaType.format))}).join(",")),e.mediaType.previews.length)){var u=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=u.concat(e.mediaType.previews).map(function(t){return"application/vnd.github.".concat(t,"-preview").concat(e.mediaType.format?".".concat(e.mediaType.format):"+json")}).join(",")}return["GET","HEAD"].includes(n)?i=function(e,t){var n=/\?/.test(e)?"&":"?",i=Object.keys(t);return 0===i.length?e:e+n+i.map(function(e){return"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):"".concat(e,"=").concat(encodeURIComponent(t[e]))}).join("&")}(i,o):"data"in o?t=o.data:Object.keys(o).length?t=o:r["content-length"]=0,!r["content-type"]&&void 0!==t&&(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(n)&&void 0===t&&(t=""),Object.assign({method:n,url:i,headers:r},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function x(e,t,n){return E(u(e,t,n))}var L=function e(t,n){var i=u(t,n),r=x.bind(null,i);return Object.assign(r,{DEFAULTS:i,defaults:e.bind(null,i),merge:u.bind(null,i),parse:E})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.12 ".concat("object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?"Node.js/".concat(process.version.substr(1)," (").concat(process.platform,"; ").concat(process.arch,")"):"")},mediaType:{format:"",previews:[]}}),A=n(70640),O=n.n(A),I=n(17292),R=n(99318),P=n.n(R),F=P()(function(e){return console.warn(e)}),Y=P()(function(e){return console.warn(e)}),j=function(e){function t(e,n,i){var r,s;g(this,t),r=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(r),r.constructor),r.name="HttpError",r.status=n,"headers"in i&&void 0!==i.headers&&(s=i.headers),"response"in i&&(r.response=i.response,s=i.response.headers);var a=Object.assign({},i.request);return i.request.headers.authorization&&(a.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),a.url=a.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),r.request=a,Object.defineProperty(r,"code",{get:function(){return F(new I.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),n}}),Object.defineProperty(r,"headers",{get:function(){return Y(new I.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}}),r}return _(t,e),m(t)}(b(Error));function q(e){return e.arrayBuffer()}function N(e){var t=e.request&&e.request.log?e.request.log:console;(s(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));var n,r,a,o={};return(e.request&&e.request.fetch||O())(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((a=(0,i.Z)(C().mark(function i(s){var a,u,l,c,d,h;return C().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:r=s.url,n=s.status,a=M(s.headers);try{for(a.s();!(u=a.n()).done;)l=u.value,o[l[0]]=l[1]}catch(p){a.e(p)}finally{a.f()}if("deprecation"in o&&(c=o.link&&o.link.match(/<([^>]+)>; rel="deprecation"/),d=c&&c.pop(),t.warn('[@octokit/request] "'.concat(e.method," ").concat(e.url,'" is deprecated. It is scheduled to be removed on ').concat(o.sunset).concat(d?". See ".concat(d):""))),204===n||205===n){i.next=28;break}if("HEAD"!==e.method){i.next=9;break}if(!(n<400)){i.next=8;break}return i.abrupt("return");case 8:throw new j(s.statusText,n,{response:{url:r,status:n,headers:o,data:void 0},request:e});case 9:if(304!==n){i.next=22;break}return i.t0=j,i.t1=n,i.t2=r,i.t3=n,i.t4=o,i.next=17,H(s);case 17:throw i.t5=i.sent,i.t6={url:i.t2,status:i.t3,headers:i.t4,data:i.t5},i.t7=e,i.t8={response:i.t6,request:i.t7},new i.t0("Not modified",i.t1,i.t8);case 22:if(!(n>=400)){i.next=27;break}return i.next=25,H(s);case 25:throw h=i.sent,new j(function(e){return"string"==typeof e?e:"message"in e?Array.isArray(e.errors)?"".concat(e.message,": ").concat(e.errors.map(JSON.stringify).join(", ")):e.message:"Unknown error: ".concat(JSON.stringify(e))}(h),n,{response:{url:r,status:n,headers:o,data:h},request:e});case 27:return i.abrupt("return",H(s));case 28:case"end":return i.stop()}},i)})),function(e){return a.apply(this,arguments)})).then(function(e){return{status:n,url:r,headers:o,data:e}}).catch(function(t){throw t instanceof j?t:new j(t.message,500,{request:e})})}function H(e){return B.apply(this,arguments)}function B(){return(B=(0,i.Z)(C().mark(function e(t){var n;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.headers.get("content-type"),e.abrupt("return",/application\/json/.test(n)?t.json():!n||/^text\/|charset=utf-8$/.test(n)?t.text():q(t));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var U=function e(t,n){var i=t.defaults(n);return Object.assign(function(t,n){var r=i.merge(t,n);if(!r.request||!r.request.hook)return N(i.parse(r));var s=function(e,t){return N(i.parse(i.merge(e,t)))};return Object.assign(s,{endpoint:i,defaults:e.bind(null,i)}),r.request.hook(s,r)},{endpoint:i,defaults:e.bind(null,i)})}(L,{headers:{"user-agent":"octokit-request.js/5.6.3 ".concat("object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?"Node.js/".concat(process.version.substr(1)," (").concat(process.platform,"; ").concat(process.arch,")"):"")}})},60837:function(e,t,n){var i=n(88514).requestLog,r=n(6260).restEndpointMethods,s=n(26114),a=[n(94602),n(50768),i,n(84264),r,n(9419),n(36711)],o=s.plugin(a),u=Object.assign(function(e){return(e&&e.log&&e.log.warn?e.log.warn:console.warn)('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'),new o(e)},{Octokit:o});Object.keys(o).forEach(function(e){o.hasOwnProperty(e)&&(u[e]=o[e])}),e.exports=u},94725:function(e,t,n){e.exports=function(e,t){t=t||{};var n=new r.Collection,a=Object.assign({debug:function(){},info:function(){},warn:console.warn,error:console.error},t&&t.log),o={hook:n,log:a,request:i.defaults(s(t,a,n))};return e.forEach(function(e){return e(o,t)}),o};var i=n(46455).request,r=n(3816),s=n(52037)},26114:function(e,t,n){var i=n(12753);e.exports=i()},12753:function(e,t,n){e.exports=function(e){var t=i.bind(null,e||[]);return t.plugin=r.bind(null,e||[]),t};var i=n(94725),r=n(69890)},52037:function(e,t,n){e.exports=function(e,t,n){e.headers&&(e.headers=Object.keys(e.headers).reduce(function(t,n){return t[n.toLowerCase()]=e.headers[n],t},{}));var s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(s.baseUrl=e.baseUrl),e.userAgent&&(s.headers["user-agent"]=e.userAgent),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),e.timeout&&(o(t,new i("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),s.request.timeout=e.timeout),e.agent&&(u(t,new i("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),s.request.agent=e.agent),e.headers&&l(t,new i("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));var c=s.headers["user-agent"],d="octokit.js/".concat(a.version," ").concat(r());return s.headers["user-agent"]=[c,d].filter(Boolean).join(" "),s.request.hook=n.bind(null,"request"),s};var i=n(17292).Deprecation,r=n(57505).getUserAgent,s=n(99318),a=n(51322),o=s(function(e,t){return e.warn(t)}),u=s(function(e,t){return e.warn(t)}),l=s(function(e,t){return e.warn(t)})},69890:function(e,t,n){e.exports=function(e,t){return i(e.includes(t)?e:e.concat(t))};var i=n(12753)},13217:function(e,t,n){e.exports=function(e,t){if(r(e.octokit.log,new i('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){switch(t.type){case"basic":if(!t.username||!t.password)throw new Error("Basic authentication requires both a username and password to be set");break;case"oauth":if(!(t.token||t.key&&t.secret))throw new Error("OAuth2 authentication requires a token or key & secret to be set");break;case"token":case"app":if(!t.token)throw new Error("Token authentication requires a token to be set");break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}else e.auth=!1};var i=n(17292).Deprecation,r=n(99318)(function(e,t){return e.warn(t)})},80251:function(e,t,n){e.exports=function(e,t){if(e.auth.type)if("basic"!==e.auth.type)if("token"!==e.auth.type)if("app"!==e.auth.type)if(t.url+=-1===t.url.indexOf("?")?"?":"&",e.auth.token)t.url+="access_token=".concat(encodeURIComponent(e.auth.token));else{var n=encodeURIComponent(e.auth.key),s=encodeURIComponent(e.auth.secret);t.url+="client_id=".concat(n,"&client_secret=").concat(s)}else{t.headers.authorization="Bearer ".concat(e.auth.token);var a=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=r(a).filter(Boolean).join(",")}else t.headers.authorization="token ".concat(e.auth.token);else{var o=i("".concat(e.auth.username,":").concat(e.auth.password));t.headers.authorization="Basic ".concat(o)}};var i=n(70409),r=n(15746)},50768:function(e,t,n){e.exports=function(e,t){if(t.auth)e.authenticate=function(){r(e.log,new i('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))};else{var n={octokit:e,auth:!1};e.authenticate=s.bind(null,n),e.hook.before("request",a.bind(null,n)),e.hook.error("request",o.bind(null,n))}};var i=n(17292).Deprecation,r=n(99318)(function(e,t){return e.warn(t)}),s=n(13217),a=n(80251),o=n(33317)},33317:function(e,t,n){e.exports=function(e,t,n){if(!t.headers)throw t;var r=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!r)throw t;if(401===t.status&&r&&t.request&&t.request.headers["x-github-otp"])throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:n});if("function"!=typeof e.auth.on2fa)throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:n});return Promise.resolve().then(function(){return e.auth.on2fa()}).then(function(t){var i=Object.assign(n,{headers:Object.assign({"x-github-otp":t},n.headers)});return e.octokit.request(i)})};var i=n(38604).RequestError},51317:function(e,t,n){e.exports=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){var n=i("".concat(e.auth.username,":").concat(e.auth.password));return t.headers.authorization="Basic ".concat(n),void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){var s=i("".concat(e.auth.clientId,":").concat(e.auth.clientSecret));return void(t.headers.authorization="Basic ".concat(s))}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+="client_id=".concat(e.auth.clientId,"&client_secret=").concat(e.auth.clientSecret))}return Promise.resolve().then(function(){return e.auth()}).then(function(e){t.headers.authorization=r(e)})}t.headers.authorization=r(e.auth)};var i=n(70409),r=n(823)},94602:function(e,t,n){e.exports=function(e,t){if(t.authStrategy){var n=t.authStrategy(t.auth);return e.hook.wrap("request",n.hook),void(e.auth=n)}if(t.auth){var s="string"==typeof t.auth&&/^basic/.test(l(t.auth));if("string"==typeof t.auth&&!s){var h=i(t.auth);return e.hook.wrap("request",h.hook),void(e.auth=h)}var p=T(s?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[d,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'],2),f=p[0],m=p[1];f(e.log,new r("[@octokit/rest] "+m)),e.auth=function(){return Promise.resolve({type:"deprecated",message:m})},u(t.auth);var g={octokit:e,auth:t.auth};e.hook.before("request",a.bind(null,g)),e.hook.error("request",o.bind(null,g))}else e.auth=function(){return Promise.resolve({type:"unauthenticated"})}};var i=n(85131).createTokenAuth,r=n(17292).Deprecation,s=n(99318),a=n(51317),o=n(45067),u=n(51047),l=n(823),c=s(function(e,t){return e.warn(t)}),d=s(function(e,t){return e.warn(t)})},45067:function(e,t,n){e.exports=function(e,t,n){if(!t.headers)throw t;var r=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!r)throw t;if(401===t.status&&r&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:n});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:n});return Promise.resolve().then(function(){return e.auth.on2fa()}).then(function(t){var i=Object.assign(n,{headers:Object.assign(n.headers,{"x-github-otp":t})});return e.octokit.request(i).then(function(n){return e.otp=t,n})})};var i=n(38604).RequestError},51047:function(e){e.exports=function(e){if(!("string"==typeof e||"function"==typeof e||e.username&&e.password||e.clientId&&e.clientSecret))throw new Error('Invalid "auth" option: '.concat(JSON.stringify(e)))}},823:function(e,t,n){e.exports=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(r.test(i(e)))return"basic ".concat(e)}catch(t){}return 3===e.split(/\./).length?"bearer ".concat(e):"token ".concat(e)};var i=n(87624),r=/^[\w-]+:/},84264:function(e,t,n){e.exports=function(e){Object.assign(e,i(e))};var i=n(86269).paginateRest},9419:function(e,t,n){e.exports=function(e){e.hook.before("request",i.bind(null,e))};var i=n(24454)},24454:function(e,t,n){"use strict";e.exports=function(e,t){if(t.request.validate){var n=t.request.validate;return Object.keys(n).forEach(function(e){var a,o,u=r(n,e),l=u.type,c=!0,d=!1;/\./.test(e)&&(a=e.replace(/\.[^.]+$/,""),(d="[]"===a.slice(-2))&&(a=a.slice(0,-2)),o=r(t,a),c="headers"===a||"object"==typeof o&&null!==o),(d?(r(t,a)||[]).map(function(t){return t[e.split(/\./).pop()]}):[r(t,e)]).forEach(function(n,r){var a=void 0!==n,o=null===n,h=d?e.replace(/\[\]/,"[".concat(r,"]")):e;if((u.required||a)&&c&&(!u.allowNull||!o)){if(!u.allowNull&&o)throw new i("'".concat(h,"' cannot be null"),400,{request:t});if(u.required&&!a)throw new i("Empty value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if("integer"===l){var p=n;if(n=parseInt(n,10),isNaN(n))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(p)," is NaN"),400,{request:t})}if(u.enum&&-1===u.enum.indexOf(String(n)))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if(u.validation&&!new RegExp(u.validation).test(n))throw new i("Invalid value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t});if("object"===l&&"string"==typeof n)try{n=JSON.parse(n)}catch(p){throw new i("JSON parse error of value for parameter '".concat(h,"': ").concat(JSON.stringify(n)),400,{request:t})}s(t,u.mapTo||h,n)}})}),t}};var i=n(38604).RequestError,r=n(69926),s=n(77772)},11913:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var i=Object.prototype,r=i.toString,s=i.hasOwnProperty,a=Function.prototype.toString,o=new Map;function u(e,t){try{return l(e,t)}finally{o.clear()}}function l(e,t){if(e===t)return!0;var n=r.call(e);if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(p(e,t))return!0;var i=c(e),o=c(t),u=i.length;if(u!==o.length)return!1;for(var d=0;d=0&&e.indexOf(t,n)===n}(k,h)}return!1}function c(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}var h="{ [native code] }";function p(e,t){var n=o.get(e);if(n){if(n.has(t))return!0}else o.set(e,n=new Set);return n.add(t),!1}},87624:function(e){e.exports=function(e){return atob(e)}},3816:function(e,t,n){var i=n(1765),r=n(60406),s=n(45486),a=Function.bind,o=a.bind(a);function u(e,t,n){var i=o(s,null).apply(null,n?[t,n]:[t]);e.api={remove:i},e.remove=i,["before","error","after","wrap"].forEach(function(i){var s=n?[t,i,n]:[t,i];e[i]=e.api[i]=o(r,null).apply(null,s)})}function l(){var e={registry:{}},t=i.bind(null,e);return u(t,e),t}var c=!1;function d(){return c||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),c=!0),l()}d.Singular=(function(){var e={registry:{}},t=i.bind(null,e,"h");return u(t,e,"h"),t}).bind(),d.Collection=l.bind(),e.exports=d,e.exports.Hook=d,e.exports.Singular=d.Singular,e.exports.Collection=d.Collection},60406:function(e){e.exports=function(e,t,n,i){var r=i;e.registry[n]||(e.registry[n]=[]),"before"===t&&(i=function(e,t){return Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(i=function(e,t){var n;return Promise.resolve().then(e.bind(null,t)).then(function(e){return r(n=e,t)}).then(function(){return n})}),"error"===t&&(i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return r(e,t)})}),e.registry[n].push({hook:i,orig:r})}},1765:function(e){e.exports=function e(t,n,i,r){if("function"!=typeof i)throw new Error("method for before hook must be a function");return r||(r={}),Array.isArray(n)?n.reverse().reduce(function(n,i){return e.bind(null,t,i,n,r)},i)():Promise.resolve().then(function(){return t.registry[n]?t.registry[n].reduce(function(e,t){return t.hook.bind(null,e,r)},i)():i(r)})}},45486:function(e){e.exports=function(e,t,n){if(e.registry[t]){var i=e.registry[t].map(function(e){return e.orig}).indexOf(n);-1!==i&&e.registry[t].splice(i,1)}}},70409:function(e){e.exports=function(e){return btoa(e)}},17292:function(e,t,n){"use strict";n.r(t),n.d(t,{Deprecation:function(){return i}});var i=function(e){function t(e){var n;return g(this,t),n=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(n),n.constructor),n.name="Deprecation",n}return _(t,e),m(t)}(b(Error))},69114:function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,i,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===i&&(i=!0);var a=i,o=this.diff_commonPrefix(e,n),u=e.substring(0,o);e=e.substring(o),n=n.substring(o),o=this.diff_commonSuffix(e,n);var l=e.substring(e.length-o);e=e.substring(0,e.length-o),n=n.substring(0,n.length-o);var c=this.diff_compute_(e,n,a,s);return u&&c.unshift(new t.Diff(0,u)),l&&c.push(new t.Diff(0,l)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,i,r,s){var a;if(!e)return[new t.Diff(1,i)];if(!i)return[new t.Diff(n,e)];var o=e.length>i.length?e:i,u=e.length>i.length?i:e,l=o.indexOf(u);if(-1!=l)return a=[new t.Diff(1,o.substring(0,l)),new t.Diff(0,u),new t.Diff(1,o.substring(l+u.length))],e.length>i.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[new t.Diff(n,e),new t.Diff(1,i)];var c=this.diff_halfMatch_(e,i);if(c){var d=c[1],h=c[3],p=c[4],f=this.diff_main(c[0],c[2],r,s),m=this.diff_main(d,h,r,s);return f.concat([new t.Diff(0,p)],m)}return r&&e.length>100&&i.length>100?this.diff_lineMode_(e,i,s):this.diff_bisect_(e,i,s)},t.prototype.diff_lineMode_=function(e,i,r){var s=this.diff_linesToChars_(e,i),a=s.lineArray,o=this.diff_main(e=s.chars1,i=s.chars2,!1,r);this.diff_charsToLines_(o,a),this.diff_cleanupSemantic(o),o.push(new t.Diff(0,""));for(var u=0,l=0,c=0,d="",h="";u=1&&c>=1){o.splice(u-l-c,l+c),u=u-l-c;for(var p=this.diff_main(d,h,!1,r),f=p.length-1;f>=0;f--)o.splice(u,0,p[f]);u+=p.length}c=0,l=0,d="",h=""}u++}return o.pop(),o},t.prototype.diff_bisect_=function(e,i,r){for(var s=e.length,a=i.length,o=Math.ceil((s+a)/2),u=o,l=2*o,c=new Array(l),d=new Array(l),h=0;hr);_++){for(var b=-_+m;b<=_-g;b+=2){for(var k=u+b,w=(x=b==-_||b!=_&&c[k-1]s)g+=2;else if(w>a)m+=2;else if(f&&(T=u+p-b)>=0&&T=(E=s-d[T]))return this.diff_bisectSplit_(e,i,x,w,r)}for(var S=-_+v;S<=_-y;S+=2){for(var E,T=u+S,D=(E=S==-_||S!=_&&d[T-1]s)y+=2;else if(D>a)v+=2;else if(!f){var x;if((k=u+p-S)>=0&&k=(E=s-E)))return this.diff_bisectSplit_(e,i,x,w,r)}}}return[new t.Diff(n,e),new t.Diff(1,i)]},t.prototype.diff_bisectSplit_=function(e,t,n,i,r){var s=e.substring(0,n),a=t.substring(0,i),o=e.substring(n),u=t.substring(i),l=this.diff_main(s,a,!1,r),c=this.diff_main(o,u,!1,r);return l.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function r(e){for(var t="",r=0,a=-1,o=n.length;ai?e=e.substring(n-i):nt.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length=e.length?[i,s,a,o,c]:null}var a,o,u,l,c,d=s(n,i,Math.ceil(n.length/4)),h=s(n,i,Math.ceil(n.length/2));return d||h?(a=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(o=a[0],u=a[1],l=a[2],c=a[3]):(l=a[0],c=a[1],o=a[2],u=a[3]),[o,u,l,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var i=!1,r=[],s=0,a=null,o=0,u=0,l=0,c=0,d=0;o0?r[s-1]:-1,u=0,l=0,c=0,d=0,a=null,i=!0)),o++;for(i&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o=m?(f>=h.length/2||f>=p.length/2)&&(e.splice(o,0,new t.Diff(0,p.substring(0,f))),e[o-1][1]=h.substring(0,h.length-f),e[o+1][1]=p.substring(f),o++):(m>=h.length/2||m>=p.length/2)&&(e.splice(o,0,new t.Diff(0,h.substring(0,m))),e[o-1][0]=1,e[o-1][1]=p.substring(0,p.length-m),e[o+1][0]=n,e[o+1][1]=h.substring(m),o++),o++}o++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var i=e.charAt(e.length-1),r=n.charAt(0),s=i.match(t.nonAlphaNumericRegex_),a=r.match(t.nonAlphaNumericRegex_),o=s&&i.match(t.whitespaceRegex_),u=a&&r.match(t.whitespaceRegex_),l=o&&i.match(t.linebreakRegex_),c=u&&r.match(t.linebreakRegex_),d=l&&e.match(t.blanklineEndRegex_),h=c&&n.match(t.blanklineStartRegex_);return d||h?5:l||c?4:s&&!o&&u?3:o||u?2:s||a?1:0}for(var i=1;i=h&&(h=p,l=r,c=s,d=a)}e[i-1][1]!=l&&(l?e[i-1][1]=l:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var i=!1,r=[],s=0,a=null,o=0,u=!1,l=!1,c=!1,d=!1;o0?r[s-1]:-1,c=d=!1),i=!0)),o++;i&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var i,r=0,s=0,a=0,o="",u="";r1?(0!==s&&0!==a&&(0!==(i=this.diff_commonPrefix(u,o))&&(r-s-a>0&&0==e[r-s-a-1][0]?e[r-s-a-1][1]+=u.substring(0,i):(e.splice(0,0,new t.Diff(0,u.substring(0,i))),r++),u=u.substring(i),o=o.substring(i)),0!==(i=this.diff_commonSuffix(u,o))&&(e[r][1]=u.substring(u.length-i)+e[r][1],u=u.substring(0,u.length-i),o=o.substring(0,o.length-i))),e.splice(r-=s+a,s+a),o.length&&(e.splice(r,0,new t.Diff(n,o)),r++),u.length&&(e.splice(r,0,new t.Diff(1,u)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,a=0,s=0,o="",u=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(r=1;rt));i++)a=r,o=s;return e.length!=i&&e[i][0]===n?o:o+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],i=/&/g,r=//g,a=/\n/g,o=0;o");switch(u){case 1:t[o]=''+l+"";break;case n:t[o]=''+l+"";break;case 0:t[o]=""+l+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),r=this;function s(e,i){var s=e/t.length,a=Math.abs(n-i);return r.Match_Distance?s+a/r.Match_Distance:a?1:s}var a=this.Match_Threshold,o=e.indexOf(t,n);-1!=o&&(a=Math.min(s(0,o),a),-1!=(o=e.lastIndexOf(t,n+t.length))&&(a=Math.min(s(0,o),a)));var u=1<=f;v--){var y=i[e.charAt(v-1)];if(g[v]=0===p?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],g[v]&u){var _=s(p,v-1);if(_<=a){if(a=_,!((o=v-1)>n))break;f=Math.max(1,2*n-o)}}}if(s(p+1,n)>a)break;d=g}return o},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===i&&void 0===r)s=this.diff_text1(a=e);else if("string"==typeof e&&i&&"object"==typeof i&&void 0===r)s=e,a=i;else{if("string"!=typeof e||"string"!=typeof i||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");s=e,a=r}if(0===a.length)return[];for(var o=[],u=new t.patch_obj,l=0,c=0,d=0,h=s,p=s,f=0;f=2*this.Patch_Margin&&l&&(this.patch_addContext_(u,h),o.push(u),u=new t.patch_obj,l=0,h=p,c=d)}1!==m&&(c+=g.length),m!==n&&(d+=g.length)}return l&&(this.patch_addContext_(u,h),o.push(u)),o},t.prototype.patch_deepCopy=function(e){for(var n=[],i=0;ithis.Match_MaxBits?-1!=(o=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||o>=d)&&(o=-1):o=this.match_main(t,c,l),-1==o)s[a]=!1,r-=e[a].length2-e[a].length1;else if(s[a]=!0,r=o-l,c==(u=t.substring(o,-1==d?o+c.length:d+this.Match_MaxBits)))t=t.substring(0,o)+this.diff_text2(e[a].diffs)+t.substring(o+c.length);else{var h=this.diff_main(c,u,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(h)/c.length>this.Patch_DeleteThreshold)s[a]=!1;else{this.diff_cleanupSemanticLossless(h);for(var p,f=0,m=0;ma[0][1].length){var o=n-a[0][1].length;a[0][1]=i.substring(a[0][1].length)+a[0][1],s.start1-=o,s.start2-=o,s.length1+=o,s.length2+=o}return 0==(a=(s=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,i)),s.length1+=n,s.length2+=n):n>a[a.length-1][1].length&&(a[a.length-1][1]+=i.substring(0,o=n-a[a.length-1][1].length),s.length1+=o,s.length2+=o),i},t.prototype.patch_splitMax=function(e){for(var i=this.Match_MaxBits,r=0;r2*i?(l.length1+=h.length,a+=h.length,c=!1,l.diffs.push(new t.Diff(d,h)),s.diffs.shift()):(h=h.substring(0,i-l.length1-this.Patch_Margin),l.length1+=h.length,a+=h.length,0===d?(l.length2+=h.length,o+=h.length):c=!1,l.diffs.push(new t.Diff(d,h)),h==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(h.length))}u=(u=this.diff_text2(l.diffs)).substring(u.length-this.Patch_Margin);var p=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==p&&(l.length1+=p.length,l.length2+=p.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=p:l.diffs.push(new t.Diff(0,p))),c||e.splice(++r,0,l)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n120){for(var h=Math.floor(a/80),p=a%80,f=[],m=0;m0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?(Object.defineProperty(m(y),"stack",{value:l.stack,writable:!0,configurable:!0}),f(y)):(Error.captureStackTrace?Error.captureStackTrace(m(y),n):Object.defineProperty(m(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return function(e,t,n){t&&function(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),x=n(30744);function C(e,t){if(!Boolean(e))throw new Error(t)}var M=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||C(0,"Body must be a string. Received: ".concat((0,x.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||C(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||C(0,"column in locationOffset is 1-indexed and must be positive.")}return function(e,t,n){t&&function(e,t){for(var n=0;n31||9===s));return new T.WU(D.COMMENT,t,o,n,i,r,a.slice(t+1,o))}function Y(e,t,n,i,r,s){var a=e.body,o=n,u=t,l=!1;if(45===o&&(o=a.charCodeAt(++u)),48===o){if((o=a.charCodeAt(++u))>=48&&o<=57)throw S(e,u,"Invalid number, unexpected digit after 0: ".concat(I(o),"."))}else u=j(e,u,o),o=a.charCodeAt(u);if(46===o&&(l=!0,o=a.charCodeAt(++u),u=j(e,u,o),o=a.charCodeAt(u)),(69===o||101===o)&&(l=!0,(43===(o=a.charCodeAt(++u))||45===o)&&(o=a.charCodeAt(++u)),u=j(e,u,o),o=a.charCodeAt(u)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw S(e,u,"Invalid number, expected digit but got: ".concat(I(o),"."));return new T.WU(l?D.FLOAT:D.INT,t,u,i,r,s,a.slice(t,u))}function j(e,t,n){var i=e.body,r=t,s=n;if(s>=48&&s<=57){do{s=i.charCodeAt(++r)}while(s>=48&&s<=57);return r}throw S(e,r,"Invalid number, expected digit but got: ".concat(I(s),"."))}function q(e,t,n,i,r){for(var s=e.body,a=t+1,o=a,u=0,l="";a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,t,n,i,r){for(var s=e.body,a=s.length,o=t+1,u=0;o!==a&&!isNaN(u=s.charCodeAt(o))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++o;return new T.WU(D.NAME,t,o,n,i,r,s.slice(t,o))}var z=function(){function e(e,t){var n=function(e){return e instanceof M}(e)?e:new M(e);this._lexer=new O(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(D.NAME);return{kind:E.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:E.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(D.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(D.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(D.BRACE_L))return{kind:E.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(D.NAME)&&(t=this.parseName()),{kind:E.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(D.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:E.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(D.DOLLAR),{kind:E.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:E.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(D.COLON)?(e=i,t=this.parseName()):t=i,{kind:E.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(D.PAREN_L,e?this.parseConstArgument:this.parseArgument,D.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(D.COLON),{kind:E.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:E.ARGUMENT,name:this.parseName(),value:(this.expectToken(D.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(D.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(D.NAME)?{kind:E.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:E.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:E.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:E.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case D.BRACKET_L:return this.parseList(e);case D.BRACE_L:return this.parseObject(e);case D.INT:return this._lexer.advance(),{kind:E.INT,value:t.value,loc:this.loc(t)};case D.FLOAT:return this._lexer.advance(),{kind:E.FLOAT,value:t.value,loc:this.loc(t)};case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:E.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:E.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:E.NULL,loc:this.loc(t)};default:return{kind:E.ENUM,value:t.value,loc:this.loc(t)}}case D.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:E.STRING,value:e.value,block:e.kind===D.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:E.LIST,values:this.any(D.BRACKET_L,function(){return t.parseValueLiteral(e)},D.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:E.OBJECT,fields:this.any(D.BRACE_L,function(){return t.parseObjectField(e)},D.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(D.COLON),{kind:E.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(D.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(D.AT),{kind:E.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(D.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(D.BRACKET_R),e={kind:E.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(D.BANG)?{kind:E.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:E.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return{kind:E.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(D.COLON);var n=this.parseNamedType();return{kind:E.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:E.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:E.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(D.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(D.AMP)||this.peek(D.NAME));return t}return this.delimitedMany(D.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(D.BRACE_L)&&this._lexer.lookahead().kind===D.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(D.COLON);var r=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:E.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(D.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(D.EQUALS)&&(i=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:E.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:E.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:E.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(D.EQUALS)?this.delimitedMany(D.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:E.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:E.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:E.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:E.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:E.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:E.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:E.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:E.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:E.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(D.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==L[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new T.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw S(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat(V(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==D.NAME||t.value!==e)throw S(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(V(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===D.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return S(this._lexer.source,t.start,"Unexpected ".concat(V(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function V(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===D.BANG||e===D.DOLLAR||e===D.AMP||e===D.PAREN_L||e===D.PAREN_R||e===D.SPREAD||e===D.COLON||e===D.EQUALS||e===D.AT||e===D.BRACKET_L||e===D.BRACKET_R||e===D.BRACE_L||e===D.PIPE||e===D.BRACE_R}(e)?'"'.concat(e,'"'):e}var W=new Map,Z=new Map,Q=!0,$=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function J(e){var t=K(e);if(!W.has(t)){var n=function(e,t){return new z(e,t).parseDocument()}(e,{experimentalFragmentVariables:$,allowLegacyFragmentVariables:$});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");W.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=function(e){return K(e.source.body.substring(e.start,e.end))}(e.loc),s=Z.get(i);s&&!s.has(r)?Q&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Z.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e)}),(0,i.pi)((0,i.pi)({},e),{definitions:n})}(n)))}return W.get(t)}function X(e){for(var t=[],n=1;n-1},M.prototype.set=function(e,t){var n=this.__data__,i=A(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new C,map:new(E||M),string:new C}},L.prototype.delete=function(e){return O(this,e).delete(e)},L.prototype.get=function(e){return O(this,e).get(e)},L.prototype.has=function(e){return O(this,e).has(e)},L.prototype.set=function(e,t){return O(this,e).set(e,t),this};var R=F(function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(N(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}(e);var t=[];return a.test(e)&&t.push(""),e.replace(o,function(e,n,i,r){t.push(i?r.replace(u,"$1"):n||e)}),t});function P(e){if("string"==typeof e||N(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a),a};return n.cache=new(F.Cache||L),n}function Y(e,t){return e===t||e!=e&&t!=t}F.Cache=L;var j=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function N(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:function(e,t){t=function(e,t){if(j(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!N(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return j(e)?e:R(e)}(t);for(var n=0,i=t.length;null!=e&&n-1&&e%1==0&&e-1},L.prototype.set=function(e,t){var n=this.__data__,i=I(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new M,map:new(T||L),string:new M}},A.prototype.delete=function(e){return R(this,e).delete(e)},A.prototype.get=function(e){return R(this,e).get(e)},A.prototype.has=function(e){return R(this,e).has(e)},A.prototype.set=function(e,t){return R(this,e).set(e,t),this};var Y=q(function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(U(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}(e);var t=[];return a.test(e)&&t.push(""),e.replace(o,function(e,n,i,r){t.push(i?r.replace(u,"$1"):n||e)}),t});function j(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a),a};return n.cache=new(q.Cache||A),n}function N(e,t){return e===t||e!=e&&t!=t}q.Cache=A;var H=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}e.exports=function(e,t,n){return null==e?e:function(e,t,n,i){if(!B(e))return e;t=function(e,t){if(H(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!U(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return H(e)?e:Y(e)}(t);for(var a=-1,o=t.length,u=o-1,l=e;null!=l&&++a-1}function o(e){return e!=e}function u(e,t){return e.has(t)}function l(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var c,d=Array.prototype,h=Function.prototype,p=Object.prototype,f=s["__core-js_shared__"],m=(c=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",g=h.toString,v=p.hasOwnProperty,y=p.toString,_=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=d.splice,k=A(s,"Map"),w=A(s,"Set"),S=A(Object,"create");function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},T.prototype.set=function(e,t){var n=this.__data__,i=C(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new E,map:new(k||T),string:new E}},D.prototype.delete=function(e){return L(this,e).delete(e)},D.prototype.get=function(e){return L(this,e).get(e)},D.prototype.has=function(e){return L(this,e).has(e)},D.prototype.set=function(e,t){return L(this,e).set(e,t),this},x.prototype.add=x.prototype.push=function(e){return this.__data__.set(e,t),this},x.prototype.has=function(e){return this.__data__.has(e)};var M=w&&1/l(new w([,-0]))[1]==1/0?function(e){return new w(e)}:function(){};function L(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function A(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!I(e)||function(e){return!!m&&m in e}(e))return!1;var t=function(e){var t=I(e)?y.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(i){}return t}(e)?_:n;return t.test(function(e){if(null!=e){try{return g.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}(i)?i:void 0}function O(e,t){return e===t||e!=e&&t!=t}function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,n){var i=-1,r=a,s=e.length,o=!0,c=[],d=c;if(s>=200){var h=M(e);if(h)return l(h);o=!1,r=u,d=new x}else d=c;e:for(;++i=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},1616:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(e){return function(i,r,s,a){var o=t(i),u=n[e][t(i)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,i)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n(16738))},9759:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n(16738))},43160:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,r,s,a){var o=n(t),u=i[e][n(t)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,t)}},s=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},62551:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(16738))},51500:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(16738))},79989:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(16738))},6962:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(16738))},81286:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(e){return function(t,n,s,a){var o=i(t),u=r[e][i(t)];return 2===o&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},15887:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},14572:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+e)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(16738))},3276:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(16738))},93344:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(16738))},83990:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(16738))},58985:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(16738))},94391:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(16738))},46728:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var i=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(16738))},5536:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,i){if("m"===n)return t?"jedna minuta":i?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},41043:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}})}(n(16738))},70420:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function s(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(s(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(s(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(s(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(s(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(s(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(s(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},33513:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n(16738))},6771:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(16738))},47978:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},25204:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},2653:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46061:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},85:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(16738))},8579:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],i=t&&t.hours();return function(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}(n)&&(n=n.apply(t)),n.replace("{}",i%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n(16738))},25724:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(16738))},10525:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(16738))},52847:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},67216:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},39305:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(16738))},73364:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(16738))},79130:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},11161:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},50802:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(16738))},45551:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},75615:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(16738))},64790:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n(16738))},40328:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(16738))},96389:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},52961:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},26151:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(16738))},7997:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,s){var a="";switch(r){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":a=s?"sekunnin":"sekuntia";break;case"m":return s?"minuutin":"minuutti";case"mm":a=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":a=s?"tunnin":"tuntia";break;case"d":return s?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=s?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return s?"kuukauden":"kuukausi";case"MM":a=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":a=s?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,s)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},58898:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},37779:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},3287:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(16738))},38867:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(16738))},28174:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(16738))},50452:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},45014:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(16738))},74127:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(16738))},72124:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},6444:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"\u0935\u0947\u0930":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n(16738))},37953:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(16738))},76604:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(16738))},1222:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(16738))},74235:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},i=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(16738))},622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},37735:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},90402:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n(16738))},59187:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(16738))},30536:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var s=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?s+(n||r?"sek\xfandur":"sek\xfandum"):s+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?s+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?s+"m\xedn\xfata":s+"m\xedn\xfatu";case"hh":return t(e)?s+(n||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?s+"dagar":s+(r?"daga":"d\xf6gum"):n?s+"dagur":s+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?s+"m\xe1nu\xf0ir":s+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?s+"m\xe1nu\xf0ur":s+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?s+(n||r?"\xe1r":"\xe1rum"):s+(n||r?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},94667:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},35007:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},62093:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n(16738))},80059:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(16738))},66870:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n(16738))},80880:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},1083:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(16738))},68785:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(16738))},21721:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(16738))},31385:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[e+" san\xeeye",e+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[e+" deq\xeeqe",e+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[e+" saet",e+" saetan"],d:["rojek","rojek\xea"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehek\xea"],MM:[e+" meh",e+" mehan"],y:["salek","salek\xea"],yy:[e+" sal",e+" salan"]};return t?r[n][0]:r[n][1]}e.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"\xea":"y\xea"}(e)},week:{dow:1,doy:4}})}(n(16738))},37851:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(16738))},1727:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},40346:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},93002:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n(16738))},64035:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function s(e,t,s,a){var o=e+" ";return 1===e?o+n(0,t,s[0],a):t?o+(i(e)?r(s)[1]:r(s)[0]):a?o+r(s)[1]:o+(i(e)?r(s)[1]:r(s)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(16738))},56927:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},5634:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},94173:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},86320:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(16738))},11705:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n(16738))},31062:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(16738))},92805:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(16738))},59900:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(16738))},11341:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(16738))},37734:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},19034:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(16738))},9324:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46495:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n(16738))},76272:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},70673:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(16738))},72486:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},46219:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}})}(n(16738))},2829:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(16738))},78444:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function s(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:s,M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},66117:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n(16738))},53170:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(16738))},96587:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(16738))},39264:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n],+e)}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(16738))},42135:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(16738))},95366:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},93379:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(16738))},46143:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?s+(i(e)?"sekundy":"sek\xfand"):s+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?s+(i(e)?"min\xfaty":"min\xfat"):s+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(i(e)?"hodiny":"hod\xedn"):s+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?s+(i(e)?"dni":"dn\xed"):s+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(i(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(i(e)?"roky":"rokov"):s+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},196:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},21082:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},98963:function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var s,a=t.words[i];return 1===i.length?"y"===i&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":r||n?a[0]:a[1]:(s=t.correctGrammaticalCase(e,a),"yy"===i&&n&&"\u0433\u043e\u0434\u0438\u043d\u0443"===s?e+" \u0433\u043e\u0434\u0438\u043d\u0430":e+" "+s)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},91621:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var s,a=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":r||n?a[0]:a[1]:(s=t.correctGrammaticalCase(e,a),"yy"===i&&n&&"godinu"===s?e+" godina":e+" "+s)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(16738))},41404:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(16738))},55685:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(16738))},46490:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(16738))},54106:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(16738))},39204:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n(16738))},83692:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},86361:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(16738))},31735:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(16738))},1568:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(16738))},96129:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},13759:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var s=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,s="";return n>0&&(s+=t[n]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+t[i]+"maH"),r>0&&(s+=(""!==s?" ":"")+t[r]),""===s?"pagh":s}(e);switch(i){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},81644:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(16738))},90875:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(16738))},11041:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(16738))},16878:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n(16738))},74357:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(16738))},74810:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n],+e)}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(16738))},86794:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(16738))},77959:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(16738))},28966:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n(16738))},35386:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(16738))},23156:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(16738))},68028:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n(16738))},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(16738))},89380:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},60874:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},96508:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(16738))},16738:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},P={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(P[e]=r),t&&(P[t[0]]=function(){return A(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function j(e,t){return e.isValid()?(t=q(t,e.localeData()),R[t]=R[t]||function(e){var t,n,i=e.match(O);for(t=0,n=i.length;t=0&&I.test(e);)e=e.replace(I,i),I.lastIndex=0,n-=1;return e}var N={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function H(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)o(e,n)&&(t=H(n))&&(i[t]=e[n]);return i}var U,z={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},V=/\d/,G=/\d\d/,W=/\d{3}/,Z=/\d{4}/,Q=/[+-]?\d{6}/,$=/\d\d?/,K=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,X=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ue=/^([1-9]\d|\d)/;function le(e,t,n){U[e]=C(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return o(U,e)?U[e](t._strict,t._locale):new RegExp(function(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}(e))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}U={};var fe={};function me(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=pe(e)}),i=e.length,n=0;n68?1900:2e3)};var be,ke=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),r.updateOffset(this,t),this):Se(this,e)}}function Se(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ee(e,t,n){var i,r,s,a,o;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,a=e.month(),o=29!==(o=e.date())||1!==a||ye(s)?o:28,r?i.setUTCFullYear(s,a,o):i.setFullYear(s,a,o)}}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%12+12)%12}(t);return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(o=new Date(e+400,t,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,r,s,a),o}function Fe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ye(e,t,n){var i=7+t-n;return-(7+Fe(e,0,i).getUTCDay()-t)%7+i-1}function je(e,t,n,i,r){var s,a,o=1+7*(t-1)+(7+n-i)%7+Ye(e,i,r);return o<=0?a=_e(s=e-1)+o:o>_e(e)?(s=e+1,a=o-_e(e)):(s=e,a=o),{year:s,dayOfYear:a}}function qe(e,t,n){var i,r,s=Ye(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?i=a+Ne(r=e.year()-1,t,n):a>Ne(e.year(),t,n)?(i=a-Ne(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ne(e,t,n){var i=Ye(e,t,n),r=Ye(e+1,t,n);return(_e(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),le("w",$,oe),le("ww",$,G),le("W",$,oe),le("WW",$,G),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=pe(e)}),F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),le("d",$),le("e",$),le("E",$),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=pe(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=ae,Ge=ae,We=ae;function Ze(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=be.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._shortWeekdaysParse,a))||-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,a))||-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._minWeekdaysParse,a))?r:null:-1!==(r=be.call(this._minWeekdaysParse,a))||-1!==(r=be.call(this._weekdaysParse,a))||-1!==(r=be.call(this._shortWeekdaysParse,a))?r:null}function Qe(){function e(e,t){return t.length-e.length}var t,n,i,r,s,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=de(this.weekdaysMin(n,"")),r=de(this.weekdaysShort(n,"")),s=de(this.weekdays(n,"")),a.push(i),o.push(r),u.push(s),l.push(i),l.push(r),l.push(s);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,$e),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+$e.apply(this)+A(this.minutes(),2)}),F("hmmss",0,0,function(){return""+$e.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),le("a",Je),le("A",Je),le("H",$,ue),le("h",$,oe),le("k",$,oe),le("HH",$,G),le("hh",$,G),le("kk",$,G),le("hmm",K),le("hmmss",J),le("Hmm",K),le("Hmmss",J),me(["H","HH"],3),me(["k","kk"],function(e,t,n){var i=pe(e);t[3]=24===i?0:i}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[3]=pe(e),m(n).bigHour=!0}),me("hmm",function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i)),m(n).bigHour=!0}),me("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r)),m(n).bigHour=!0}),me("Hmm",function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i))}),me("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r))});var Xe,et=we("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:xe,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:ze,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function rt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=at(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&rt(r,n)>=t-1)break;t--}s++}return Xe}(e)}function ct(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Te(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,i,r,s,a,o=e._i,u=dt.exec(o)||ht.exec(o),l=ft.length,c=mt.length;if(u){for(m(e).iso=!0,t=0,n=l;t7)&&(u=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,l=qe(xt(),s,a),n=wt(t.gg,e._a[0],l.year),i=wt(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(u=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(u=!0)):r=s),i<1||i>Ne(n,s,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,i,r,s,a),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],i[0]),(e._dayOfYear>_e(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Fe(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Fe:Pe).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(m(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,s,a,o,u,l=""+e._i,c=l.length,d=0;for(u=(i=q(e._f,e._locale).match(O)||[]).length,t=0;t0&&m(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),P[s]?(n?m(e).empty=!1:m(e).unusedTokens.push(s),ve(s,n,e)):e._strict&&!n&&m(e).unusedTokens.push(s);m(e).charsLeftOver=c-d,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),!i&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(o=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),St(e),ct(e)}else kt(e);else _t(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new k(ct(t)):(d(t)?e._d=t:s(n)?function(e){var t,n,i,r,s,a,o=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:v()});function Lt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function cn(e,t){return t.erasAbbrRegex(e)}function dn(){var e,t,n,i,r,s=[],a=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e(s=Ne(e,i,r))&&(t=s),fn.call(this,e,t,n,i,r))}function fn(e,t,n,i,r){var s=je(e,t,n,i,r),a=Fe(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),le("N",cn),le("NN",cn),le("NNN",cn),le("NNNN",function(e,t){return t.erasNameRegex(e)}),le("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),me(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e}),le("y",ne),le("yy",ne),le("yyy",ne),le("yyyy",ne),le("yo",function(e,t){return t._eraYearOrdinalRegex||ne}),me(["y","yy","yyy","yyyy"],0),me(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),le("G",ie),le("g",ie),le("GG",$,G),le("gg",$,G),le("GGGG",ee,Z),le("gggg",ee,Z),le("GGGGG",te,Q),le("ggggg",te,Q),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=pe(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),le("Q",V),me("Q",function(e,t){t[1]=3*(pe(e)-1)}),F("D",["DD",2],"Do","date"),le("D",$,oe),le("DD",$,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],2),me("Do",function(e,t){t[2]=pe(e.match($)[0])});var mn=we("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",X),le("DDDD",W),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=pe(e)}),F("m",["mm",2],0,"minute"),le("m",$,ue),le("mm",$,G),me(["m","mm"],4);var gn=we("Minutes",!1);F("s",["ss",2],0,"second"),le("s",$,ue),le("ss",$,G),me(["s","ss"],5);var vn,yn,_n=we("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),le("S",X,V),le("SS",X,G),le("SSS",X,W),vn="SSSS";vn.length<=9;vn+="S")le(vn,ne);function bn(e,t){t[6]=pe(1e3*("0."+e))}for(vn="S";vn.length<=9;vn+="S")me(vn,bn);yn=we("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var kn=k.prototype;function wn(e){return e}kn.add=Zt,kn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||xt(),i=jt(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",a=t&&(C(t[s])?t[s].call(this,n):t[s]);return this.format(a||this.localeData().calendar(s,this,xt(n)))},kn.clone=function(){return new k(this)},kn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=jt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=H(t)){case"year":s=Xt(this,i)/12;break;case"month":s=Xt(this,i);break;case"quarter":s=Xt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:he(s)},kn.endOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:un,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-on(t+(this._isUTC?0:this.utcOffset()*rn),sn)-1;break;case"minute":t=this._d.valueOf(),t+=rn-on(t,rn)-1;break;case"second":t=this._d.valueOf(),t+=1e3-on(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},kn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},kn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||xt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.fromNow=function(e){return this.from(xt(),e)},kn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||xt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.toNow=function(e){return this.to(xt(),e)},kn.get=function(e){return C(this[e=H(e)])?this[e]():this},kn.invalidAt=function(){return m(this).overflow},kn.isAfter=function(e,t){var n=w(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},kn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),kn.toJSON=function(){return this.isValid()?this.toISOString():null},kn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},kn.unix=function(){return Math.floor(this.valueOf()/1e3)},kn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},kn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},kn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},kn.isLocal=function(){return!!this.isValid()&&!this._isUTC},kn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},kn.isUtc=Nt,kn.isUTC=Nt,kn.zoneAbbr=function(){return this._isUTC?"UTC":""},kn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},kn.dates=E("dates accessor is deprecated. Use date instead.",mn),kn.months=E("months accessor is deprecated. Use month instead",Ie),kn.years=E("years accessor is deprecated. Use year instead",ke),kn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),kn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?f(t._a):xt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted});var Sn=L.prototype;function En(e,t,n,i){var r=lt(),s=f().set(i,t);return r[n](s,e)}function Tn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return En(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=En(e,i,n,"month");return r}function Dn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,s=lt(),a=e?s._week.dow:0,o=[];if(null!=n)return En(t,(n+a)%7,i,"day");for(r=0;r<7;r++)o[r]=En(t,(r+a)%7,i,"day");return o}Sn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=wn,Sn.postformat=wn,Sn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Sn.set=function(e){var t,n;for(n in e)o(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Sn.eras=function(e,t){var n,i,s,a=this._eras||lt("en")._eras;for(n=0,i=a.length;n=0)return u[i]},Sn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Sn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||dn.call(this),e?this._erasAbbrRegex:this._erasRegex},Sn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||dn.call(this),e?this._erasNameRegex:this._erasRegex},Sn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||dn.call(this),e?this._erasNarrowRegex:this._erasRegex},Sn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.monthsParse=function(e,t,n){var i,r,s;if(this._monthsParseExact)return Ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Sn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",lt);var xn=Math.abs;function Cn(e,t,n,i){var r=Ut(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function Ln(e){return 4800*e/146097}function An(e){return 146097*e/4800}function On(e){return function(){return this.as(e)}}var In=On("ms"),Rn=On("s"),Pn=On("m"),Fn=On("h"),Yn=On("d"),jn=On("w"),qn=On("M"),Nn=On("Q"),Hn=On("y"),Bn=In;function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Un("milliseconds"),Vn=Un("seconds"),Gn=Un("minutes"),Wn=Un("hours"),Zn=Un("days"),Qn=Un("months"),$n=Un("years"),Kn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ei=Math.abs;function ti(e){return(e>0)-(e<0)||+e}function ni(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,a,o,u=ei(this._milliseconds)/1e3,l=ei(this._days),c=ei(this._months),d=this.asSeconds();return d?(e=he(u/60),t=he(e/60),u%=60,e%=60,n=he(c/12),c%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=ti(this._months)!==ti(d)?"-":"",a=ti(this._days)!==ti(d)?"-":"",o=ti(this._milliseconds)!==ti(d)?"-":"",r+"P"+(n?s+n+"Y":"")+(c?s+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+i+"S":"")):"P0D"}var ii=Ot.prototype;return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},ii.add=function(e,t){return Cn(this,e,t,1)},ii.subtract=function(e,t){return Cn(this,e,t,-1)},ii.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Ln(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ii.asMilliseconds=In,ii.asSeconds=Rn,ii.asMinutes=Pn,ii.asHours=Fn,ii.asDays=Yn,ii.asWeeks=jn,ii.asMonths=qn,ii.asQuarters=Nn,ii.asYears=Hn,ii.valueOf=Bn,ii._bubble=function(){var e,t,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Mn(An(o)+a),a=0,o=0),u.milliseconds=s%1e3,e=he(s/1e3),u.seconds=e%60,t=he(e/60),u.minutes=t%60,n=he(t/60),u.hours=n%24,a+=he(n/24),o+=r=he(Ln(a)),a-=Mn(An(r)),i=he(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},ii.clone=function(){return Ut(this)},ii.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},ii.milliseconds=zn,ii.seconds=Vn,ii.minutes=Gn,ii.hours=Wn,ii.days=Zn,ii.weeks=function(){return he(this.days()/7)},ii.months=Qn,ii.years=$n,ii.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=Ut(e).abs(),s=Kn(r.as("s")),a=Kn(r.as("m")),o=Kn(r.as("h")),u=Kn(r.as("d")),l=Kn(r.as("M")),c=Kn(r.as("w")),d=Kn(r.as("y")),h=s<=n.ss&&["s",s]||s0,h[4]=i,Xn.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=en,ii.localeData=nn,ii.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=tn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),me("x",function(e,t,n){n._d=new Date(pe(e))}),r.version="2.30.1",t=xt,r.fn=kn,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return xt(1e3*e)},r.months=function(e,t){return Tn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=v,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},r.parseZone=function(){return xt.apply(null,arguments).parseZone()},r.localeData=lt,r.isDuration=It,r.monthsShort=function(e,t){return Tn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},r.defineLocale=ut,r.updateLocale=function(e,t){if(null!=t){var n,i,r=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(M(nt[e]._config,t)):(null!=(i=at(e))&&(r=i._config),t=M(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=nt[e],nt[e]=n),ot(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===ot()&&ot(e)):null!=nt[e]&&delete nt[e]);return nt[e]},r.locales=function(){return T(nt)},r.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},r.normalizeUnits=H,r.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=kn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},70640:function(e,t){"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},36711:function(e,t,n){e.exports=function(e){e.getFirstPage=n(31732).bind(null,e),e.getLastPage=n(15485).bind(null,e),e.getNextPage=n(53508).bind(null,e),e.getPreviousPage=n(40341).bind(null,e),e.hasFirstPage=n(17735),e.hasLastPage=n(60907),e.hasNextPage=n(76671),e.hasPreviousPage=n(70174)}},51664:function(e){e.exports=function(e){t[e]||(console.warn("DEPRECATED (@octokit/rest): ".concat(e)),t[e]=1)};var t={}},31732:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"first",n)};var i=n(36873)},15485:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"last",n)};var i=n(36873)},53508:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"next",n)};var i=n(36873)},56595:function(e){e.exports=function(e){var t={};return(e=e.link||e.headers.link||"").replace(/<([^>]*)>;\s*rel="([\w]*)"/g,function(e,n,i){t[i]=n}),t}},36873:function(e,t,n){e.exports=function(e,t,n,o){i("octokit.get".concat(n.charAt(0).toUpperCase()+n.slice(1),"Page() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."));var u=r(t)[n];if(!u){var l=new s("No ".concat(n," page found"),404);return Promise.reject(l)}var c={url:u,headers:a(t,o)};return e.request(c)};var i=n(51664),r=n(56595),s=n(47079);function a(e,t){var n=e.headers&&e.headers["x-github-media-type"];return!n||t&&t.accept||((t=t||{}).accept="application/vnd."+n.replace("; param=",".").replace("; format=","+")),t}},40341:function(e,t,n){e.exports=function(e,t,n){return i(e,t,"prev",n)};var i=n(36873)},17735:function(e,t,n){e.exports=function(e){return i("octokit.hasFirstPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).first};var i=n(51664),r=n(56595)},60907:function(e,t,n){e.exports=function(e){return i("octokit.hasLastPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).last};var i=n(51664),r=n(56595)},76671:function(e,t,n){e.exports=function(e){return i("octokit.hasNextPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).next};var i=n(51664),r=n(56595)},70174:function(e,t,n){e.exports=function(e){return i("octokit.hasPreviousPage() \u2013 You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),r(e).prev};var i=n(51664),r=n(56595)},47079:function(e){e.exports=function(e){function t(e,n,i){var r;return g(this,t),r=v(this,t,[e]),Error.captureStackTrace&&Error.captureStackTrace(y(r),r.constructor),r.name="HttpError",r.code=n,r.headers=i,r}return _(t,e),m(t)}(b(Error))},99318:function(e,t,n){var i=n(99006);function r(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}e.exports=i(r),e.exports.strict=i(s),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},78320:function(){var e,t;t=e||(e={}),function(e){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(t);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=t:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,o=!s&&!a,u={create:s?function(){return P(Object.create(null))}:a?function(){return P({__proto__:null})}:function(){return P({})},has:o?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:o?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r=0;--n){var i=(0,e[n])(t);if(!S(i)&&!E(i)){if(!M(i))throw new TypeError;t=i}}return t}(e,t)}if(!x(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(i)&&!S(i)&&!E(i))throw new TypeError;return E(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t,n,i);if(!S(s)&&!E(s)){if(!T(s))throw new TypeError;i=s}}return i}(e,t,n=D(n),i)}),e("metadata",function(e,t){return function(n,i){if(!T(n))throw new TypeError;if(!S(i)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;_(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!T(n))throw new TypeError;return S(i)||(i=D(i)),_(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),m(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),v(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!T(t))throw new TypeError;return S(n)||(n=D(n)),y(e,t,n)}),e("getMetadataKeys",function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=D(t)),b(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=D(t)),k(e,t)}),e("deleteMetadata",function(e,t,n){if(!T(t))throw new TypeError;S(n)||(n=D(n));var i=f(t,n,!1);if(S(i)||!i.delete(e))return!1;if(i.size>0)return!0;var r=p.get(t);return r.delete(n),r.size>0||p.delete(t),!0})}(i)}()},25547:function(e,t,n){"use strict";e=n.hmd(e),function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(i){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e)},13941:function(e,t,n){"use strict";n.d(t,{ej:function(){return o},kG:function(){return u},U6:function(){return p}});var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},r="Invariant Violation",s=Object.setPrototypeOf,a=void 0===s?function(e,t){return e.__proto__=t,e}:s,o=function(e){function t(n){void 0===n&&(n=r);var i=e.call(this,"number"==typeof n?r+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return i.framesToPop=1,i.name=r,a(i,t.prototype),i}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function u(e,t){if(!e)throw new o(t)}var l,c=["log","warn","error","silent"],d=c.indexOf("log");function h(e){return function(){if(c.indexOf(e)>=d)return console[e].apply(console,arguments)}}function p(e){var t=c[d];return d=Math.max(0,c.indexOf(e)),t}(l=u||(u={})).log=h("log"),l.warn=h("warn"),l.error=h("error");var f={env:{}};if("object"==typeof process)f=process;else try{Function("stub","process = stub")(f)}catch(l){}},57505:function(e,t,n){"use strict";function i(){try{return navigator.userAgent}catch(e){return""}}n.r(t),n.d(t,{getUserAgent:function(){return i}})},99006:function(e){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n1,r=!1,s=arguments[1],a=s;return new n(function(n){return t.subscribe({next:function(t){var s=!r;if(r=!0,!s||i)try{a=e(a,t)}catch(o){return n.error(o)}else a=t},error:function(e){n.error(e)},complete:function(){if(!r&&!i)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i=0&&r.splice(e,1),a()}});r.push(s)},error:function(e){i.error(e)},complete:function(){a()}});function a(){s.closed&&0===r.length&&i.complete()}return function(){r.forEach(function(e){return e.unsubscribe()}),s.unsubscribe()}})}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=d(t,l);if(i){var r=i.call(t);if(Object(r)!==r)throw new TypeError(r+" is not an object");return function(e){return e instanceof k}(r)&&r.constructor===n?r:new n(function(e){return r.subscribe(e)})}if(a("iterator")&&(i=d(t,u)))return new n(function(e){f(function(){if(!e.closed){var n=!0,r=!1,s=void 0;try{for(var a,o=i.call(t)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0)if(e.next(a.value),e.closed)return}catch(u){r=!0,s=u}finally{try{!n&&null!=o.return&&o.return()}finally{if(r)throw s}}e.complete()}})});if(Array.isArray(t))return new n(function(e){f(function(){if(!e.closed){for(var n=0;n",this._properties=n&&n.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,n)}return m(t,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]}},{key:"getZoneWith",value:function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}},{key:"fork",value:function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}},{key:"wrap",value:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),i=this;return function(){return i.runGuarded(n,this,arguments,t)}}},{key:"run",value:function(e,t,n,i){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,i)}finally{P=P.parent}}},{key:"runGuarded",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,i)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{P=P.parent}}},{key:"runTask",value:function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||S).name+"; Execution: "+this.name+")");if(e.state!==E||e.type!==O&&e.type!==A){var i=e.state!=x;i&&e._transitionTo(x,D),e.runCount++;var r=F;F=e,P={parent:P,zone:this};try{e.type==A&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==E&&e.state!==M&&(e.type==O||e.data&&e.data.isPeriodic?i&&e._transitionTo(D,x):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(E,x,E))),P=P.parent,F=r}}}},{key:"scheduleTask",value:function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(e.zone.name));t=t.parent}e._transitionTo(T,E);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(M,T,E),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==T&&e._transitionTo(D,T),e}},{key:"scheduleMicroTask",value:function(e,t,n,i){return this.scheduleTask(new h(L,e,t,n,i,void 0))}},{key:"scheduleMacroTask",value:function(e,t,n,i,r){return this.scheduleTask(new h(A,e,t,n,i,r))}},{key:"scheduleEventTask",value:function(e,t,n,i,r){return this.scheduleTask(new h(O,e,t,n,i,r))}},{key:"cancelTask",value:function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||S).name+"; Execution: "+this.name+")");e._transitionTo(C,D,x);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(M,C),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(E,C),e.runCount=0,e}},{key:"_updateTaskCount",value:function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var i=0;i2&&void 0!==arguments[2]&&arguments[2];if(I.hasOwnProperty(r)){if(!o&&a)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){var u="Zone:"+r;n(u),I[r]=s(e,t,R),i(u,u)}}}])}(),o.__symbol__=s,o),c={name:"",onHasTask:function(e,t,n,i){return e.hasTask(n,i)},onScheduleTask:function(e,t,n,i){return e.scheduleTask(n,i)},onInvokeTask:function(e,t,n,i,r,s){return e.invokeTask(n,i,r,s)},onCancelTask:function(e,t,n,i){return e.cancelTask(n,i)}},d=function(){return m(function e(t,n,i){g(this,e),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=n,this._forkZS=i&&(i&&i.onFork?i:n._forkZS),this._forkDlgt=i&&(i.onFork?n:n._forkDlgt),this._forkCurrZone=i&&(i.onFork?this.zone:n._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:n._interceptZS),this._interceptDlgt=i&&(i.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:n._invokeZS),this._invokeDlgt=i&&(i.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:n._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:n._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:n._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:n._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=i&&i.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?i:c,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,i.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),i.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),i.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))},[{key:"fork",value:function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new l(e,t)}},{key:"intercept",value:function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}},{key:"invoke",value:function(e,t,n,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,i,r):t.apply(n,i)}},{key:"handleError",value:function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}},{key:"scheduleTask",value:function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=L)throw new Error("Task is missing scheduleFn.");k(t)}return n}},{key:"invokeTask",value:function(e,t,n,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,i):t.callback.apply(n,i)}},{key:"cancelTask",value:function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}},{key:"hasTask",value:function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}},{key:"_updateTaskCount",value:function(e,t){var n=this._taskCounts,i=n[e],r=n[e]=i+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=i&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}])}(),h=function(){return m(function t(n,i,r,s,a,o){if(g(this,t),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=i,this.data=s,this.scheduleFn=a,this.cancelFn=o,!r)throw new Error("callback is not defined");this.callback=r;var u=this;this.invoke=n===O&&s&&s.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}},[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(E,T)}},{key:"_transitionTo",value:function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(e,"', expecting state '").concat(t,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=e,e==E&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(e,t,n){e||(e=this),Y++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==Y&&w(),Y--}}}])}(),p=s("setTimeout"),f=s("Promise"),v=s("then"),y=[],_=!1;function b(t){if(u||e[f]&&(u=e[f].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,t)}else e[p](t,0)}function k(e){0===Y&&0===y.length&&b(w),e&&y.push(e)}function w(){if(!_){for(_=!0;y.length;){var e=y;y=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function k(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,S=!("nw"in _)&&void 0!==_.process&&"[object process]"==={}.toString.call(_.process),E=!S&&!w&&!(!v||!y.HTMLElement),T=void 0!==_.process&&"[object process]"==={}.toString.call(_.process)&&!w&&!(!v||!y.HTMLElement),D={},x=function(e){if(e=e||_.event){var t=D[e.type];t||(t=D[e.type]=f("ON_PROPERTY"+e.type));var n,i=this||e.target||_,r=i[t];if(E&&i===y&&"error"===e.type){var s=e;!0===(n=r&&r.call(this,s.message,s.filename,s.lineno,s.colno,s.error))&&e.preventDefault()}else null!=(n=r&&r.apply(this,arguments))&&!n&&e.preventDefault();return n}};function C(n,i,r){var s=e(n,i);if(!s&&r&&e(r,i)&&(s={enumerable:!0,configurable:!0}),s&&s.configurable){var a=f("on"+i+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete s.writable,delete s.value;var o=s.get,u=s.set,l=i.slice(2),c=D[l];c||(c=D[l]=f("ON_PROPERTY"+l)),s.set=function(e){var t=this;!t&&n===_&&(t=_),t&&("function"==typeof t[c]&&t.removeEventListener(l,x),u&&u.call(t,null),t[c]=e,"function"==typeof e&&t.addEventListener(l,x,!1))},s.get=function(){var e=this;if(!e&&n===_&&(e=_),!e)return null;var t=e[c];if(t)return t;if(o){var r=o.call(this);if(r)return s.set.call(this,r),"function"==typeof e.removeAttribute&&e.removeAttribute(i),r}return null},t(n,i,s),n[a]=!0}}}function L(e,t,n){if(t)for(var i=0;i=0&&"function"==typeof i[s.cbIdx]?p(s.name,i[s.cbIdx],s,r):e.apply(t,i)}})}function P(e,t){e[f("OriginalDelegate")]=t}var F=!1,Y=!1;function j(){if(F)return Y;F=!0;try{var e=y.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Y=!0)}catch(e){}return Y}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var i=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],o=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=s("Promise"),l=s("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e.throwOriginal?e.rejection:e})}catch(i){!function(e){n.onUnhandledError(e);try{var i=t[c];"function"==typeof i&&i.call(this,e)}catch(i){}}(i)}};a.length;)e()};var c=s("unhandledPromiseRejectionHandler");function d(e){return e&&e.then}function h(e){return e}function p(e){return R.reject(e)}var f=s("state"),v=s("value"),y=s("finally"),_=s("parentPromiseValue"),b=s("parentPromiseState"),k=null,w=!1;function S(e,t){return function(n){try{D(e,t,n)}catch(i){D(e,!1,i)}}}var E=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},T=s("currentTaskTrace");function D(e,i,s){var u=E();if(e===s)throw new TypeError("Promise resolved with itself");if(e[f]===k){var l=null;try{("object"==typeof s||"function"==typeof s)&&(l=s&&s.then)}catch(c){return u(function(){D(e,!1,c)})(),e}if(i!==w&&s instanceof R&&s.hasOwnProperty(f)&&s.hasOwnProperty(v)&&s[f]!==k)C(s),D(e,s[f],s[v]);else if(i!==w&&"function"==typeof l)try{l.call(s,u(S(e,i)),u(S(e,!1)))}catch(c){u(function(){D(e,!1,c)})()}else{e[f]=i;var c=e[v];if(e[v]=s,e[y]===y&&!0===i&&(e[f]=e[b],e[v]=e[_]),i===w&&s instanceof Error){var d=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;d&&r(s,T,{configurable:!0,enumerable:!1,writable:!0,value:d})}for(var h=0;h4&&void 0!==arguments[4]&&arguments[4],h=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var p=this||e,f=arguments[0];i&&i.transferEventName&&(f=i.transferEventName(f));var m=arguments[1];if(!m)return t.apply(this,arguments);if(S&&"uncaughtException"===f)return t.apply(this,arguments);var g=!1;if("function"!=typeof m){if(!m.handleEvent)return t.apply(this,arguments);g=!0}if(!s||s(t,m,p,arguments)){var v=q&&!!R&&-1!==R.indexOf(f),y=M(arguments[2],v);if(I)for(var _=0;_2}).map(function(e){return e.substring(2)})}Zone.__load_patch("util",function(n,o,u){var p=X(n);u.patchOnProperties=L,u.patchMethod=I,u.bindArguments=b,u.patchMacroTask=R;var f=o.__symbol__("BLACK_LISTED_EVENTS"),m=o.__symbol__("UNPATCHED_EVENTS");n[m]&&(n[f]=n[m]),n[f]&&(o[f]=o[m]=n[f]),u.patchEventPrototype=Q,u.patchEventTarget=W,u.isIEOrEdge=j,u.ObjectDefineProperty=t,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=i,u.ArraySlice=r,u.patchClass=O,u.wrapWithCurrentZone=h,u.filterProperties=K,u.attachOriginToPatched=P,u._redefineProperty=Object.defineProperty,u.patchCallbacks=$,u.getGlobalObjects=function(){return{globalSources:U,zoneSymbolEventNames:B,eventNames:p,isBrowser:E,isMix:T,isNode:S,TRUE_STR:l,FALSE_STR:c,ZONE_SYMBOL_PREFIX:d,ADD_EVENT_LISTENER_STR:s,REMOVE_EVENT_LISTENER_STR:a}}});var ee=f("zoneTask");function te(e,t,n,i){var r=null,s=null;n+=i;var a={};function o(t){var n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=r.apply(e,n.args),t}function u(t){return s.call(e,t.data.handleId)}r=I(e,t+=i,function(n){return function(r,s){if("function"==typeof s[0]){var l={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?s[1]||0:void 0,args:s},c=s[0];s[0]=function(){try{return c.apply(this,arguments)}finally{l.isPeriodic||("number"==typeof l.handleId?delete a[l.handleId]:l.handleId&&(l.handleId[ee]=null))}};var d=p(t,s[0],l,o,u);if(!d)return d;var h=d.data.handleId;return"number"==typeof h?a[h]=d:h&&(h[ee]=d),h&&h.ref&&h.unref&&"function"==typeof h.ref&&"function"==typeof h.unref&&(d.ref=h.ref.bind(h),d.unref=h.unref.bind(h)),"number"==typeof h||h?h:d}return n.apply(e,s)}}),s=I(e,n,function(t){return function(n,i){var r,s=i[0];"number"==typeof s?r=a[s]:(r=s&&s[ee])||(r=s),r&&"string"==typeof r.type?"notScheduled"!==r.state&&(r.cancelFn&&r.data.isPeriodic||0===r.runCount)&&("number"==typeof s?delete a[s]:s&&(s[ee]=null),r.zone.cancelTask(r)):t.apply(e,i)}})}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="clear";te(e,"set",t,"Timeout"),te(e,"set",t,"Interval"),te(e,"set",t,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){te(e,"request","cancel","AnimationFrame"),te(e,"mozRequest","mozCancel","AnimationFrame"),te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],i=0;i0){var r=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],s=0;s2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ge(function(n,i){return he(e(n,i)).pipe(ie(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ve(e,n))})}var ve=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n},[{key:"call",value:function(e,t){return t.subscribe(new ye(e,this.project,this.concurrent))}}])}(),ye=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,t),(i=v(this,t,[e])).project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}])}(fe);function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ge(G,e)}function be(e,t){return t?de(e,t):new Q(ae(e))}function ke(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof s&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof Q?t[0]:_e(i)(be(t,r))}function we(){return function(e){return e.lift(new Se(e))}}var Se=function(){return m(function e(t){g(this,e),this.connectable=t},[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new Ee(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}])}(),Ee=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).connectable=n,i}return _(t,e),m(t,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}])}(U),Te=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return _(t,e),m(t,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Y).add(this.source.subscribe(new xe(this.getSubject(),this))),e.closed&&(this._connection=null,e=Y.EMPTY)),e}},{key:"refCount",value:function(){return we()(this)}}])}(Q),De=function(){var e=Te.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),xe=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).connectable=n,i}return _(t,e),m(t,[{key:"_error",value:function(e){this._unsubscribe(),h(E(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(E(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}])}(X);function Ce(){return new ee}function Me(){return function(e){return we()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,De);return i.source=t,i.subjectFactory=n,i}}(Ce)(e))}}function Le(e){for(var t in e)if(e[t]===Le)return t;throw Error("Could not find renamed property on target object.")}function Ae(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Re=Le({__forward_ref__:Le});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Oe(this())},e}function Fe(e){return Ye(e)?e():e}function Ye(e){return"function"==typeof e&&e.hasOwnProperty(Re)&&e.__forward_ref__===Pe}var je=function(e){function t(e,n){var i;return g(this,t),i=v(this,t,[function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,n)]),i.code=e,i}return _(t,e),m(t)}(b(Error));function qe(e){return"string"==typeof e?e:null==e?"":String(e)}function Ne(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():qe(e)}function He(e,t){var n=t?" in ".concat(t):"";throw new je("201","No provider for ".concat(Ne(e)," found").concat(n))}function Be(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function ze(e){return Ve(e,Ze)||Ve(e,$e)}function Ve(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ge(e){return e&&(e.hasOwnProperty(Qe)||e.hasOwnProperty(Ke))?e[Qe]:null}var We,Ze=Le({"\u0275prov":Le}),Qe=Le({"\u0275inj":Le}),$e=Le({ngInjectableDef:Le}),Ke=Le({ngInjectorDef:Le}),Je=((Je=Je||{})[Je.Default=0]="Default",Je[Je.Host=1]="Host",Je[Je.Self=2]="Self",Je[Je.SkipSelf=4]="SkipSelf",Je[Je.Optional=8]="Optional",Je);function Xe(e){var t=We;return We=e,t}function et(e,t,n){var i=ze(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Je.Optional?null:void 0!==t?t:void He(Oe(e),"Injector")}function tt(e){return{toString:e}.toString()}var nt=((nt=nt||{})[nt.OnPush=0]="OnPush",nt[nt.Default=1]="Default",nt),it=((it=it||{})[it.Emulated=0]="Emulated",it[it.None=2]="None",it[it.ShadowDom=3]="ShadowDom",it),rt="undefined"!=typeof globalThis&&globalThis,st="undefined"!=typeof window&&window,at="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ot=rt||"undefined"!=typeof global&&global||st||at,ut={},lt=[],ct=Le({"\u0275cmp":Le}),dt=Le({"\u0275dir":Le}),ht=Le({"\u0275pipe":Le}),pt=Le({"\u0275mod":Le}),ft=Le({"\u0275loc":Le}),mt=Le({"\u0275fac":Le}),gt=Le({__NG_ELEMENT_ID__:Le}),vt=0;function yt(e){return tt(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===nt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=vt++,n.inputs=St(e.inputs,t),n.outputs=St(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(_t)}:null,n.pipeDefs=s?function(){return("function"==typeof s?s():s).map(bt)}:null,n})}function _t(e){return Tt(e)||function(e){return e[dt]||null}(e)}function bt(e){return function(e){return e[ht]||null}(e)}var kt={};function wt(e){return tt(function(){var t={type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(kt[e.id]=e.type),t})}function St(e,t){if(null==e)return ut;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}var Et=yt;function Tt(e){return e[ct]||null}function Dt(e,t){var n=e[pt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Oe(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ct(e){return Array.isArray(e)&&!0===e[1]}function Mt(e){return 0!=(8&e.flags)}function Lt(e){return 2==(2&e.flags)}function At(e){return 1==(1&e.flags)}function Ot(e){return null!==e.template}function It(e){return 0!=(512&e[2])}function Rt(e,t){return e.hasOwnProperty(mt)?e[mt]:null}var Pt=function(){return m(function e(t,n,i){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i},[{key:"isFirstChange",value:function(){return this.firstChange}}])}();function Ft(){return Yt}function Yt(e){return e.type.prototype.ngOnChanges&&(e.setInput=qt),jt}function jt(){var e=Ht(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ut)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function qt(e,t,n,i){var r=Ht(e)||function(e,t){return e[Nt]=t}(e,{previous:ut,current:null}),s=r.current||(r.current={}),a=r.previous,o=this.declaredInputs[n],u=a[o];s[o]=new Pt(u&&u.currentValue,t,a===ut),e[i]=t}Ft.ngInherit=!0;var Nt="__ngSimpleChanges__";function Ht(e){return e[Nt]||null}var Bt,Ut="http://www.w3.org/2000/svg";function zt(){return void 0!==Bt?Bt:"undefined"!=typeof document?document:void 0}function Vt(e){return!!e.listen}var Gt={createRenderer:function(e,t){return zt()}};function Wt(e){for(;Array.isArray(e);)e=e[0];return e}function Zt(e,t){return Wt(t[e])}function Qt(e,t){return Wt(t[e.index])}function $t(e,t){return e.data[t]}function Kt(e,t){return e[t]}function Jt(e,t){var n=t[e];return xt(n)?n:n[0]}function Xt(e){return 4==(4&e[2])}function en(e){return 128==(128&e[2])}function tn(e,t){return null==t?null:e[t]}function nn(e){e[18]=0}function rn(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var sn={lFrame:Ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function an(){return sn.bindingsEnabled}function on(){return sn.lFrame.lView}function un(){return sn.lFrame.tView}function ln(e){return sn.lFrame.contextLView=e,e[8]}function cn(){for(var e=dn();null!==e&&64===e.type;)e=e.parent;return e}function dn(){return sn.lFrame.currentTNode}function hn(e,t){var n=sn.lFrame;n.currentTNode=e,n.isParent=t}function pn(){return sn.lFrame.isParent}function fn(){sn.lFrame.isParent=!1}function mn(){return sn.isInCheckNoChangesMode}function gn(e){sn.isInCheckNoChangesMode=e}function vn(){var e=sn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yn(){return sn.lFrame.bindingIndex}function _n(){return sn.lFrame.bindingIndex++}function bn(e){var t=sn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kn(e,t){var n=sn.lFrame;n.bindingIndex=n.bindingRootIndex=e,wn(t)}function wn(e){sn.lFrame.currentDirectiveIndex=e}function Sn(e){var t=sn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function En(){return sn.lFrame.currentQueryIndex}function Tn(e){sn.lFrame.currentQueryIndex=e}function Dn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function xn(e,t,n){if(n&Je.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Je.Host||(i=Dn(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var s=sn.lFrame=Mn();return s.currentTNode=t,s.lView=e,!0}function Cn(e){var t=Mn(),n=e[1];sn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Mn(){var e=sn.lFrame,t=null===e?null:e.child;return null===t?Ln(e):t}function Ln(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function An(){var e=sn.lFrame;return sn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var On=An;function In(){var e=An();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rn(){return sn.lFrame.selectedIndex}function Pn(e){sn.lFrame.selectedIndex=e}function Fn(){var e=sn.lFrame;return $t(e.tView,e.selectedIndex)}function Yn(){sn.lFrame.currentNamespace=Ut}function jn(){sn.lFrame.currentNamespace=null}function qn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[o]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}var Vn=m(function e(t,n,i){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function Gn(e,t,n){for(var i=Vt(e),r=0;rt){a=s-1;break}}}for(;s>16}(e),i=t;n>0;)i=i[15],n--;return i}var ei=!0;function ti(e){var t=ei;return ei=e,t}var ni=0;function ii(e,t){var n=si(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ri(i.data,e),ri(t,null),ri(i.blueprint,null));var r=ai(e,t),s=e.injectorIndex;if(Kn(r))for(var a=Jn(r),o=Xn(r,t),u=o[1].data,l=0;l<8;l++)t[s+l]=o[a+l]|u[a+l];return t[s+8]=r,s}function ri(e,t){e.push(0,0,0,0,0,0,0,0,t)}function si(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ai(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var s=r[1],a=s.type;if(null===(i=2===a?s.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function oi(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(gt)&&(i=n[gt]),null==i&&(i=n[gt]=ni++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Je.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(gt)?e[gt]:void 0;return"number"==typeof t?t>=0?255&t:hi:t}(n);if("function"==typeof s){if(!xn(t,e,i))return i&Je.Host?ui(r,n,i):li(t,n,i,r);try{var a=s(i);if(null!=a||i&Je.Optional)return a;He(n)}finally{On()}}else if("number"==typeof s){var o=null,u=si(e,t),l=-1,c=i&Je.Host?t[16][6]:null;for((-1===u||i&Je.SkipSelf)&&(-1!==(l=-1===u?ai(e,t):t[u+8])&&vi(i,!1)?(o=t[1],u=Jn(l),t=Xn(l,t)):u=-1);-1!==u;){var d=t[1];if(gi(s,u,d.data)){var h=pi(u,t,n,o,i,c);if(h!==di)return h}-1!==(l=t[u+8])&&vi(i,t[1].data[u+8]===c)&&gi(s,u,t)?(o=d,u=Jn(l),t=Xn(l,t)):u=-1}}}return li(t,n,i,r)}var di={};function hi(){return new yi(cn(),on())}function pi(e,t,n,i,r,s){var a=t[1],o=a.data[e+8],u=fi(o,a,n,null==i?Lt(o)&&ei:i!=a&&0!=(3&o.type),r&Je.Host&&s===o);return null!==u?mi(t,a,u,o):di}function fi(e,t,n,i,r){for(var s=e.providerIndexes,a=t.data,o=1048575&s,u=e.directiveStart,l=s>>20,c=r?o+l:e.directiveEnd,d=i?o:o+l;d=u&&h.type===n)return d}if(r){var p=a[u];if(p&&Ot(p)&&p.type===n)return u}return null}function mi(e,t,n,i){var r=e[n],s=t.data;if(function(e){return e instanceof Vn}(r)){var a=r;a.resolving&&function(e,t){throw new je("200","Circular dependency in DI detected for ".concat(e))}(Ne(s[n]));var o=ti(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Xe(a.injectImpl):null;xn(e,i,Je.Default);try{r=e[n]=a.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,s=i.ngOnInit,a=i.ngDoCheck;if(r){var o=Yt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,s[n],t)}finally{null!==u&&Xe(u),ti(o),a.resolving=!1,On()}}return r}function gi(e,t,n){return!!(n[t+(e>>5)]&1<1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Mi),Ai=Di("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Mi),Oi=Function;function Ii(e,t){void 0===t&&(t=e);for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function qi(e,t){var n=Ni(e,t);if(n>=0)return e[1|n]}function Ni(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var s=i+(r-i>>1),a=e[s<<1];if(t===a)return s<<1;a>t?r=s:i=s+1}return~(r<<1)}(e,t)}var Hi,Bi={},Ui="__NG_DI_FLAG__",zi="ngTempTokenPath",Vi=/\n/gm,Gi="__source",Wi=Le({provide:String,useValue:Le});function Zi(e){var t=Hi;return Hi=e,t}function Qi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.Default;if(void 0===Hi)throw new Error("inject() must be called from an injection context");return null===Hi?et(e,void 0,t):Hi.get(e,t&Je.Optional?null:void 0,t)}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.Default;return(We||Qi)(Fe(e),t)}var Ki=$i;function Ji(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Oe(t);if(Array.isArray(t))r=t.map(Oe).join(" -> ");else if("object"==typeof t){var s=[];for(var a in t)if(t.hasOwnProperty(a)){var o=t[a];s.push(a+":"+("string"==typeof o?JSON.stringify(o):Oe(o)))}r="{".concat(s.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Vi,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[zi]=null,e}var nr=Xi(Ti("Inject",function(e){return{token:e}}),-1),ir=Xi(Ti("Optional"),8),rr=Xi(Ti("SkipSelf"),4),sr=((sr=sr||{})[sr.Important=1]="Important",sr[sr.DashCase=2]="DashCase",sr),ar="__ngContext__";function or(e,t){e[ar]=t}function ur(e){var t=function(e){return e[ar]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function lr(e,t){return(void 0)(e,t)}function cr(e){var t=e[3];return Ct(t)?t[3]:t}function dr(e){return pr(e[13])}function hr(e){return pr(e[4])}function pr(e){for(;null!==e&&!Ct(e);)e=e[4];return e}function fr(e,t,n,i,r){if(null!=i){var s,a=!1;Ct(i)?s=i:xt(i)&&(a=!0,i=i[0]);var o=Wt(i);0===e&&null!==n?null==r?wr(t,n,o):kr(t,n,o,r||null,!0):1===e&&null!==n?kr(t,n,o,r||null,!0):2===e?function(e,t,n){var i=Er(e,t);i&&function(e,t,n,i){Vt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,o,a):3===e&&t.destroyNode(o),null!=s&&function(e,t,n,i,r){var s=n[7];s!==Wt(n)&&fr(t,e,i,s,r);for(var a=10;a0&&(e[n-1][4]=i[4]);var s=Fi(e,10+t);!function(e,t){Rr(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=s[19];null!==a&&a.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function yr(e,t){if(!(256&t[2])){var n=t[11];Vt(n)&&n.destroyNode&&Rr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return _r(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&_r(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&_r(t[1],t),n=t&&t[4]}t=n}}(t)}}function _r(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{var c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(var d=r+1;d"+e;try{var t=(new window.DOMParser).parseFromString(jr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}])}(),$r=function(){return m(function e(t){if(g(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}},[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=jr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=jr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();os.hasOwnProperty(t)&&!rs.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ms(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}])}(),ps=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fs=/([^\#-~ |!])/g;function ms(e){return e.replace(/&/g,"&").replace(ps,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function gs(e,t){var n=null;try{is=is||function(e){var t=new $r(e);return function(){try{return!!(new window.DOMParser).parseFromString(jr(""),"text/html")}catch(e){return!1}}()?new Qr(t):t}(e);var i=t?String(t):"";n=is.getInertBodyElement(i);var r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=is.getInertBodyElement(i)}while(i!==s);return jr((new hs).sanitizeChildren(vs(n)||n))}finally{if(n)for(var a=vs(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function vs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ys=((ys=ys||{})[ys.NONE=0]="NONE",ys[ys.HTML=1]="HTML",ys[ys.STYLE=2]="STYLE",ys[ys.SCRIPT=3]="SCRIPT",ys[ys.URL=4]="URL",ys[ys.RESOURCE_URL=5]="RESOURCE_URL",ys);function _s(e){var t=ks();return t?qr(t.sanitize(ys.HTML,e)||""):Wr(e,"HTML")?qr(Gr(e)):gs(zt(),qe(e))}function bs(e){var t=ks();return t?t.sanitize(ys.URL,e)||"":Wr(e,"URL")?Gr(e):Xr(qe(e))}function ks(){var e=on();return e&&e[12]}function ws(e){return e.ngOriginalError}function Ss(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;is?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==xs(h,l,0)||2&i&&l!==d){if(Is(i))return!1;a=!0}}}}else{if(!a&&!Is(i)&&!Is(u))return!1;if(a&&Is(u))continue;a=!1,i=u|1&i}}return Is(i)||a}function Is(e){return 0==(1&e)}function Rs(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var s=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+o+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Is(a)&&(t+=Ys(s,r),r=""),i=a,s=s||!Is(i);n++}return""!==r&&(t+=Ys(s,r)),t}var qs={};function Ns(e){Hs(un(),on(),Rn()+e,mn())}function Hs(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Nn(t,r,n)}else{var s=e.preOrderHooks;null!==s&&Hn(t,s,0,n)}Pn(n)}function Bs(e,t){return e<<17|t<<2}function Us(e){return e>>17&32767}function zs(e){return 2|e}function Vs(e){return(131068&e)>>2}function Gs(e,t){return-131069&e|t<<2}function Ws(e){return 1|e}function Zs(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&Hs(e,t,20,mn()),n(i,r)}finally{Pn(s)}}function na(e,t,n){if(Mt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Qt,i=t.localNames;if(null!==i)for(var r=t.index+1,s=0;s0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(o)!=u&&o.push(u),o.push(i,r,a)}}function ha(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function pa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function fa(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&wa(n)}}function wa(e){for(var t=dr(e);null!==t;t=hr(t))for(var n=10;n0&&wa(i)}var s=e[1].components;if(null!==s)for(var a=0;a0&&wa(o)}}function Sa(e,t){var n=Jt(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Bi;if(t===Bi){var n=new Error("NullInjectorError: No provider for ".concat(Oe(e),"!"));throw n.name="NullInjectorError",n}return t}}])}(),Na=new xi("Set Injector scope."),Ha={},Ba={};function Ua(){return void 0===Ya&&(Ya=new qa),Ya}function za(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Va(e,n,t||Ua(),i)}var Va=function(){return m(function e(t,n,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ri(n,function(e){return r.processProvider(e,t,n)}),Ri([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ja,Za(void 0,this));var o=this.records.get(Na);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof t?null:Oe(t))},[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je.Default;this.assertNotDestroyed();var i=Zi(this),r=Xe(void 0);try{if(!(n&Je.SkipSelf)){var s=this.records.get(e);if(void 0===s){var a=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof xi}(e)&&ze(e);s=a&&this.injectableDefInScope(a)?Za(Ga(e),Ha):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}return(n&Je.Self?Ua():this.parent).get(e,t=n&Je.Optional&&t===Bi?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[zi]=o[zi]||[]).unshift(Oe(e)),i)throw o;return tr(o,e,"R3InjectorError",this.source)}throw o}finally{Xe(r),Zi(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Oe(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Fe(e)))return!1;var r=Ge(e),s=null==r&&e.ngModule||void 0,a=void 0===s?e:s,o=-1!==n.indexOf(a);if(void 0!==s&&(r=Ge(s)),null==r)return!1;if(null!=r.imports&&!o){var u;n.push(a);try{Ri(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(){var e=u[c],t=e.ngModule,n=e.providers;Ri(n,function(e){return i.processProvider(e,t,n||lt)})},c=0;c0){var n=Yi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Oe(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Ze]||e[$e]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Wa(e,t,n){var i;if($a(e)){var r=Fe(e);return Rt(r)||Ga(r)}if(Qa(e))i=function(){return Fe(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,d(Ji(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return $i(Fe(e.useExisting))};else{var s=Fe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Rt(s)||Ga(s);i=function(){return k(s,d(Ji(e.deps)))}}return i}function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Qa(e){return null!==e&&"object"==typeof e&&Wi in e}function $a(e){return"function"==typeof e}var Ka=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=za(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Ja=function(){var e=function(){return m(function e(){g(this,e)},null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ka(e,t,""):Ka(e.providers,e.parent,e.name||"")}}])}();return e.THROW_IF_NOT_FOUND=Bi,e.NULL=new qa,e.\u0275prov=Be({token:e,providedIn:"any",factory:function(){return $i(ja)}}),e.__NG_ELEMENT_ID__=-1,e}();function Xa(e,t){qn(ur(e)[1],cn())}function eo(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(Ot(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var s=e;s.inputs=to(e.inputs),s.declaredInputs=to(e.declaredInputs),s.outputs=to(e.outputs);var a=r.hostBindings;a&&ro(e,a);var o=r.viewQuery,u=r.contentQueries;if(o&&no(e,o),u&&io(e,u),Ae(e.inputs,r.inputs),Ae(e.declaredInputs,r.declaredInputs),Ae(e.outputs,r.outputs),Ot(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Qn(r.hostAttrs,n=Qn(n,r.hostAttrs))}}(i)}function to(e){return e===ut?{}:e===lt?[]:e}function no(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function io(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function ro(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var so=null;function ao(){if(!so){var e=ot.Symbol;if(e&&e.iterator)so=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Je.Default,n=on();return null===n?$i(e,t):ci(cn(),n,Fe(e),t)}function _o(e,t,n){var i=on();return ho(i,_n(),t)&&la(un(),Fn(),i,e,t,i[11],n,!1),_o}function bo(e,t,n,i,r){var s=r?"class":"style";Ra(e,n,t.inputs[s],s,i)}function ko(e,t,n,i){var r=on(),s=un(),a=20+e,o=r[11],u=r[a]=mr(o,t,sn.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,a){var o=t.consts,u=$s(t,e,2,r,tn(o,s));return ca(t,n,u,tn(o,a)),null!==u.attrs&&Fa(u,u.attrs,!1),null!==u.mergedAttrs&&Fa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,s,r,0,t,n,i):s.data[a];hn(l,!0);var c=l.mergedAttrs;null!==c&&Gn(o,u,c);var d=l.classes;null!==d&&Yr(o,u,d);var h=l.styles;null!==h&&Fr(o,u,h),64!=(64&l.flags)&&Mr(s,r,u,l),0===sn.lFrame.elementDepthCount&&or(u,r),sn.lFrame.elementDepthCount++,At(l)&&(ia(s,r,l),na(s,l,r)),null!==i&&ra(r,l)}function wo(){var e=cn();pn()?fn():hn(e=e.parent,!1);var t=e;sn.lFrame.elementDepthCount--;var n=un();n.firstCreatePass&&(qn(n,e),Mt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&bo(n,t,on(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&bo(n,t,on(),t.stylesWithoutHost,!1)}function So(e,t,n,i){ko(e,t,n,i),wo()}function Eo(e,t,n){var i=on(),r=un(),s=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var s=t.consts,a=tn(s,i),o=$s(t,e,8,"ng-container",a);return null!==a&&Fa(o,a,!0),ca(t,n,o,tn(s,r)),null!==t.queries&&t.queries.elementStart(t,o),o}(s,r,i,t,n):r.data[s];hn(a,!0);var o=i[s]=i[11].createComment("");Mr(r,i,o,a),or(o,i),At(a)&&(ia(r,i,a),na(r,a,i)),null!=n&&ra(i,a)}function To(){var e=cn(),t=un();pn()?fn():hn(e=e.parent,!1),t.firstCreatePass&&(qn(t,e),Mt(e)&&t.queries.elementEnd(e))}function Do(e,t,n){Eo(e,t,n),To()}function xo(){return on()}function Co(e){return!!e&&"function"==typeof e.then}function Mo(e){return!!e&&"function"==typeof e.subscribe}var Lo=Mo;function Ao(e,t,n,i){var r=on(),s=un(),a=cn();return Io(s,r,r[11],a,e,t,!!n,i),Ao}function Oo(e,t){var n=cn(),i=on(),r=un();return Io(r,i,Oa(Sn(r.data),n,i),n,e,t,!1),Oo}function Io(e,t,n,i,r,s,a,o){var u=At(i),l=e.firstCreatePass&&Aa(e),c=t[8],d=La(t),h=!0;if(3&i.type||o){var p=Qt(i,t),f=o?o(p):p,m=d.length,g=o?function(e){return o(Wt(e[i.index]))}:i.index;if(Vt(n)){var v=null;if(!o&&u&&(v=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var s=0;su?o[u]:null}"string"==typeof a&&(s+=2)}return null}(e,t,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=s,v.__ngLastListenerFn__=s,h=!1;else{s=Po(i,t,c,s,!1);var y=n.listen(f,r,s);d.push(s,y),l&&l.push(r,g,m,m+1)}}else s=Po(i,t,c,s,!0),f.addEventListener(r,s,a),d.push(s),l&&l.push(r,g,m,a)}else s=Po(i,t,c,s,!1);var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(sn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,sn.lFrame.contextLView))[8]}(e)}function Yo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=on(),r=un(),s=$s(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),fn(),64!=(64&s.flags)&&function(e,t,n){Pr(t[11],0,t,n,br(e,n,t),Tr(n.parent||t[6],n,t))}(r,i,s)}function No(e,t,n){return Ho(e,"",t,"",n),No}function Ho(e,t,n,i,r){var s=on(),a=mo(s,t,n,i);return a!==qs&&la(un(),Fn(),s,e,a,s[11],r,!1),Ho}function Bo(e,t,n,i,r){for(var s=e[n+1],a=null===t,o=i?Us(s):Vs(s),u=!1;0!==o&&(!1===u||a);){var l=e[o+1];Uo(e[o],t)&&(u=!0,e[o+1]=i?Ws(l):zs(l)),o=i?Us(l):Vs(l)}u&&(e[n+1]=i?zs(s):Ws(s))}function Uo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ni(e,t)>=0}var zo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vo(e){return e.substring(zo.key,zo.keyEnd)}function Go(e,t){var n=zo.textEnd;return n===t?-1:(t=zo.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,zo.key=t,n),Wo(e,t,n))}function Wo(e,t,n){for(;t=0;n=Go(t,n))ji(e,Vo(t),!0)}function Ko(e,t,n,i){var r=on(),s=un(),a=bn(2);s.firstUpdatePass&&Xo(s,e,a,i),t!==qs&&ho(r,a,t)&&nu(s,s.data[Rn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Oe(Gr(e)))),e}(t,n),i,a)}function Jo(e,t){return t>=e.expandoStartIndex}function Xo(e,t,n,i){var r=e.data;if(null===r[n+1]){var s=r[Rn()],a=Jo(e,n);su(s,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=Sn(e),s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=tu(n=eu(null,e,t,n,i),t.attrs,i),s=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=eu(r,e,t,n,i),null===s){var o=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Vs(i))return e[Us(i)]}(e,t,i);void 0!==o&&Array.isArray(o)&&function(e,t,n,i){e[Us(n?t.classBindings:t.styleBindings)]=i}(e,t,i,o=tu(o=eu(null,e,t,o[1],i),t.attrs,i))}else s=function(e,t,n){for(var i,r=t.directiveEnd,s=1+t.directiveStylingLast;s0)&&(c=!0)}else l=n;if(r)if(0!==u){var h=Us(e[o+1]);e[i+1]=Bs(h,o),0!==h&&(e[h+1]=Gs(e[h+1],i)),e[o+1]=function(e,t){return 131071&e|t<<17}(e[o+1],i)}else e[i+1]=Bs(o,0),0!==o&&(e[o+1]=Gs(e[o+1],i)),o=i;else e[i+1]=Bs(u,0),0===o?o=i:e[u+1]=Gs(e[u+1],i),u=i;c&&(e[i+1]=zs(e[i+1])),Bo(e,l,i,!0),Bo(e,l,i,!1),function(e,t,n,i,r){var s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ni(s,t)>=0&&(n[i+1]=Ws(n[i+1]))}(t,l,e,i,s),a=Bs(o,u),s?t.classBindings=a:t.styleBindings=a}(r,s,t,n,a,i)}}function eu(e,t,n,i,r){var s=null,a=n.directiveEnd,o=n.directiveStylingLast;for(-1===o?o=n.directiveStart:o++;o0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[r+1];h===qs&&(h=d?lt:void 0);var p=d?qi(h,i):c===i?h:void 0;if(l&&!ru(p)&&(p=qi(u,i)),ru(p)&&(a=p,o))return a;var f=e[r+1];r=o?Us(f):Vs(f)}if(null!==t){var m=s?t.residualClasses:t.residualStyles;null!=m&&(a=qi(m,i))}return a}function ru(e){return void 0!==e}function su(e,t){return 0!=(e.flags&(t?16:32))}function au(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=on(),i=un(),r=e+20,s=i.firstCreatePass?$s(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Vt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Mr(i,n,a,s),hn(s,!1)}function ou(e){return uu("",e,""),ou}function uu(e,t,n){var i=on(),r=mo(i,e,t,n);return r!==qs&&Pa(i,Rn(),r),uu}function lu(e,t,n,i,r){var s=on(),a=function(e,t,n,i,r,s){var a=po(e,yn(),n,r);return bn(2),a?t+qe(n)+i+qe(r)+s:qs}(s,e,t,n,i,r);return a!==qs&&Pa(s,Rn(),a),lu}function cu(e,t,n){var i=on();return ho(i,_n(),t)&&la(un(),Fn(),i,e,t,i[11],n,!0),cu}function du(e,t,n){var i=on();if(ho(i,_n(),t)){var r=un(),s=Fn();la(r,s,i,e,t,Oa(Sn(r.data),s,i),n,!0)}return du}var hu=void 0,pu=["en",[["a","p"],["AM","PM"],hu],[["AM","PM"],hu,hu],[["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"]],hu,[["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"]],hu,[["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}",hu,"{1} 'at' {0}",hu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],fu={};function mu(e){return e in fu||(fu[e]=ot.ng&&ot.ng.common&&ot.ng.common.locales&&ot.ng.common.locales[e]),fu[e]}var gu=((gu=gu||{})[gu.LocaleId=0]="LocaleId",gu[gu.DayPeriodsFormat=1]="DayPeriodsFormat",gu[gu.DayPeriodsStandalone=2]="DayPeriodsStandalone",gu[gu.DaysFormat=3]="DaysFormat",gu[gu.DaysStandalone=4]="DaysStandalone",gu[gu.MonthsFormat=5]="MonthsFormat",gu[gu.MonthsStandalone=6]="MonthsStandalone",gu[gu.Eras=7]="Eras",gu[gu.FirstDayOfWeek=8]="FirstDayOfWeek",gu[gu.WeekendRange=9]="WeekendRange",gu[gu.DateFormat=10]="DateFormat",gu[gu.TimeFormat=11]="TimeFormat",gu[gu.DateTimeFormat=12]="DateTimeFormat",gu[gu.NumberSymbols=13]="NumberSymbols",gu[gu.NumberFormats=14]="NumberFormats",gu[gu.CurrencyCode=15]="CurrencyCode",gu[gu.CurrencySymbol=16]="CurrencySymbol",gu[gu.CurrencyName=17]="CurrencyName",gu[gu.Currencies=18]="Currencies",gu[gu.Directionality=19]="Directionality",gu[gu.PluralCase=20]="PluralCase",gu[gu.ExtraData=21]="ExtraData",gu),vu="en-US";function yu(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function _u(e,t,n,i,r){if(e=Fe(e),Array.isArray(e))for(var s=0;s>20;if($a(e)||!e.multi){var f=new Vn(l,r,yo),m=wu(u,t,r?d:d+p,h);-1===m?(oi(ii(c,o),a,u),bu(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(f),o.push(f)):(n[m]=f,o[m]=f)}else{var g=wu(u,t,d+p,h),v=wu(u,t,d,d+p),y=g>=0&&n[g],_=v>=0&&n[v];if(r&&!_||!r&&!y){oi(ii(c,o),a,u);var b=function(e,t,n,i,r){var s=new Vn(e,n,yo);return s.multi=[],s.index=t,s.componentProviders=0,ku(s,r,i&&!n),s}(r?Eu:Su,n.length,r,i,l);!r&&_&&(n[v].providerFactory=b),bu(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),o.push(b)}else bu(a,e,g>-1?g:v,ku(n[r?v:g],l,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function bu(e,t,n,i){var r=$a(t);if(r||function(e){return!!e.useClass}(t)){var s=(t.useClass||t).prototype.ngOnDestroy;if(s){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var o=a.indexOf(n);-1===o?a.push(n,[i,s]):a[o+1].push(i,s)}else a.push(n,s)}}}function ku(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wu(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=un();if(i.firstCreatePass){var r=Ot(e);_u(n,i.data,i.blueprint,r,!0),_u(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var xu=m(function e(){g(this,e)}),Cu=function(){return m(function e(){g(this,e)},[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Oe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}])}(),Mu=function(){var e=m(function e(){g(this,e)});return e.NULL=new Cu,e}();function Lu(){}function Au(e,t){return new Iu(Qt(e,t))}var Ou=function(){return Au(cn(),on())},Iu=function(){var e=m(function e(t){g(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Ou,e}();function Ru(e){return e instanceof Iu?e.nativeElement:e}var Pu=m(function e(){g(this,e)}),Fu=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=function(){return Yu()},e}(),Yu=function(){var e=on(),t=Jt(cn().index,e);return function(e){return e[11]}(xt(t)?t:e)},ju=function(){var e=m(function e(){g(this,e)});return e.\u0275prov=Be({token:e,providedIn:"root",factory:function(){return null}}),e}(),qu=m(function e(t){g(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),Nu=new qu("12.2.17"),Hu=function(){return m(function e(){g(this,e)},[{key:"supports",value:function(e){return uo(e)}},{key:"create",value:function(e){return new Uu(e)}}])}(),Bu=function(e,t){return t},Uu=function(){return m(function e(t){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Bu},[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var s=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var s=t[n.index];if(null!==s&&i.push(Wt(s)),Ct(s))for(var a=10;a-1&&(vr(e,n),Fi(t,n))}this._attachedToViewContainer=!1}yr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){oa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ta(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Da(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Da(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,t){Rr(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}])}(),il=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e]))._view=e,n}return _(t,e),m(t,[{key:"detectChanges",value:function(){xa(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{xa(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}])}(nl),rl=function(e){return function(e,t,n){if(Lt(e)&&!n){var i=Jt(e.index,t);return new nl(i,i)}return 47&e.type?new nl(t[16],t):null}(cn(),on(),16==(16&e))},sl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=rl,e}(),al=[new Zu],ol=new Ju([new Hu]),ul=new el(al),ll=function(){return hl(cn(),on())},cl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=ll,e}(),dl=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._declarationLView=e,r._declarationTContainer=n,r.elementRef=i,r}return _(t,e),m(t,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Qs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Js(t,n,e),new nl(n)}}])}(cl);function hl(e,t){return 4&e.type?new dl(t,e,Au(e,t)):null}var pl=m(function e(){g(this,e)}),fl=m(function e(){g(this,e)}),ml=function(){return bl(cn(),on())},gl=function(){var e=m(function e(){g(this,e)});return e.__NG_ELEMENT_ID__=ml,e}(),vl=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._lContainer=e,r._hostTNode=n,r._hostLView=i,r}return _(t,e),m(t,[{key:"element",get:function(){return Au(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new yi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ai(this._hostTNode,this._hostLView);if(Kn(e)){var t=Xn(e,this._hostLView),n=Jn(e);return new yi(t[1].data[n+8],t)}return new yi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=yl(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){var a=s.get(pl,null);a&&(r=a)}var o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}},{key:"insert",value:function(e,n){var i=e._lView,r=i[1];if(function(e){return Ct(e[3])}(i)){var s=this.indexOf(e);if(-1!==s)this.detach(s);else{var a=i[3],o=new t(a,a[6],a[3]);o.detach(o.indexOf(e))}}var u=this._adjustIndex(n),l=this._lContainer;!function(e,t,n,i){var r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}])}(gl);function yl(e){return e[8]}function _l(e){return e[8]||(e[8]=[])}function bl(e,t){var n,i=t[e.index];if(Ct(i))n=i;else{var r;if(8&e.type)r=Wt(i);else{var s=t[11];r=s.createComment("");var a=Qt(e,t);kr(s,Er(s,a),r,function(e,t){return Vt(e)?e.nextSibling(t):t.nextSibling}(s,a),!1)}t[e.index]=n=ba(i,t,r,e),Ea(t,n)}return new vl(n,e,t)}var kl={},wl=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).ngModule=e,n}return _(t,e),m(t,[{key:"resolveComponentFactory",value:function(e){var t=Tt(e);return new Tl(t,this.ngModule)}}])}(Mu);function Sl(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var El=new xi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ts}}),Tl=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).componentDef=e,i.ngModule=n,i.componentType=e.type,i.selector=function(e){return e.map(js).join(",")}(e.selectors),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!n,i}return _(t,e),m(t,[{key:"inputs",get:function(){return Sl(this.componentDef.inputs)}},{key:"outputs",get:function(){return Sl(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,s,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var s=e.get(n,kl,r);return s!==kl||i===kl?s:t.get(n,i,r)}}}(e,i.injector):e,o=a.get(Pu,Gt),u=a.get(ju,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Vt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):mr(o.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Ut:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,p={components:[],scheduler:Ts,clean:Ma,playerHandler:null,flags:0},f=aa(0,null,null,1,0,null,null,null,null,null),m=Qs(null,f,p,h,null,null,o,l,u,a);Cn(m);try{var g=function(e,t,n,i,r,s){var a=n[1];n[20]=e;var o=$s(a,20,2,"#host",null),u=o.mergedAttrs=t.hostAttrs;null!==u&&(Fa(o,u,!0),null!==e&&(Gn(r,e,u),null!==o.classes&&Yr(r,e,o.classes),null!==o.styles&&Fr(r,e,o.styles)));var l=i.createRenderer(e,t),c=Qs(n,sa(t),null,t.onPush?64:16,n[20],o,i,l,null,null);return a.firstCreatePass&&(oi(ii(o,n),a,t.type),pa(a,o),ma(o,n.length,1)),Ea(n,c),n[20]=c}(d,this.componentDef,m,o,l);if(d)if(n)Gn(l,d,["ng-version",Nu.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&Yr(l,d,_.join(" "))}if(s=$t(f,20),void 0!==t)for(var b=s.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ja.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je.Default;return e===Ja||e===pl||e===ja?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}])}(pl),Ml=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).moduleType=e,null!==Dt(e)&&function(e){var t=new Set;!function e(n){var i=Dt(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Oe(t)," vs ").concat(Oe(t.name)))}(r,xl.get(r),n),xl.set(r,n));var s,a=M(Ds(i.imports));try{for(a.s();!(s=a.n()).done;){var o=s.value;t.has(o)||(t.add(o),e(o))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),n}return _(t,e),m(t,[{key:"create",value:function(e){return new Cl(this.moduleType,e)}}])}(fl);function Ll(e,t,n){var i=vn()+e,r=on();return r[i]===qs?co(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Al(e,t,n,i){return Rl(on(),vn(),e,t,n,i)}function Ol(e,t,n,i,r){return function(e,t,n,i,r,s,a){var o=t+n;return po(e,o,r,s)?co(e,o+2,a?i.call(a,r,s):i(r,s)):Il(e,o+2)}(on(),vn(),e,t,n,i,r)}function Il(e,t){var n=e[t];return n===qs?void 0:n}function Rl(e,t,n,i,r,s){var a=t+n;return ho(e,a,r)?co(e,a+1,s?i.call(s,r):i(r)):Il(e,a+1)}function Pl(e,t){var n,i=un(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new je("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var s=n.factory||(n.factory=Rt(n.type)),a=Xe(yo);try{var o=ti(!1),u=s();return ti(o),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,on(),r,u),u}finally{Xe(a)}}function Fl(e,t,n){var i=e+20,r=on(),s=Kt(r,i);return function(e,t){return oo.isWrapped(t)&&(t=oo.unwrap(t),e[yn()]=qs),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?Rl(r,vn(),t,s.transform,n,s):s.transform(n))}function Yl(e){return function(t){setTimeout(e,void 0,t)}}var jl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,t),(e=v(this,t)).__isAsync=n,e}return _(t,e),m(t,[{key:"emit",value:function(e){h(E(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,i){var r,s,a,o=e,u=n||function(){return null},l=i;if(e&&"object"==typeof e){var c=e;o=null===(r=c.next)||void 0===r?void 0:r.bind(c),u=null===(s=c.error)||void 0===s?void 0:s.bind(c),l=null===(a=c.complete)||void 0===a?void 0:a.bind(c)}this.__isAsync&&(u=Yl(u),o&&(o=Yl(o)),l&&(l=Yl(l)));var d=h(E(t.prototype),"subscribe",this).call(this,{next:o,error:u,complete:l});return e instanceof Y&&e.add(d),d}}])}(ee);function ql(){return this._results[ao()]()}var Nl=function(){return m(function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ao(),i=e.prototype;i[n]||(i[n]=ql)},[{key:"changes",get:function(){return this._changes||(this._changes=new jl)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=Ii(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:null;g(this,e),this.predicate=t,this.flags=n,this.read=i}),zl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[o/2]);else{for(var l=s[o+1],c=t[-u],d=10;d0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),Yc=function(){var e=function(){return m(function e(){g(this,e),this._applications=new Map,jc.addToWindow(this)},[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return jc.findTestabilityInTree(this,e,t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),jc=new(function(){return m(function e(){g(this,e)},[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}])}()),qc=!0,Nc=!1;function Hc(){return Nc=!0,qc}var Bc=new xi("AllowMultipleToken"),Uc=m(function e(t,n){g(this,e),this.name=t,this.token=n});function zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new xi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=Vc();if(!s||s.injector.get(Bc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Na,useValue:"platform"});!function(e){if(Rc&&!Rc.destroyed&&!Rc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rc=e.get(Gc);var t=e.get(hc,null);t&&t.forEach(function(e){return e()})}(Ja.create({providers:a,name:i}))}return function(e){var t=Vc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Vc(){return Rc&&!Rc.destroyed?Rc:null}var Gc=function(){var e=function(){return m(function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1},[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new Pc:("zone.js"===e?void 0:e)||new Cc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:Cc,useValue:i}];return i.run(function(){var s=Ja.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(s),o=a.injector.get(Es,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){o.handleError(e)}});a.onDestroy(function(){Qc(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var s=((o=a.injector.get(uc)).runInitializers(),o.donePromise.then(function(){return yu(a.injector.get(gc,vu)||vu),n._moduleDoBootstrap(a),a}));return Co(s)?s.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):s}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var o}(o,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Wc({},n);return function(e,t,n){var i=new Ml(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Zc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Oe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function Wc(e,t){return Array.isArray(t)?t.reduce(Wc,e):Object.assign(Object.assign({},e),t)}var Zc=function(){var e=function(){return m(function e(t,n,i,r,s){var a=this;g(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var o=new Q(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new Q(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Cc.assertNotInAngularZone(),xc(function(){!a._stable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks&&(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Cc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=ke(o,u.pipe(Me()))},[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof xu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get(pl),s=n.create(Ja.NULL,[],t||n.selector,r),a=s.location.nativeElement,o=s.injector.get(Fc,null),u=o&&s.injector.get(Yc);return o&&u&&u.registerApplication(a,o),s.onDestroy(function(){i.detachView(s.hostView),Qc(i.components,s),u&&u.unregisterApplication(a)}),this._loadComponent(s),s}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=M(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Qc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(fc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(Ja),$i(Es),$i(Mu),$i(uc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function Qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $c=m(function e(){g(this,e)}),Kc=m(function e(){g(this,e)}),Jc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xc=function(){var e=function(){return m(function e(t,n){g(this,e),this._compiler=t,this._config=n||Jc},[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=T(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),w(98255)(i).then(function(e){return e[r]}).then(function(e){return ed(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=T(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),w(98255)(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return ed(e,n,i)})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Tc),$i(Kc,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function ed(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var td=zc(null,"core",[{provide:pc,useValue:"unknown"},{provide:Gc,deps:[Ja]},{provide:Yc,deps:[]},{provide:mc,deps:[]}]),nd=[{provide:Zc,useClass:Zc,deps:[Cc,Ja,Es,Mu,uc]},{provide:El,deps:[Cc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:uc,useClass:uc,deps:[[new ir,oc]]},{provide:Tc,useClass:Tc,deps:[]},cc,{provide:Ju,useFactory:function(){return ol},deps:[]},{provide:el,useFactory:function(){return ul},deps:[]},{provide:gc,useFactory:function(e){return yu(e=e||"undefined"!=typeof $localize&&$localize.locale||vu),e},deps:[[new nr(gc),new ir,new rr]]},{provide:vc,useValue:"USD"}],id=function(){var e=m(function e(t){g(this,e)});return e.\u0275fac=function(t){return new(t||e)($i(Zc))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:nd}),e}(),rd=null;function sd(){return rd}var ad=new xi("DocumentToken"),od=function(){var e=function(){return m(function e(){g(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:ud,token:e,providedIn:"platform"}),e}();function ud(){return $i(cd)}var ld=new xi("Location Initialized"),cd=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._doc=e,n._init(),n}return _(t,e),m(t,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return sd().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=sd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=sd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){dd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){dd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}])}(od);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:hd,token:e,providedIn:"platform"}),e}();function dd(){return!!window.history.pushState}function hd(){return new cd($i(ad))}function pd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function fd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function md(e){return e&&"?"!==e[0]?"?"+e:e}var gd=function(){var e=function(){return m(function e(){g(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:vd,token:e,providedIn:"root"}),e}();function vd(e){var t=$i(ad).location;return new _d($i(od),t&&t.origin||"")}var yd=new xi("appBaseHref"),_d=function(){var e=function(e){function t(e,n){var i;if(g(this,t),(i=v(this,t))._platformLocation=e,i._removeListenerFns=[],null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,y(i)}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return pd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+md(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(gd);return e.\u0275fac=function(t){return new(t||e)($i(od),$i(yd,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),bd=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._platformLocation=e,i._baseHref="",i._removeListenerFns=[],null!=n&&(i._baseHref=n),i}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=pd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+md(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(gd);return e.\u0275fac=function(t){return new(t||e)($i(od),$i(yd,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),kd=function(){var e=function(){function e(t,n){var i=this;g(this,e),this._subject=new jl,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=fd(Sd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return m(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+md(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Sd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+md(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+md(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(gd),$i(od))},e.normalizeQueryParams=md,e.joinWithSlash=pd,e.stripTrailingSlash=fd,e.\u0275prov=Be({factory:wd,token:e,providedIn:"root"}),e}();function wd(){return new kd($i(gd),$i(od))}function Sd(e){return e.replace(/\/index.html$/,"")}var Ed=((Ed=Ed||{})[Ed.Zero=0]="Zero",Ed[Ed.One=1]="One",Ed[Ed.Two=2]="Two",Ed[Ed.Few=3]="Few",Ed[Ed.Many=4]="Many",Ed[Ed.Other=5]="Other",Ed),Td=m(function e(){g(this,e)}),Dd=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).locale=e,n}return _(t,e),m(t,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=mu(t);if(n)return n;var i=t.split("-")[0];if(n=mu(i))return n;if("en"===i)return pu;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[gu.PluralCase]}(t||this.locale)(e)){case Ed.Zero:return"zero";case Ed.One:return"one";case Ed.Two:return"two";case Ed.Few:return"few";case Ed.Many:return"many";default:return"other"}}}])}(Td);return e.\u0275fac=function(t){return new(t||e)($i(gc))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function xd(e,t){t=encodeURIComponent(t);var n,i=M(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,s=r.indexOf("="),a=T(-1==s?[r,""]:[r.slice(0,s),r.slice(s+1)],2),o=a[0],u=a[1];if(o.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var Cd=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null},[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(uo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Oe(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Ju),yo(el),yo(Iu),yo(Fu))},e.\u0275dir=Et({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Md=function(){return m(function e(t,n,i,r){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r},[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}])}(),Ld=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null},[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var s=t._viewContainer.createEmbeddedView(t._template,new Md(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Ad(e,s);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var o=t._viewContainer.get(i);t._viewContainer.move(o,r);var u=new Ad(e,o);n.push(u)}});for(var i=0;i1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},ot.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ot.getAllAngularRootElements=function(){return e.getAllRootElements()},ot.frameworkStabilizers||(ot.frameworkStabilizers=[]),ot.frameworkStabilizers.push(function(e){var t=ot.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?sd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){jc=e}(new e)}}])}(),ih=function(){var e=function(){return m(function e(){g(this,e)},[{key:"build",value:function(){return new XMLHttpRequest}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rh=new xi("EventManagerPlugins"),sh=function(){var e=function(){return m(function e(t,n){var i=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()},[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=s,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&kh.hasOwnProperty(t)&&(t=kh[t]))}return bh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_h.forEach(function(i){i!=n&&wh[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,n,i){return function(r){t.getEventFullKey(r)===e&&i.runGuarded(function(){return n(r)})}}},{key:"_normalizeKey",value:function(e){return"esc"===e?"escape":e}}])}(ah);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),Eh=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return $i(Th)},token:e,providedIn:"root"}),e}(),Th=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._doc=e,n}return _(t,e),m(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case ys.NONE:return t;case ys.HTML:return Wr(t,"HTML")?Gr(t):gs(this._doc,String(t)).toString();case ys.STYLE:return Wr(t,"Style")?Gr(t):t;case ys.SCRIPT:if(Wr(t,"Script"))return Gr(t);throw new Error("unsafe value used in a script context");case ys.URL:return Zr(t),Wr(t,"URL")?Gr(t):Xr(String(t));case ys.RESOURCE_URL:if(Wr(t,"ResourceURL"))return Gr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return function(e){return new Hr(e)}(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return function(e){return new Br(e)}(e)}},{key:"bypassSecurityTrustScript",value:function(e){return function(e){return new Ur(e)}(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return function(e){return new zr(e)}(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return function(e){return new Vr(e)}(e)}}])}(Eh);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return function(e){return new Th(e.get(ad))}($i(ja))},token:e,providedIn:"root"}),e}(),Dh=[{provide:pc,useValue:Vd},{provide:hc,useValue:function(){Jd.makeCurrent(),nh.init()},multi:!0},{provide:ad,useFactory:function(){return function(e){Bt=e}(document),document},deps:[]}],xh=zc(td,"browser",Dh),Ch=[[],{provide:Na,useValue:"root"},{provide:Es,useFactory:function(){return new Es},deps:[]},{provide:rh,useClass:yh,multi:!0,deps:[ad,Cc,pc]},{provide:rh,useClass:Sh,multi:!0,deps:[ad]},[],{provide:fh,useClass:fh,deps:[sh,uh,lc]},{provide:Pu,useExisting:fh},{provide:oh,useExisting:uh},{provide:uh,useClass:uh,deps:[ad]},{provide:Fc,useClass:Fc,deps:[Cc]},{provide:sh,useClass:sh,deps:[rh,Cc]},{provide:Kd,useClass:ih,deps:[]},[]],Mh=function(){var e=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:lc,useValue:t.appId},{provide:eh,useExisting:lc},th]}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(e,12))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:Ch,imports:[zd,id]}),e}();function Lh(){return new Ah($i(ad))}var Ah=function(){var e=function(){return m(function e(t){g(this,e),this._doc=t},[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:Lh,token:e,providedIn:"root"}),e}();function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=e.slice(0,t),r=i.toLowerCase(),s=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(s):n.headers.set(r,[s])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return m(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,d(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var s=this.headers.get(t);if(!s)return;0===(s=s.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}])}(),Nh=function(){return m(function e(){g(this,e)},[{key:"encodeKey",value:function(e){return Uh(e)}},{key:"encodeValue",value:function(e){return Uh(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}])}(),Hh=/%(\d[a-f0-9])/gi,Bh={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Uh(e){return encodeURIComponent(e).replace(Hh,function(e,t){var n;return null!==(n=Bh[t])&&void 0!==n?n:e})}function zh(e){return"".concat(e)}var Vh=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Nh,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=T(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),s=r[0],a=r[1],o=n.get(s)||[];o.push(a),n.set(s,o)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return m(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(zh(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(zh(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}])}(),Gh=function(){return m(function e(){g(this,e),this.map=new Map},[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}])}();function Wh(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Zh(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Qh(e){return"undefined"!=typeof FormData&&e instanceof FormData}var $h=function(){function e(t,n,i,r){var s;if(g(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,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 qh),this.context||(this.context=new Gh),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var o=n.indexOf("?");this.urlWithParams=n+(-1===o?"?":o0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,s=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,o=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,d=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:d,reportProgress:u,responseType:s,withCredentials:o})}}])}(),Kh=((Kh=Kh||{})[Kh.Sent=0]="Sent",Kh[Kh.UploadProgress=1]="UploadProgress",Kh[Kh.ResponseHeader=2]="ResponseHeader",Kh[Kh.DownloadProgress=3]="DownloadProgress",Kh[Kh.Response=4]="Response",Kh[Kh.User=5]="User",Kh),Jh=m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,e),this.headers=t.headers||new qh,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),Xh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,t),(e=v(this,t,[n])).type=Kh.ResponseHeader,e}return _(t,e),m(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(Jh),ep=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,t),(e=v(this,t,[n])).type=Kh.Response,e.body=void 0!==n.body?n.body:null,e}return _(t,e),m(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(Jh),tp=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e,0,"Unknown Error"])).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return _(t,e),m(t)}(Jh);function np(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var ip=function(){var e=function(){return m(function e(t){g(this,e),this.handler=t},[{key:"request",value:function(e,t){var n,i,r,s=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof $h?n=e:(i=a.headers instanceof qh?a.headers:new qh(a.headers),a.params&&(r=a.params instanceof Vh?a.params:new Vh({fromObject:a.params})),n=new $h(e,t,void 0!==a.body?a.body:null,{headers:i,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var o=Oh(n).pipe(Ih(function(e){return s.handler.handle(e)}));if(e instanceof $h||"events"===a.observe)return o;var u=o.pipe(Rh(function(e){return e instanceof ep}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(ie(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(ie(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(ie(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return u.pipe(ie(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Vh).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,np(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,np(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,np(n,t))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Yh))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rp=function(){return m(function e(t,n){g(this,e),this.next=t,this.interceptor=n},[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}])}(),sp=new xi("HTTP_INTERCEPTORS"),ap=function(){var e=function(){return m(function e(){g(this,e)},[{key:"intercept",value:function(e,t){return t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),op=/^\)\]\}',?\n/,up=function(){var e=function(){return m(function e(t){g(this,e),this.xhrFactory=t},[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Q(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var s=e.responseType.toLowerCase();i.responseType="json"!==s?s:"text"}var a=e.serializeBody(),o=null,u=function(){if(null!==o)return o;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new qh(i.getAllResponseHeaders()),s=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return o=new Xh({headers:r,status:t,statusText:n,url:s})},l=function(){var t=u(),r=t.headers,s=t.status,a=t.statusText,o=t.url,l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);var c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(op,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,c&&(c=!1,l={error:h,text:l})}}c?(n.next(new ep({body:l,headers:r,status:s,statusText:a,url:o||void 0})),n.complete()):n.error(new tp({error:l,headers:r,status:s,statusText:a,url:o||void 0}))},c=function(e){var t=u().url,r=new tp({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(u()),d=!0);var r={type:Kh.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:Kh.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:Kh.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Kd))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),lp=new xi("XSRF_COOKIE_NAME"),cp=new xi("XSRF_HEADER_NAME"),dp=m(function e(){g(this,e)}),hp=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0},[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(pc),$i(lp))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),pp=function(){var e=function(){return m(function e(t,n){g(this,e),this.tokenService=t,this.headerName=n},[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(dp),$i(cp))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),fp=function(){var e=function(){return m(function e(t,n){g(this,e),this.backend=t,this.injector=n,this.chain=null},[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(sp,[]);this.chain=t.reduceRight(function(e,t){return new rp(e,t)},this.backend)}return this.chain.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(jh),$i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),mp=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:pp,useClass:ap}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:lp,useValue:t.cookieName}:[],t.headerName?{provide:cp,useValue:t.headerName}:[]]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[pp,{provide:sp,useExisting:pp,multi:!0},{provide:dp,useClass:hp},{provide:lp,useValue:"XSRF-TOKEN"},{provide:cp,useValue:"X-XSRF-TOKEN"}]}),e}(),gp=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ip,{provide:Yh,useClass:fp},up,{provide:jh,useExisting:up}],imports:[[mp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),vp=m(function e(){g(this,e)}),yp="*";function _p(e,t){return{type:7,name:e,definitions:t,options:{}}}function bp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function wp(e){return{type:6,styles:e,offset:null}}function Sp(e,t,n){return{type:0,name:e,styles:t,options:n}}function Ep(e){return{type:5,steps:e}}function Tp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Dp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function xp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Cp(e){Promise.resolve(null).then(e)}var Mp=function(){return m(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Cp(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),Lp=function(){return m(function e(t){var n=this;g(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,s=0,a=this.players.length;0==a?Cp(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++s==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}();function Ap(){return"undefined"!=typeof window&&void 0!==window.document}function Op(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ip(e){switch(e.length){case 0:return new Mp;case 1:return e[0];default:return new Lp(e)}}function Rp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],o=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,o=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),o){case"!":o=r[n];break;case yp:o=s[n];break;default:o=t.normalizeStyleValue(n,i,o,a)}c[i]=o}),i||o.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return o}function Pp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Fp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Fp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Fp(n,"destroy",e))})}}function Fp(e,t,n){var i=n.totalTime,r=Yp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function Yp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!a}}function jp(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function qp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Np=function(e,t){return!1},Hp=function(e,t){return!1},Bp=function(e,t,n){return[]},Up=Op();(Up||"undefined"!=typeof Element)&&(Np=Ap()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},Hp=function(){if(Up||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Hp}(),Bp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function cf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else lf(e,n);return n}function df(e,t,n){return n?t+":"+n+";":""}function hf(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var s=r[1],a=r[2],o=r[3];t.push(Lf(s,o)),"<"==a[0]&&("*"!=s||"*"!=o)&&t.push(Lf(o,s))}(e,n,t)}):n.push(e),n}var Cf=new Set(["true","1"]),Mf=new Set(["false","0"]);function Lf(e,t){var n=Cf.has(e)||Mf.has(e),i=Cf.has(t)||Mf.has(t);return function(r,s){var a="*"==e||e==r,o="*"==t||t==s;return!a&&n&&"boolean"==typeof r&&(a=r?Cf.has(e):Mf.has(e)),!o&&i&&"boolean"==typeof s&&(o=s?Cf.has(t):Mf.has(t)),a&&o}}var Af=new RegExp("s*:selfs*,?","g");function Of(e,t,n){return new If(e).build(t,n)}var If=function(){return m(function e(t){g(this,e),this._driver=t},[{key:"build",value:function(e,t){var n=new Rf(t);return this._resetContextStyleTimingState(n),Tf(this,mf(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,s=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var o=e,u=o.name;u.toString().split(/\s*,\s*/).forEach(function(e){o.name=e,s.push(n.visitState(o,t))}),o.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,s=i||{};if(n.styles.forEach(function(e){if(Pf(e)){var t=e;Object.keys(t).forEach(function(e){vf(t[e]).forEach(function(e){s.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=_f(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=Tf(this,mf(e.animation),t);return{type:1,matchers:xf(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ff(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Tf(n,e,t)}),options:Ff(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,s=e.steps.map(function(e){t.currentTime=i;var s=Tf(n,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:Ff(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Yf(uf(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=Yf(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Yf((n=n||uf(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:wp({});if(5==r.type)i=this.visitKeyframes(r,t);else{var s=e.styles,a=!1;if(!s){a=!0;var o={};n.easing&&(o.easing=n.easing),s=wp(o)}t.currentTime+=n.duration+n.delay;var u=this.visitStyle(s,t);u.isEmptyStep=a,i=u}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==yp?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(Pf(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var s in t)if(t[s].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],o=a[i],u=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(o.startTime,'ms" and "').concat(o.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(r,'ms"')),u=!1),s=o.startTime),u&&(a[i]={startTime:s,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=vf(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,s=[],a=!1,o=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Pf(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Pf(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&r0?r==h?1:d*r:s[r],o=a*m;t.currentTime=p+f.delay+o,f.duration=o,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Tf(this,mf(e.animation),t),options:Ff(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Ff(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ff(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Af,"")),e=e.replace(/@\*/g,nf).replace(/@\w+/g,function(e){return nf+"-"+e.substr(1)}).replace(/:animating/g,sf),[e,t]}(e.selector),s=T(r,2),a=s[0],o=s[1];t.currentQuerySelector=n.length?n+" "+a:a,jp(t.collectedStyles,t.currentQuerySelector,{});var u=Tf(this,mf(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:u,originalSelector:e.selector,options:Ff(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:uf(e.timings,t.errors,!0);return{type:12,animation:Tf(this,mf(e.animation),t),timings:n,options:null}}}])}(),Rf=m(function e(t){g(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Pf(e){return!Array.isArray(e)&&"object"==typeof e}function Ff(e){return e?(e=lf(e)).params&&(e.params=function(e){return e?lf(e):null}(e.params)):e={},e}function Yf(e,t,n){return{duration:e,delay:t,easing:n}}function jf(e,t,n,i,r,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:a,subTimeline:o}}var qf=function(){return m(function e(){g(this,e),this._map=new Map},[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,d(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}])}(),Nf=new RegExp(":enter","g"),Hf=new RegExp(":leave","g");function Bf(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},o=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Uf).buildKeyframes(e,t,n,i,r,s,a,o,u,l)}var Uf=function(){return m(function e(){g(this,e)},[{key:"buildKeyframes",value:function(e,t,n,i,r,s,a,o,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new qf;var c=new Vf(e,t,u,i,r,l,[]);c.options=o,c.currentTimeline.setStyles([s],null,c.errors,o),Tf(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,o)}return d.length?d.map(function(e){return e.buildKeyframes()}):[jf(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?af(n.duration):null,s=null!=n.delay?af(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Tf(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zf);var a=af(s.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Tf(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?af(e.options.delay):0;e.steps.forEach(function(a){var o=t.createSubContext(e.options);s&&o.delayNextStep(s),Tf(n,a,o),r=Math.max(r,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return uf(t.params?yf(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(function(e){s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?af(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=zf);var a=i,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;var u=null;o.forEach(function(i,r){t.currentQueryIndex=r;var o=t.createSubContext(e.options,i);s&&o.delayNextStep(s),i===t.element&&(u=o.currentTimeline),Tf(n,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1),o=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":o=a-o;break;case"full":o=n.currentStaggerTime}var u=t.currentTimeline;o&&u.delayNextStep(o);var l=u.currentTime;Tf(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}])}(),zf={},Vf=function(){function e(t,n,i,r,s,a,o,u){g(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Gf(this._driver,n,0),o.push(this.currentTimeline)}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=af(i.duration)),null!=i.delay&&(r.delay=af(i.delay));var s=i.params;if(s){var a=r.params;a||(a=this.options.params={}),Object.keys(s).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=yf(s[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,s=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=zf,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Wf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,s){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Nf,"."+this._enterClassName)).replace(Hf,"."+this._leaveClassName);var o=this._driver.query(this.element,e,1!=n);0!==n&&(o=n<0?o.slice(o.length+n,o.length):o.slice(0,n)),a.push.apply(a,d(o))}return!r&&0==a.length&&s.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}])}(),Gf=function(){function e(t,n,i,r){g(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return m(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||yp,t._currentKeyframe[e]=yp}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var s=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=yp}):cf(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=yf(a[e],s,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:yp),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(s,a){var o=cf(s,!0);Object.keys(o).forEach(function(e){var i=o[e];"!"==i?t.add(e):i==yp&&n.add(e)}),i||(o.offset=a/e.duration),r.push(o)});var s=t.size?_f(t.values()):[],a=n.size?_f(n.values()):[];if(i){var o=r[0],u=lf(o);o.offset=0,u.offset=1,r=[o,u]}return jf(this.element,r,s,a,this.duration,this.startTime,this.easing,!1)}}])}(),Wf=function(e){function t(e,n,i,r,s,a){var o,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return g(this,t),(o=v(this,t,[e,n,a.delay])).keyframes=i,o.preStyleProps=r,o.postStyleProps=s,o._stretchStartingKeyframe=u,o.timings={duration:a.duration,delay:a.delay,easing:a.easing},o}return _(t,e),m(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var s=[],a=i+n,o=n/a,u=cf(e[0],!1);u.offset=0,s.push(u);var l=cf(e[0],!1);l.offset=Zf(o),s.push(l);for(var c=e.length-1,d=1;d<=c;d++){var h=cf(e[d],!1);h.offset=Zf((n+h.offset*i)/a),s.push(h)}i=a,n=0,r="",e=s}return jf(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}])}(Gf);function Zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Qf=m(function e(){g(this,e)}),$f=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"normalizePropertyName",value:function(e,t){return kf(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",s=n.toString().trim();if(Kf[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return s+r}}])}(Qf),Kf=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Jf(e,t,n,i,r,s,a,o,u,l,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:a,timelines:o,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:h}}var Xf={},em=function(){return m(function e(t,n,i){g(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i},[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}},{key:"build",value:function(e,t,n,i,r,s,a,o,u,l){var c=[],d=this.ast.options&&this.ast.options.params||Xf,h=this.buildStyles(n,a&&a.params||Xf,c),p=o&&o.params||Xf,f=this.buildStyles(i,p,c),m=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},d),p)},b=l?[]:Bf(e,t,this.ast.animation,r,s,h,f,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Jf(t,this._triggerName,n,i,y,h,f,[],[],g,v,k,c);b.forEach(function(e){var n=e.element,i=jp(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=jp(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var w=_f(m.values());return Jf(t,this._triggerName,n,i,y,h,f,b,w,g,v,k)}}])}(),tm=function(){return m(function e(t,n,i){g(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i},[{key:"buildStyles",value:function(e,t){var n=this,i={},r=lf(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var s=e;Object.keys(s).forEach(function(e){var a=s[e];a.length>1&&(a=yf(a,r,t));var o=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,o,a,t),i[o]=a})}}),i}}])}(),nm=function(){return m(function e(t,n,i){var r=this;g(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new tm(e.style,e.options&&e.options.params||{},i)}),im(this.states,"true","1"),im(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new em(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new em(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)},[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}])}();function im(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var rm=new qf,sm=function(){return m(function e(t,n,i){g(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]},[{key:"register",value:function(e,t){var n=[],i=Of(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Rp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],a=this._animations[e],o=new Map;if(a?(n=Bf(this._driver,t,a,Xp,ef,{},{},r,rm,s)).forEach(function(e){var t=jp(o,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),n=[]),s.length)throw new Error("Unable to create the animation due to the following errors: ".concat(s.join("\n")));o.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,yp)})});var u=Ip(n.map(function(e){var t=o.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=Yp(t,"","","");return Pp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}])}(),am="ng-animate-queued",om="ng-animate-disabled",um=".ng-animate-disabled",lm=[],cm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hm="__ng_removed",pm=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";g(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(i?t.value:t),i){var r=lf(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})},[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}])}(),fm="void",mm=new pm(fm),gm=function(){return m(function e(t,n,i){g(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Em(n,this._hostClassName)},[{key:"listen",value:function(e,t,n,i){var r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(n))throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var s=jp(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};s.push(a);var o=jp(this._engine.statesByElement,e,{});return o.hasOwnProperty(t)||(Em(e,tf),Em(e,tf+"-"+t),o[t]=mm),function(){r._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),r._triggers[t]||delete o[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(t),a=new ym(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Em(e,tf),Em(e,tf+"-"+t),this._engine.statesByElement.set(e,o={}));var u=o[t],l=new pm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),o[t]=l,u||(u=mm),l.value===fm||u.value!==l.value){var c=jp(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=s.matchTransition(u.value,l.value,e,l.params),h=!1;if(!d){if(!r)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:u,toState:l,player:a,isFallbackTransition:h}),h||(Em(e,am),a.onStart(function(){Tm(e,am)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(s,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Em(e,om)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Tm(e,om))}},{key:"removeNode",value:function(e,t,n,i){if(_m(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[hm]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return _m(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,nf,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,sf,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Ip(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[hm];if(n&&n.setForRemoval){if(e[hm]=cm,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,um)&&this.markElementAsDisabled(e,!1),this.driver.query(e,um,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(function(e){var t=e.player,s=e.element;if(T.push(t),n.collectedEnterElements.length){var c=s[hm];if(c&&c.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,s),p=S.get(s),f=m.get(s),g=n._buildInstruction(e,i,f,p,d);if(g.errors&&g.errors.length)D.push(g);else{if(d)return t.onStart(function(){return ff(s,g.fromStyles)}),t.onDestroy(function(){return pf(s,g.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return ff(s,g.fromStyles)}),t.onDestroy(function(){return pf(s,g.toStyles)}),void r.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(s,g.timelines),a.push({instruction:g,player:t,element:s}),g.queriedElements.forEach(function(e){return jp(o,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(D.length){var C=[];D.forEach(function(e){C.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return C.push("- ".concat(e,"\n"))})}),T.forEach(function(e){return e.destroy()}),this.reportError(C)}var M=new Map,L=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,M))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){jp(M,t,[]).push(e),e.destroy()})});var A=v.filter(function(e){return Cm(e,u,l)}),O=new Map;km(O,this.driver,_,l,yp).forEach(function(e){Cm(e,u,l)&&A.push(e)});var I=new Map;f.forEach(function(e,t){km(I,n.driver,new Set(e),u,"!")}),A.forEach(function(e){var t=O.get(e),n=I.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var R=[],P=[],F={};a.forEach(function(e){var t=e.element,a=e.player,o=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return pf(t,o.toStyles)}),a.disabled=!0,a.overrideTotalTime(o.totalTime),void r.push(a);var u=F;if(L.size>1){for(var l=t,d=[];l=l.parentNode;){var h=L.get(l);if(h){u=h;break}d.push(l)}d.forEach(function(e){return L.set(e,u)})}var p=n._buildAnimation(a.namespaceId,o,M,s,I,O);if(a.setRealPlayer(p),u===F)R.push(a);else{var f=n.playersByElement.get(u);f&&f.length&&(a.parentPlayer=Ip(f)),r.push(a)}}else ff(t,o.fromStyles),a.onDestroy(function(){return pf(t,o.toStyles)}),P.push(a),c.has(t)&&r.push(a)}),P.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=Ip(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var Y=0;Y0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Mp(e.duration,e.delay)}}])}(),ym=function(){return m(function e(t,n,i){g(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Mp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0},[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Pp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){jp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}])}();function _m(e){return e&&1===e.nodeType}function bm(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function km(e,t,n,i,r){var s=[];n.forEach(function(e){return s.push(bm(e))});var a=[];i.forEach(function(n,i){var s={};n.forEach(function(e){var n=s[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[hm]=dm,a.push(i))}),e.set(i,s)});var o=0;return n.forEach(function(e){return bm(e,s[o++])}),a}function wm(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function s(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:s(a),r.set(e,t),t}return t.forEach(function(e){var t=s(e);1!==t&&n.get(t).push(e)}),n}var Sm="$$classes";function Em(e,t){if(e.classList)e.classList.add(t);else{var n=e[Sm];n||(n=e[Sm]={}),n[t]=!0}}function Tm(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Sm];n&&delete n[t]}}function Dm(e,t,n){Ip(n).onDone(function(){return e.processLeaveNode(t)})}function xm(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}])}();function Lm(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Om(t[0]),t.length>1&&(i=Om(t[t.length-1]))):t&&(n=Om(t)),n||i?new Am(e,n,i):null}var Am=function(){var e=function(){function e(t,n,i){g(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return m(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pf(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pf(this._element,this._initialStyles),this._endStyles&&(pf(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ff(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ff(this._element,this._endStyles),this._endStyles=null),pf(this._element,this._initialStyles),this._state=3)}}])}();return e.initialStylesByElement=new WeakMap,e}();function Om(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Nm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=Bm(e,"").split(","),i=qm(n,t);i>=0&&(n.splice(i,1),Hm(e,"",n.join(",")))}(this._element,this._name))}}])}();function Ym(e,t,n){Hm(e,"PlayState",n,jm(e,t))}function jm(e,t){var n=Bm(e,"");return n.indexOf(",")>0?qm(n.split(","),t):qm([n],t)}function qm(e,t){for(var n=0;n=0)return n;return-1}function Nm(e,t,n){n?e.removeEventListener(Pm,t):e.addEventListener(Pm,t)}function Hm(e,t,n,i){var r=Rm+t;if(null!=i){var s=e.style[r];if(s.length){var a=s.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Bm(e,t){return e.style[Rm+t]||""}var Um=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+s,this._buildStyler()},[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Fm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Df(e.element,i))})}this.currentSnapshot=t}}])}(),zm=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=$p(n),i}return _(t,e),m(t,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(E(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(E(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(E(t.prototype),"destroy",this).call(this))}}])}(Mp),Vm=function(){return m(function e(){g(this,e),this._count=0},[{key:"validateStyleProperty",value:function(e){return Gp(e)}},{key:"matchesElement",value:function(e,t){return Wp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Qp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return $p(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var s=document.createElement("style");return s.textContent=i,s}},{key:"animate",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=s.filter(function(e){return e instanceof Um}),o={};Sf(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=Ef(e,t,o));if(0==n)return new zm(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var d=Lm(e,t),h=new Um(e,t,l,n,i,r,u,d);return h.onDestroy(function(){return function(e){e.parentNode.removeChild(e)}(c)}),h}}])}(),Gm=function(){return m(function e(t,n,i,r){g(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Df(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),Wm=function(){return m(function e(){g(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Zm().toString()),this._cssKeyframesDriver=new Vm},[{key:"validateStyleProperty",value:function(e){return Gp(e)}},{key:"matchesElement",value:function(e,t){return Wp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Qp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);var o={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(o.easing=r);var u={},l=s.filter(function(e){return e instanceof Gm});Sf(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=Lm(e,t=Ef(e,t=t.map(function(e){return cf(e,!1)}),u));return new Gm(e,t,o,c)}}])}();function Zm(){return Ap()&&Element.prototype.animate||{}}var Qm=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),i}return _(t,e),m(t,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?kp(e):e;return Jm(this._renderer,null,t,"register",[n]),new $m(t,this._renderer)}}])}(vp);return e.\u0275fac=function(t){return new(t||e)($i(Pu),$i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),$m=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._id=e,i._renderer=n,i}return _(t,e),m(t,[{key:"create",value:function(e,t){return new Km(this._id,e,t||{},this._renderer)}}])}(function(){return m(function e(){g(this,e)})}()),Km=function(){return m(function e(t,n,i,r){g(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)},[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Xm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}])}(),ng=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[n,i,r])).factory=e,s.namespaceId=n,s}return _(t,e),m(t,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Xm?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,s,a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),o=t.substr(1),u="";return"@"!=o.charAt(0)&&(r=function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(o),o=(s=T(r,2))[0],u=s[1]),this.engine.listen(this.namespaceId,a,o,u,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}])}(tg),ig=function(){var e=function(e){function t(e,n,i){return g(this,t),v(this,t,[e.body,n,i])}return _(t,e),m(t,[{key:"ngOnDestroy",value:function(){this.flush()}}])}(Mm);return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(Jp),$i(Qf))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),rg=new xi("AnimationModuleType"),sg=[{provide:vp,useClass:Qm},{provide:Qf,useFactory:function(){return new $f}},{provide:Mm,useClass:ig},{provide:Pu,useFactory:function(e,t,n){return new eg(e,t,n)},deps:[fh,Mm,Cc]}],ag=[{provide:Jp,useFactory:function(){return"function"==typeof Zm()?new Wm:new Vm}},{provide:rg,useValue:"BrowserAnimations"}].concat(sg),og=[{provide:Jp,useClass:Kp},{provide:rg,useValue:"NoopAnimations"}].concat(sg),ug=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?og:ag}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:ag,imports:[Mh]}),e}(),lg=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._value=e,n}return _(t,e),m(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var n=h(E(t.prototype),"_subscribe",this).call(this,e);return n&&!n.closed&&e.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new K;return this._value}},{key:"next",value:function(e){h(E(t.prototype),"next",this).call(this,this._value=e)}}])}(ee),cg=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}])}(U),dg=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t)).parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return _(t,e),m(t,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}])}(U);function hg(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new dg(e,n,i);if(!r.closed)return t instanceof Q?t.subscribe(r):ce(t)(r)}var pg={};function fg(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(i){return i.lift(new Ag(e,t,n))}}var Ag=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i},[{key:"call",value:function(e,t){return t.subscribe(new Og(e,this.accumulator,this.seed,this.hasSeed))}}])}(),Og=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e])).accumulator=n,s._seed=i,s.hasSeed=r,s.index=0,s}return _(t,e),m(t,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}])}(U);function Ig(e){return function(t){var n=new Rg(e),i=t.lift(n);return n.caught=i}}var Rg=function(){return m(function e(t){g(this,e),this.selector=t},[{key:"call",value:function(e,t){return t.subscribe(new Pg(e,this.selector,this.caught))}}])}(),Pg=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).selector=n,r.caught=i,r}return _(t,e),m(t,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(s){return void h(E(t.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var i=new pe(this);this.add(i);var r=me(n,i);r!==i&&this.add(r)}}}])}(fe);function Fg(e){return function(t){return 0===e?bg():t.lift(new Yg(e))}}var Yg=function(){return m(function e(t){if(g(this,e),this.total=t,this.total<0)throw new Tg},[{key:"call",value:function(e,t){return t.subscribe(new jg(e,this.total))}}])}(),jg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).total=n,i.ring=new Array,i.count=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Bg;return function(t){return t.lift(new Ng(e))}}var Ng=function(){return m(function e(t){g(this,e),this.errorFactory=t},[{key:"call",value:function(e,t){return t.subscribe(new Hg(e,this.errorFactory))}}])}(),Hg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).errorFactory=n,i.hasValue=!1,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}])}(U);function Bg(){return new vg}function Ug(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new zg(e))}}var zg=function(){return m(function e(t){g(this,e),this.defaultValue=t},[{key:"call",value:function(e,t){return t.subscribe(new Vg(e,this.defaultValue))}}])}(),Vg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).defaultValue=n,i.isEmpty=!0,i}return _(t,e),m(t,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}])}(U);function Gg(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Rh(function(t,n){return e(t,n,i)}):G,Dg(1),n?Ug(t):qg(function(){return new vg}))}}function Wg(){}function Zg(e,t,n){return function(i){return i.lift(new Qg(e,t,n))}}var Qg=function(){return m(function e(t,n,i){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=i},[{key:"call",value:function(e,t){return t.subscribe(new $g(e,this.nextOrObserver,this.error,this.complete))}}])}(),$g=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e]))._tapNext=Wg,s._tapError=Wg,s._tapComplete=Wg,s._tapError=i||Wg,s._tapComplete=r||Wg,S(n)?(s._context=y(s),s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||Wg,s._tapError=n.error||Wg,s._tapComplete=n.complete||Wg),s}return _(t,e),m(t,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}])}(U);function Kg(e){return function(t){return t.lift(new Jg(e))}}var Jg=function(){return m(function e(t){g(this,e),this.callback=t},[{key:"call",value:function(e,t){return t.subscribe(new Xg(e,this.callback))}}])}(),Xg=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).add(new Y(n)),i}return _(t,e),m(t)}(U),ev=m(function e(t,n){g(this,e),this.id=t,this.url=n}),tv=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,t),(i=v(this,t,[e,n])).navigationTrigger=r,i.restoredState=s,i}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(ev),nv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).urlAfterRedirects=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}])}(ev),iv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).reason=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(ev),rv=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n])).error=i,r}return _(t,e),m(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}])}(ev),sv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),av=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),ov=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t,[e,n])).urlAfterRedirects=i,a.state=r,a.shouldActivate=s,a}return _(t,e),m(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}])}(ev),uv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),lv=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n])).urlAfterRedirects=i,s.state=r,s}return _(t,e),m(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(ev),cv=function(){return m(function e(t){g(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}])}(),dv=function(){return m(function e(t){g(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}])}(),hv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),pv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),fv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),mv=function(){return m(function e(t){g(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),gv=function(){return m(function e(t,n,i){g(this,e),this.routerEvent=t,this.position=n,this.anchor=i},[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}])}(),vv="primary",yv=function(){return m(function e(t){g(this,e),this.params=t||{}},[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}])}();function _v(e){return new yv(e)}var bv="ngNavigationCancelingError";function kv(e){var t=Error("NavigationCancelingError: "+e);return t[bv]=!0,t}function wv(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function xv(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Cv(e){return Lo(e)?e:Co(e)?he(Promise.resolve(e)):Oh(e)}var Mv={exact:function e(t,n,i){if(!jv(t.segments,n.segments)||!Rv(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Ov},Lv={exact:function(e,t){return Sv(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Ev(e[n],t[n])})},ignored:function(){return!0}};function Av(e,t,n){return Mv[n.paths](e.root,t.root,n.matrixParams)&&Lv[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ov(e,t,n){return Iv(e,t,t.segments,n)}function Iv(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!jv(r,n)||t.hasChildren()||!Rv(r,n,i))}if(e.segments.length===n.length){if(!jv(e.segments,n)||!Rv(e.segments,n,i))return!1;for(var s in t.children)if(!e.children[s]||!Ov(e.children[s],t.children[s],i))return!1;return!0}var a=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(jv(e.segments,a)&&Rv(e.segments,a,i)&&e.children[vv])&&Iv(e.children[vv],t,o,i)}function Rv(e,t,n){return t.every(function(t,i){return Lv[n](e[i].parameters,t.parameters)})}var Pv=function(){return m(function e(t,n,i){g(this,e),this.root=t,this.queryParams=n,this.fragment=i},[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_v(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hv.serialize(this)}}])}(),Fv=function(){return m(function e(t,n){var i=this;g(this,e),this.segments=t,this.children=n,this.parent=null,xv(n,function(e,t){return e.parent=i})},[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Bv(this)}}])}(),Yv=function(){return m(function e(t,n){g(this,e),this.path=t,this.parameters=n},[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=_v(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Qv(this)}}])}();function jv(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var qv=m(function e(){g(this,e)}),Nv=function(){return m(function e(){g(this,e)},[{key:"parse",value:function(e){var t=new ey(e);return new Pv(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t="/".concat(Uv(e.root,!0)),n=function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Vv(t),"=").concat(Vv(e))}).join("&"):"".concat(Vv(t),"=").concat(Vv(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams),i="string"==typeof e.fragment?"#".concat(function(e){return encodeURI(e)}(e.fragment)):"";return"".concat(t).concat(n).concat(i)}}])}(),Hv=new Nv;function Bv(e){return e.segments.map(function(e){return Qv(e)}).join("/")}function Uv(e,t){if(!e.hasChildren())return Bv(e);if(t){var n=e.children[vv]?Uv(e.children[vv],!1):"",i=[];return xv(e.children,function(e,t){t!==vv&&i.push("".concat(t,":").concat(Uv(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return xv(e.children,function(e,i){i===vv&&(n=n.concat(t(e,i)))}),xv(e.children,function(e,i){i!==vv&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===vv?[Uv(e.children[vv],!1)]:["".concat(n,":").concat(Uv(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[vv]?"".concat(Bv(e),"/").concat(r[0]):"".concat(Bv(e),"/(").concat(r.join("//"),")")}function zv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vv(e){return zv(e).replace(/%3B/gi,";")}function Gv(e){return zv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wv(e){return decodeURIComponent(e)}function Zv(e){return Wv(e.replace(/\+/g,"%20"))}function Qv(e){return"".concat(Gv(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(Gv(t),"=").concat(Gv(e[t]))}).join("")}(e.parameters))}var $v=/^[^\/()?;=#]+/;function Kv(e){var t=e.match($v);return t?t[0]:""}var Jv=/^[^=?&#]+/,Xv=/^[^?&#]+/,ey=function(){return m(function e(t){g(this,e),this.url=t,this.remaining=t},[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fv([],{}):new Fv([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[vv]=new Fv(e,t)),n}},{key:"parseSegment",value:function(){var e=Kv(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Yv(Wv(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Kv(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Kv(this.remaining);i&&(n=i,this.capture(n))}e[Wv(t)]=Wv(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Jv);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Xv);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Zv(t),s=Zv(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Kv(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=vv);var s=this.parseChildren();t[r]=1===Object.keys(s).length?s[vv]:new Fv([],s),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}])}(),ty=function(){return m(function e(t){g(this,e),this._root=t},[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=ny(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=ny(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=iy(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return iy(e,this._root).map(function(e){return e.value})}}])}();function ny(e,t){if(e===t.value)return t;var n,i=M(t.children);try{for(i.s();!(n=i.n()).done;){var r=ny(e,n.value);if(r)return r}}catch(s){i.e(s)}finally{i.f()}return null}function iy(e,t){if(e===t.value)return[t];var n,i=M(t.children);try{for(i.s();!(n=i.n()).done;){var r=iy(e,n.value);if(r.length)return r.unshift(t),r}}catch(s){i.e(s)}finally{i.f()}return[]}var ry=function(){return m(function e(t,n){g(this,e),this.value=t,this.children=n},[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}])}();function sy(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var ay=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).snapshot=n,hy(y(i),e),i}return _(t,e),m(t,[{key:"toString",value:function(){return this.snapshot.toString()}}])}(ty);function oy(e,t){var n=function(e,t){var n=new cy([],{},{},"",{},vv,t,null,e.root,-1,{});return new dy("",new ry(n,[]))}(e,t),i=new lg([new Yv("",{})]),r=new lg({}),s=new lg({}),a=new lg({}),o=new lg(""),u=new uy(i,r,a,o,s,vv,t,n.root);return u.snapshot=n.root,new ay(new ry(u,[]),n)}var uy=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=u},[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ie(function(e){return _v(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(function(e){return _v(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}])}();function ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],s=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var cy=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d},[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=_v(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_v(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}])}(),dy=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[n])).url=e,hy(y(i),n),i}return _(t,e),m(t,[{key:"toString",value:function(){return py(this._root)}}])}(ty);function hy(e,t){t.value._routerState=e,t.children.forEach(function(t){return hy(e,t)})}function py(e){var t=e.children.length>0?" { ".concat(e.children.map(py).join(", ")," } "):"";return"".concat(e.value).concat(t)}function fy(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Sv(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Sv(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yy(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(_y);if(r&&r!==Dv(i))throw new Error("{outlets:{}} has to be the last command")},[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}])}(),Sy=m(function e(t,n,i){g(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i});function Ey(e,t,n){if(e||(e=new Fv([],{})),0===e.segments.length&&e.hasChildren())return Ty(e,t,n);var i=function(e,t,n){for(var i=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};r=n.length)return s;var a=e.segments[r],o=n[i];if(_y(o))break;var u="".concat(o),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!My(u,l,a))return s;i+=2}else{if(!My(u,{},a))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},zy):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wv)(n,e,t);if(!r)return Object.assign({},zy);var s={};xv(r.posParams,function(e,t){s[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Gy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Wy(e,t,n)&&By(n)!==vv})}(e,n,i)){var s=new Fv(t,function(e,t,n,i){var r={};r[vv]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var s,a=M(n);try{for(a.s();!(s=a.n()).done;){var o=s.value;if(""===o.path&&By(o)!==vv){var u=new Fv([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[By(o)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Fv(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Wy(e,t,n)})}(e,n,i)){var a=new Fv(e.segments,function(e,t,n,i,r,s){var a,o={},u=M(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Wy(e,n,l)&&!r[By(l)]){var c=new Fv([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[By(l)]=c}}}catch(d){u.e(d)}finally{u.f()}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var o=new Fv(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Wy(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Zy(e,t,n,i){return!!(By(e)===i||i!==vv&&Wy(t,n,e))&&("**"===e.path||Vy(t,e,n).matched)}function Qy(e,t,n){return 0===t.length&&!e.children[n]}var $y=m(function e(t){g(this,e),this.segmentGroup=t||null}),Ky=m(function e(t){g(this,e),this.urlTree=t});function Jy(e){return new Q(function(t){return t.error(new $y(e))})}function Xy(e){return new Q(function(t){return t.error(new Ky(e))})}function e_(e){return new Q(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var t_=function(){return m(function e(t,n,i,r,s){g(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(pl)},[{key:"apply",value:function(){var e=this,t=Gy(this.urlTree.root,[],[],this.config).segmentGroup,n=new Fv(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,vv).pipe(ie(function(t){return e.createUrlTree(n_(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Ig(function(t){if(t instanceof Ky)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof $y?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,vv).pipe(ie(function(n){return t.createUrlTree(n_(n),e.queryParams,e.fragment)})).pipe(Ig(function(e){throw e instanceof $y?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Fv([],D({},vv,e)):e;return new Pv(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ie(function(e){return new Fv([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,a=Object.keys(n.children);s=2;return function(i){return i.pipe(e?Rh(function(t,n){return e(t,n,i)}):G,Fg(1),n?Ug(t):qg(function(){return new vg}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,s){var a=this;return he(n).pipe(Ih(function(o){return a.expandSegmentAgainstRoute(e,t,n,o,i,r,s).pipe(Ig(function(e){if(e instanceof $y)return Oh(null);throw e}))}),Gg(function(e){return!!e}),Ig(function(e,n){if(e instanceof vg||"EmptyError"===e.name){if(Qy(t,i,r))return Oh(new Fv([],{}));throw new $y(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,s,a){return Zy(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Jy(t):Jy(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Xy(s):this.lineralizeSegments(n,s).pipe(ge(function(n){var s=new Fv(n,{});return r.expandSegment(e,s,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,s){var a=this,o=Vy(t,i,r),u=o.matched,l=o.consumedSegments,c=o.lastChild,d=o.positionalParamSegments;if(!u)return Jy(t);var h=this.applyRedirectCommands(l,i.redirectTo,d);return i.redirectTo.startsWith("/")?Xy(h):this.lineralizeSegments(i,h).pipe(ge(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Oh(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ie(function(e){return n._loadedConfig=e,new Fv(i,{})})):Oh(new Fv(i,{}));var a=Vy(t,n,i),o=a.matched,u=a.consumedSegments,l=a.lastChild;if(!o)return Jy(t);var c=i.slice(l);return this.getChildConfig(e,n,i).pipe(ge(function(e){var i=e.module,a=e.routes,o=Gy(t,u,c,a),l=o.segmentGroup,d=o.slicedSegments,h=new Fv(l.segments,l.children);if(0===d.length&&h.hasChildren())return s.expandChildren(i,a,h).pipe(ie(function(e){return new Fv(u,e)}));if(0===a.length&&0===d.length)return Oh(new Fv(u,{}));var p=By(n)===r;return s.expandSegment(i,h,a,d,p?vv:r,!0).pipe(ie(function(e){return new Fv(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Oh(new Oy(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Oh(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(ge(function(n){return n?i.configLoader.load(e.injector,t).pipe(ie(function(e){return t._loadedConfig=e,e})):function(e){return new Q(function(t){return t.error(kv("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Oh(new Oy([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return Oh(!0);var s=r.map(function(i){var r,s=e.get(i);if(function(e){return e&&Iy(e.canLoad)}(s))r=s.canLoad(t,n);else{if(!Iy(s))throw new Error("Invalid CanLoad guard");r=s(t,n)}return Cv(r)});return Oh(s).pipe(Fy(),Zg(function(e){if(Ry(e)){var t=kv('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ie(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Oh(n);if(i.numberOfChildren>1||!i.children[vv])return e_(e.redirectTo);i=i.children[vv]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Pv(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return xv(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,s=this.createSegments(e,t.segments,n,i),a={};return xv(t.children,function(t,s){a[s]=r.createSegmentGroup(e,t,n,i)}),new Fv(s,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=M(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;if(s.path===e.path)return t.splice(i),s;i++}}catch(a){r.e(a)}finally{r.f()}return e}}])}();function n_(e){for(var t={},n=0,i=Object.keys(e.children);n0||s.hasChildren())&&(t[r]=s)}return function(e){if(1===e.numberOfChildren&&e.children[vv]){var t=e.children[vv];return new Fv(e.segments.concat(t.segments),t.children)}return e}(new Fv(e.segments,t))}var i_=m(function e(t){g(this,e),this.path=t,this.route=this.path[this.path.length-1]}),r_=m(function e(t,n){g(this,e),this.component=t,this.route=n});function s_(e,t,n){var i=e._root;return o_(i,t?t._root:null,n,[i.value])}function a_(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function o_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},s=sy(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},s=e.value,a=t?t.value:null,o=n?n.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!jv(e.url,t.url);case"pathParamsOrQueryParamsChange":return!jv(e.url,t.url)||!Sv(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!my(e,t)||!Sv(e.queryParams,t.queryParams);default:return!my(e,t)}}(a,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new i_(i)):(s.data=a.data,s._resolvedData=a._resolvedData),o_(e,t,s.component?o?o.children:null:n,i,r),u&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new r_(o.outlet.component,a))}else a&&u_(t,o,r),r.canActivateChecks.push(new i_(i)),o_(e,null,s.component?o?o.children:null:n,i,r)})(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),xv(s,function(e,t){return u_(e,n.getContext(t),r)}),r}function u_(e,t,n){var i=sy(e),r=e.value;xv(i,function(e,i){u_(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new r_(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var l_=m(function e(){g(this,e)});function c_(e){return new Q(function(t){return t.error(e)})}var d_=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a},[{key:"recognize",value:function(){var e=Gy(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,vv);if(null===t)return null;var n=new cy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},vv,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ry(n,t),r=new dy(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ly(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Dv(n).parameters:{};r=new cy(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,m_(e),By(e),e.component,e,p_(t),f_(t)+n.length,g_(e))}else{var u=Vy(t,e,n);if(!u.matched)return null;s=u.consumedSegments,a=n.slice(u.lastChild),r=new cy(s,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,m_(e),By(e),e.component,e,p_(t),f_(t)+s.length,g_(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Gy(t,s,a,l.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return null===p?null:[new ry(r,p)]}if(0===l.length&&0===h.length)return[new ry(r,[])];var f=By(e)===i,m=this.processSegment(l,d,h,f?vv:i);return null===m?null:[new ry(r,m)]}}])}();function h_(e){var t,n=[],i=new Set,r=M(e);try{var s=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),1;var s=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==s?((e=s.children).push.apply(e,d(r.children)),i.add(s)):n.push(r)};for(r.s();!(t=r.n()).done;)s()}catch(c){r.e(c)}finally{r.f()}var a,o=M(i);try{for(o.s();!(a=o.n()).done;){var u=a.value,l=h_(u.children);n.push(new ry(u.value,l))}}catch(c){o.e(c)}finally{o.f()}return n.filter(function(e){return!i.has(e)})}function p_(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function f_(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function m_(e){return e.data||{}}function g_(e){return e.resolve||{}}function v_(e){return wg(function(t){var n=e(t);return n?he(n).pipe(ie(function(){return t})):Oh(t)})}var y_=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(function(){return m(function e(){g(this,e)},[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}])}()),__=new xi("ROUTES"),b_=function(){return m(function e(t,n,i,r){g(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r},[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ie(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Oy(Tv(r.injector.get(__,void 0,Je.Self|Je.Optional)).map(Hy),r)}),Ig(function(e){throw t._loader$=void 0,e}));return t._loader$=new Te(i,function(){return new ee}).pipe(we()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?he(this.loader.load(e)):Cv(e()).pipe(ge(function(e){return e instanceof fl?Oh(e):he(t.compiler.compileModuleAsync(e))}))}}])}(),k_=m(function e(){g(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new w_,this.attachRef=null}),w_=function(){return m(function e(){g(this,e),this.contexts=new Map},[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new k_,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}])}(),S_=function(){return m(function e(){g(this,e)},[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}])}();function E_(e){throw e}function T_(e,t,n){return t.parse("/")}function D_(e,t){return Oh(null)}var x_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},C_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},M_=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){var l=this;g(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ee,this.errorHandler=E_,this.malformedUriErrorHandler=T_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:D_,afterPreactivation:D_},this.urlHandlingStrategy=new S_,this.routeReuseStrategy=new y_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(pl),this.console=s.get(mc);var c=s.get(Cc);this.isNgZoneEnabled=c instanceof Cc&&Cc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Pv(new Fv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new b_(a,o,function(e){return l.triggerEvent(new cv(e))},function(e){return l.triggerEvent(new dv(e))}),this.routerState=oy(this.currentUrlTree,this.rootComponentType),this.transitions=new lg({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()},[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Rh(function(e){return 0!==e.id}),ie(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),wg(function(e){var i=!1,r=!1;return Oh(e).pipe(Zg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),wg(function(e){var i=t.browserUrlTree.toString(),s=!t.navigated||e.extractedUrl.toString()!==i||i!==t.currentUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return L_(e.source)&&(t.browserUrlTree=e.extractedUrl),Oh(e).pipe(wg(function(e){var i=t.transitions.getValue();return n.next(new tv(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?_g:Promise.resolve(e)}),function(e,t,n,i){return wg(function(r){return function(e,t,n,i,r){return new t_(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(ie(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),Zg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,s,a){return ge(function(i){return function(e,t,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new d_(e,t,n,i,s,a).recognize();return null===o?c_(new l_):Oh(o)}catch(r){return c_(r)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),s,a).pipe(ie(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Zg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new sv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,o=e.extractedUrl,u=e.source,l=e.restoredState,c=e.extras,d=new tv(a,t.serializeUrl(o),u,l);n.next(d);var h=oy(o,t.rootComponentType).snapshot;return Oh(Object.assign(Object.assign({},e),{targetSnapshot:h,urlAfterRedirects:o,extras:Object.assign(Object.assign({},c),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),_g}),v_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,s=e.rawUrl,a=e.extras,o=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!u})}),Zg(function(e){var n=new av(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ie(function(e){return Object.assign(Object.assign({},e),{guards:s_(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return ge(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,o=s.canDeactivateChecks;return 0===o.length&&0===a.length?Oh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return he(e).pipe(ge(function(e){return function(e,t,n,i,r){var s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Oh(s.map(function(s){var a,o=a_(s,t,r);if(function(e){return e&&Iy(e.canDeactivate)}(o))a=Cv(o.canDeactivate(e,t,n,i));else{if(!Iy(o))throw new Error("Invalid CanDeactivate guard");a=Cv(o(e,t,n,i))}return a.pipe(Gg())})).pipe(Fy()):Oh(!0)}(e.component,e.route,n,t,i)}),Gg(function(e){return!0!==e},!0))}(o,i,r,e).pipe(ge(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return he(t).pipe(Ih(function(t){return yg(function(e,t){return null!==e&&t&&t(new hv(e)),Oh(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new fv(e)),Oh(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return kg(function(){return Oh(t.guards.map(function(r){var s,a=a_(r,t.node,n);if(function(e){return e&&Iy(e.canActivateChild)}(a))s=Cv(a.canActivateChild(i,e));else{if(!Iy(a))throw new Error("Invalid CanActivateChild guard");s=Cv(a(i,e))}return s.pipe(Gg())})).pipe(Fy())})});return Oh(r).pipe(Fy())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Oh(!0);var r=i.map(function(i){return kg(function(){var r,s=a_(i,t,n);if(function(e){return e&&Iy(e.canActivate)}(s))r=Cv(s.canActivate(t,e));else{if(!Iy(s))throw new Error("Invalid CanActivate guard");r=Cv(s(t,e))}return r.pipe(Gg())})});return Oh(r).pipe(Fy())}(e,t.route,n))}),Gg(function(e){return!0!==e},!0))}(i,a,e,t):Oh(n)}),ie(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Zg(function(e){if(Ry(e.guardsResult)){var n=kv('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ov(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Rh(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),v_(function(e){if(e.guards.canActivateChecks.length)return Oh(e).pipe(Zg(function(e){var n=new uv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),wg(function(e){var n=!1;return Oh(e).pipe(function(e,t){return ge(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return Oh(n);var s=0;return he(r).pipe(Ih(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Oh({});var s={};return he(r).pipe(ge(function(r){return function(e,t,n,i){var r=a_(e,t,i);return Cv(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Zg(function(e){s[r]=e}))}),Fg(1),ge(function(){return Object.keys(s).length===r.length?Oh(s):_g}))}(e._resolve,e,t,i).pipe(ie(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ly(e,n).resolve),null}))}(n.route,i,e,t)}),Zg(function(){return s++}),Fg(1),ge(function(e){return s===r.length?Oh(n):_g}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),Zg({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),Zg(function(e){var n=new lv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),v_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,s=e.rawUrl,a=e.extras,o=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!u})}),ie(function(e){var n=function(e,t,n){var i=gy(e,t._root,n?n._root:void 0);return new ay(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Zg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(e.urlAfterRedirects,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return ie(function(i){return new Ly(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),Zg({next:function(){i=!0},complete:function(){i=!0}}),Kg(function(){var n;if(!i&&!r){var s="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,s)):t.cancelNavigationTransition(e,s)}(null===(n=t.currentNavigation)||void 0===n?void 0:n.id)===e.id&&(t.currentNavigation=null)}),Ig(function(i){if(r=!0,function(e){return e&&e[bv]}(i)){var s=Ry(i.url);s||(t.navigated=!0,t.restoreHistory(e,!0));var a=new iv(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),s?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||L_(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var o=new rv(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return _g}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,s={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(s.state=a)}e.scheduleNavigation(r,t,i,s)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){jy(e),this.config=e.map(Hy),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,s=t.queryParamsHandling,a=t.preserveFragment,o=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return by(t.root,t.root,t,i,r);var s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new wy(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var s={};return xv(i.outlets,function(e,t){s[t]="string"==typeof e?e.split("/"):e}),[].concat(d(e),[{outlets:s}])}if(i.segmentPath)return[].concat(d(e),[i.segmentPath])}return"string"!=typeof i?[].concat(d(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(d(e),[i])},[]);return new wy(n,t,i)}(n);if(s.toRoot())return by(t.root,new Fv([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new Sy(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new Sy(i,i===t.root,0)}var r=yy(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,s=n;s>r;){if(s-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Sy(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),o=a.processChildren?Ty(a.segmentGroup,a.index,s.commands):Ey(a.segmentGroup,a.index,s.commands);return by(a.segmentGroup,o,t,i,r)}(o,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Ry(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new iv(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Oi),$i(qv),$i(w_),$i(kd),$i(Ja),$i($c),$i(Tc),$i(void 0))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function L_(e){return"imperative"!==e}var A_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new ee,null==i&&r.setAttribute(s.nativeElement,"tabindex","0")},[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:I_(this.skipLocationChange),replaceUrl:I_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:I_(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(uy),ki("tabindex"),yo(Fu),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Ao("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ft]}),e}(),O_=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new ee,this.subscription=t.events.subscribe(function(e){e instanceof nv&&r.updateTargetUrlAndHref()})},[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var s={skipLocationChange:I_(this.skipLocationChange),replaceUrl:I_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:I_(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(uy),yo(gd))},e.\u0275dir=Et({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(cu("href",t.href,bs),fo("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ft]}),e}();function I_(e){return""===e||!!e}var R_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new jl,this.deactivateEvents=new jl,this.name=r||vv,t.onChildOutletCreated(this.name,this)},[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new P_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(w_),yo(gl),yo(Mu),ki("name"),yo(sl))},e.\u0275dir=Et({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),P_=function(){return m(function e(t,n,i){g(this,e),this.route=t,this.childContexts=n,this.parent=i},[{key:"get",value:function(e,t){return e===uy?this.route:e===w_?this.childContexts:this.parent.get(e,t)}}])}(),F_=m(function e(){g(this,e)}),Y_=function(){return m(function e(){g(this,e)},[{key:"preload",value:function(e,t){return Oh(null)}}])}(),j_=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new b_(n,i,function(e){return t.triggerEvent(new cv(e))},function(e){return t.triggerEvent(new dv(e))})},[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Rh(function(e){return e instanceof nv}),Ih(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(pl);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=M(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(e,s)):s.children&&i.push(this.processRoutes(e,s.children))}}catch(o){r.e(o)}finally{r.f()}return he(i).pipe(_e(),ie(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Oh(t._loadedConfig):n.loader.load(e.injector,t)).pipe(ge(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i($c),$i(Tc),$i(Ja),$i(F_))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),q_=function(){var e=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};g(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"},[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof tv?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nv&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof gv&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new gv(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Wd),$i(void 0))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),N_=new xi("ROUTER_CONFIGURATION"),H_=new xi("ROUTER_FORROOT_GUARD"),B_=[kd,{provide:qv,useClass:Nv},{provide:M_,useFactory:function(e,t,n,i,r,s,a){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new M_(null,e,t,n,i,r,s,Tv(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(o,c),o.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[qv,w_,kd,Ja,$c,Tc,__,N_,[function(){return m(function e(){g(this,e)})}(),new ir],[function(){return m(function e(){g(this,e)})}(),new ir]]},w_,{provide:uy,useFactory:function(e){return e.routerState.root},deps:[M_]},{provide:$c,useClass:Xc},j_,Y_,function(){return m(function e(){g(this,e)},[{key:"preload",value:function(e,t){return t().pipe(Ig(function(){return Oh(null)}))}}])}(),{provide:N_,useValue:{enableTracing:!1}}];function U_(){return new Uc("Router",M_)}var z_=function(){var e=function(){function e(t,n){g(this,e)}return m(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[B_,Z_(t),{provide:H_,useFactory:W_,deps:[[M_,new ir,new rr]]},{provide:N_,useValue:n||{}},{provide:gd,useFactory:G_,deps:[od,[new nr(yd),new ir],N_]},{provide:q_,useFactory:V_,deps:[M_,Wd,N_]},{provide:F_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Y_},{provide:Uc,multi:!0,useFactory:U_},[Q_,{provide:oc,multi:!0,useFactory:$_,deps:[Q_]},{provide:J_,useFactory:K_,deps:[Q_]},{provide:fc,multi:!0,useExisting:J_}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Z_(t)]}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(H_,8),$i(M_,8))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}();function V_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new q_(e,t,n)}function G_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new bd(e,t):new _d(e,t)}function W_(e){return"guarded"}function Z_(e){return[{provide:Ci,multi:!0,useValue:e},{provide:__,multi:!0,useValue:e}]}var Q_=function(){var e=function(){return m(function e(t){g(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ee},[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ld,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(M_),r=e.injector.get(N_);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Oh(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(N_),n=this.injector.get(j_),i=this.injector.get(q_),r=this.injector.get(M_),s=this.injector.get(Zc);e===s.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Ja))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}();function $_(e){return e.appInitializer.bind(e)}function K_(e){return e.bootstrapListener.bind(e)}var J_=new xi("Router Initializer"),X_=w(76088),eb=w(20884),tb=w(92309),nb=w(11459);function ib(e){return new tb.i0(function(t,n){var i=(0,eb._T)(t,[]);return new nb.y$(function(r){var s;return Promise.resolve(i).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){s=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})}).catch(r.error.bind(r)),function(){s&&s.unsubscribe()}})})}var rb=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e,n])).scheduler=e,i.work=n,i.pending=!1,i}return _(t,e),m(t,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}])}(function(e){function t(e,n){return g(this,t),v(this,t)}return _(t,e),m(t,[{key:"schedule",value:function(e){return this}}])}(Y)),sb=function(){var e=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.SchedulerAction=t,this.now=n},[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}])}();return e.now=function(){return Date.now()},e}(),ab=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sb.now;return g(this,t),(n=v(this,t,[e,function(){return t.delegate&&t.delegate!==y(n)?t.delegate.now():i()}])).actions=[],n.active=!1,n.scheduled=void 0,n}return _(t,e),m(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,i):h(E(t.prototype),"schedule",this).call(this,e,n,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}])}(sb),ob=new(function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(ab))(function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e,n])).scheduler=e,i.work=n,i}return _(t,e),m(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?h(E(t.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?h(E(t.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):e.flush(this)}}])}(rb)),ub=ob;function lb(e,t){return new Q(t?function(n){return t.schedule(cb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function cb(e){var t=e.error;e.subscriber.error(t)}var db=function(){function e(t,n,i){g(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return m(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Oh(this.value);case"E":return lb(this.error);case"C":return bg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}])}();db.completeNotification=new db("C"),db.undefinedValueNotification=new db("N",void 0);var hb=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this.scheduler=t,this.delay=n},[{key:"call",value:function(e,t){return t.subscribe(new pb(e,this.scheduler,this.delay))}}])}(),pb=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(this,t),(i=v(this,t,[e])).scheduler=n,i.delay=r,i}return _(t,e),m(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new fb(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(db.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(db.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(db.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}])}(U),fb=m(function e(t,n){g(this,e),this.notification=t,this.destination=n});function mb(e){return new Q(function(t){return e().then(function(e){t.closed||(t.next(e),t.complete())},function(e){t.closed||t.error(e)}),function(){return t.unsubscribe()}})}var gb=function(){return m(function e(t){g(this,e),this.zone=t,this.now=Date.now?Date.now:function(){return+new Date}},[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return this.zone.run(function(){return ob.schedule(e,t,n)})}}])}();function vb(e){return e[V]=function(){return e},e}function yb(e,t){return e.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new hb(e,t))}}(new gb(t)))}var _b=function(){return m(function e(t,n,i){g(this,e),this.obsQuery=t;var r=yb(he(vb(this.obsQuery)),n);this.valueChanges=i.useInitialLoading?r.pipe(Mg(Object.assign(Object.assign({},this.obsQuery.getCurrentResult(!1)),{error:void 0,partial:void 0,stale:!0}))):r,this.queryId=this.obsQuery.queryId},[{key:"result",value:function(){return this.obsQuery.result()}},{key:"getCurrentResult",value:function(){return this.obsQuery.getCurrentResult()}},{key:"getLastResult",value:function(){return this.obsQuery.getLastResult()}},{key:"getLastError",value:function(){return this.obsQuery.getLastError()}},{key:"resetLastResults",value:function(){return this.obsQuery.resetLastResults()}},{key:"refetch",value:function(e){return this.obsQuery.refetch(e)}},{key:"fetchMore",value:function(e){return this.obsQuery.fetchMore(e)}},{key:"subscribeToMore",value:function(e){return this.obsQuery.subscribeToMore(e)}},{key:"updateQuery",value:function(e){return this.obsQuery.updateQuery(e)}},{key:"stopPolling",value:function(){return this.obsQuery.stopPolling()}},{key:"startPolling",value:function(e){return this.obsQuery.startPolling(e)}},{key:"setOptions",value:function(e){return this.obsQuery.setOptions(e)}},{key:"setVariables",value:function(e){return this.obsQuery.setVariables(e)}}])}(),bb=new xi("APOLLO_FLAGS"),kb=new xi("APOLLO_OPTIONS"),wb=new xi("APOLLO_NAMED_OPTIONS"),Sb=function(){return m(function e(t,n,i){g(this,e),this.ngZone=t,this.flags=n,this._client=i,this.useInitialLoading=function(e,t,n){return!(!e||void 0===e[t])&&e[t]}(n,"useInitialLoading")},[{key:"watchQuery",value:function(e){return new _b(this.ensureClient().watchQuery(Object.assign({},e)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},e))}},{key:"query",value:function(e){var t=this;return mb(function(){return t.ensureClient().query(Object.assign({},e))})}},{key:"mutate",value:function(e){var t=this;return mb(function(){return t.ensureClient().mutate(Object.assign({},e))})}},{key:"subscribe",value:function(e,t){var n=he(vb(this.ensureClient().subscribe(Object.assign({},e))));return t&&!0!==t.useZone?n:yb(n,this.ngZone)}},{key:"getClient",value:function(){return this.client}},{key:"setClient",value:function(e){this.client=e}},{key:"client",get:function(){return this._client},set:function(e){if(this._client)throw new Error("Client has been already defined");this._client=e}},{key:"ensureClient",value:function(){return this.checkInstance(),this._client}},{key:"checkInstance",value:function(){if(!this._client)throw new Error("Client has not been defined yet")}}])}(),Eb=function(){var e=function(e){function t(e,n,i,r){var s;if(g(this,t),(s=v(this,t,[e,r]))._ngZone=e,s.map=new Map,n&&s.createDefault(n),i&&"object"==typeof i)for(var a in i)i.hasOwnProperty(a)&&s.createNamed(a,i[a]);return y(s)}return _(t,e),m(t,[{key:"create",value:function(e,t){Tb(t)?this.createDefault(e):this.createNamed(t,e)}},{key:"default",value:function(){return this}},{key:"use",value:function(e){return Tb(e)?this.default():this.map.get(e)}},{key:"createDefault",value:function(e){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new X_.fe(e))}},{key:"createNamed",value:function(e,t){if(this.map.has(e))throw new Error("Client ".concat(e," has been already created"));this.map.set(e,new Sb(this._ngZone,this.flags,new X_.fe(t)))}},{key:"removeClient",value:function(e){Tb(e)?this._client=void 0:this.map.delete(e)}}])}(Sb);return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(kb,8),$i(wb,8),$i(bb,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(kb,8),$i(wb,8),$i(bb,8))},token:e,providedIn:"root"}),e}();function Tb(e){return!e||"default"===e}var Db={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},xb=/[&<>"']/,Cb=new RegExp(xb.source,"g"),Mb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lb=new RegExp(Mb.source,"g"),Ab={"&":"&","<":"<",">":">",'"':""","'":"'"},Ob=function(e){return Ab[e]};function Ib(e,t){if(t){if(xb.test(e))return e.replace(Cb,Ob)}else if(Mb.test(e))return e.replace(Lb,Ob);return e}var Rb=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Pb(e){return e.replace(Rb,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var Fb=/(^|[^\[])\^/g;function Yb(e,t){e="string"==typeof e?e:e.source,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(Fb,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var jb=/[^\w:]/g,qb=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Nb(e,t,n){if(e){var i;try{i=decodeURIComponent(Pb(n)).replace(jb,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!qb.test(n)&&(n=function(e,t){Hb[" "+e]||(Hb[" "+e]=Bb.test(e)?e+"/":Wb(e,"/",!0));var n=-1===(e=Hb[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ub,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(zb,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var Hb={},Bb=/^[^:]+:\/*[^/]*$/,Ub=/^([^:]+:)[\s\S]*$/,zb=/^([^:]+:\/*[^/]*)[\s\S]*$/,Vb={exec:function(){}};function Gb(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Qb(e,t,n,i){var r=t.href,s=t.title?Ib(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;var o={type:"link",raw:n,href:r,title:s,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:s,text:Ib(a)}}var $b=function(){return m(function e(t){g(this,e),this.options=t||Db},[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Wb(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:T(t,1)[0].length>=i.length?e.slice(i.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=Wb(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,s,a,o,u,l,c,d,h,p,f=t[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=m?f:"[*+-]");for(var v=new RegExp("^( {0,3}".concat(f,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(p=!1,(t=v.exec(e))&&!this.rules.block.hr.test(e));){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0].replace(/^\t+/,function(e){return" ".repeat(3*e.length)}),c=e.split("\n",1)[0],this.options.pedantic?(s=2,h=l.trimLeft()):(s=(s=t[2].search(/[^ ]/))>4?1:s,h=l.slice(s),s+=t[1].length),o=!1,!l&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p)for(var y=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),_=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),b=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:```|~~~)")),k=new RegExp("^ {0,".concat(Math.min(3,s-1),"}#"));e&&(c=d=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(b.test(c)||k.test(c)||y.test(c)||_.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())h+="\n"+c.slice(s);else{if(o||l.search(/[^ ]/)>=4||b.test(l)||k.test(l)||_.test(l))break;h+="\n"+c}!o&&!c.trim()&&(o=!0),n+=d+"\n",e=e.substring(d.length+1),l=c.slice(s)}g.loose||(u?g.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&((i=/^\[[ xX]\] /.exec(h))&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var w=g.items.length;for(a=0;a0&&S.some(function(e){return/\n.*\n/.test(e.raw)});g.loose=E}if(g.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:r}}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:Gb(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r,s,a,o=n.align.length;for(i=0;i/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ib(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=Wb(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],o="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);u&&(a=u[1],o=u[3])}else o=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),Qb(t,{href:a&&a.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Qb(n,i,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=this.rules.inline.emStrong.lDelim.exec(e);if(!(!i||i[3]&&n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=i[0].length-1,u=o,l=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=s.length,i[3]||i[4])u+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((u-=a)>0)){a=Math.min(a,a+u+l);var d=e.slice(0,o+i.index+(i[0].length-s.length)+a);if(Math.min(o,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else l+=a}}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=Ib(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return"@"===r[2]?i="mailto:"+(n=Ib(this.options.mangle?t(r[1]):r[1])):i=n=Ib(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=Ib(this.options.mangle?t(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=Ib(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}},{key:"inlineText",value:function(e,t){var n,i=this.rules.inline.text.exec(e);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Ib(i[0]):i[0]:Ib(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:n}}}])}(),Kb={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Vb,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Kb.def=Yb(Kb.def).replace("label",Kb._label).replace("title",Kb._title).getRegex(),Kb.bullet=/(?:[*+-]|\d{1,9}[.)])/,Kb.listItemStart=Yb(/^( *)(bull) */).replace("bull",Kb.bullet).getRegex(),Kb.list=Yb(Kb.list).replace(/bull/g,Kb.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Kb.def.source+")").getRegex(),Kb._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Kb._comment=/|$)/,Kb.html=Yb(Kb.html,"i").replace("comment",Kb._comment).replace("tag",Kb._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Kb.paragraph=Yb(Kb._paragraph).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.blockquote=Yb(Kb.blockquote).replace("paragraph",Kb.paragraph).getRegex(),Kb.normal=q({},Kb),Kb.gfm=N(q({},Kb.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Kb.gfm.table=Yb(Kb.gfm.table).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.gfm.paragraph=Yb(Kb._paragraph).replace("hr",Kb.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Kb.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Kb._tag).getRegex(),Kb.pedantic=N(q({},Kb.normal),{html:Yb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Kb._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vb,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yb(Kb.normal._paragraph).replace("hr",Kb.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Kb.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Jb={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vb,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vb,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}Jb._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Jb.punctuation=Yb(Jb.punctuation).replace(/punctuation/g,Jb._punctuation).getRegex(),Jb.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Jb.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Jb._comment=Yb(Kb._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Jb.emStrong.lDelim=Yb(Jb.emStrong.lDelim).replace(/punct/g,Jb._punctuation).getRegex(),Jb.emStrong.rDelimAst=Yb(Jb.emStrong.rDelimAst,"g").replace(/punct/g,Jb._punctuation).getRegex(),Jb.emStrong.rDelimUnd=Yb(Jb.emStrong.rDelimUnd,"g").replace(/punct/g,Jb._punctuation).getRegex(),Jb._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Jb._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Jb._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Jb.autolink=Yb(Jb.autolink).replace("scheme",Jb._scheme).replace("email",Jb._email).getRegex(),Jb._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Jb.tag=Yb(Jb.tag).replace("comment",Jb._comment).replace("attribute",Jb._attribute).getRegex(),Jb._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Jb._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Jb._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Jb.link=Yb(Jb.link).replace("label",Jb._label).replace("href",Jb._href).replace("title",Jb._title).getRegex(),Jb.reflink=Yb(Jb.reflink).replace("label",Jb._label).replace("ref",Kb._label).getRegex(),Jb.nolink=Yb(Jb.nolink).replace("ref",Kb._label).getRegex(),Jb.reflinkSearch=Yb(Jb.reflinkSearch,"g").replace("reflink",Jb.reflink).replace("nolink",Jb.nolink).getRegex(),Jb.normal=q({},Jb),Jb.pedantic=N(q({},Jb.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Yb(/^!?\[(label)\]\((.*?)\)/).replace("label",Jb._label).getRegex(),reflink:Yb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Jb._label).getRegex()}),Jb.gfm=N(q({},Jb.normal),{escape:Yb(Jb.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[],u=function(){if(!(a.options.extensions&&a.options.extensions.block&&a.options.extensions.block.some(function(n){return!!(t=n.call({lexer:a},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)}))){if(t=a.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(t),0;if(t=a.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=o[o.length-1])||"paragraph"!==n.type&&"text"!==n.type?o.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue[a.inlineQueue.length-1].src=n.text),0;if(t=a.tokenizer.fences(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.heading(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.hr(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.blockquote(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.list(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.html(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=o[o.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.tokens.links[t.tag]||(a.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,a.inlineQueue[a.inlineQueue.length-1].src=n.text),0;if(t=a.tokenizer.table(e))return e=e.substring(t.raw.length),o.push(t),0;if(t=a.tokenizer.lheading(e))return e=e.substring(t.raw.length),o.push(t),0;if(i=e,a.options.extensions&&a.options.extensions.startBlock){var s,u=1/0,l=e.slice(1);a.options.extensions.startBlock.forEach(function(e){"number"==typeof(s=e.call({lexer:this},l))&&s>=0&&(u=Math.min(u,s))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(a.state.top&&(t=a.tokenizer.paragraph(i)))return n=o[o.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue.pop(),a.inlineQueue[a.inlineQueue.length-1].src=n.text):o.push(t),r=i.length!==e.length,e=e.substring(t.raw.length),0;if(t=a.tokenizer.text(e))return e=e.substring(t.raw.length),(n=o[o.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,a.inlineQueue.pop(),a.inlineQueue[a.inlineQueue.length-1].src=n.text):o.push(t),0;if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(a.options.silent)return console.error(c),1;throw new Error(c)}}};for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(e,t,n){return t+" ".repeat(n.length)});e&&(0===(s=u())||1!==s););return this.state.top=!0,o}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,i,r,s,a,o=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+Zb("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+Zb("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,r.index+r[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var d,h=function(){if(s||(a=""),s=!1,!(o.options.extensions&&o.options.extensions.inline&&o.options.extensions.inline.some(function(n){return!!(t=n.call({lexer:o},e,u))&&(e=e.substring(t.raw.length),u.push(t),!0)}))){if(t=o.tokenizer.escape(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=o.tokenizer.link(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.reflink(e,o.tokens.links))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=o.tokenizer.emStrong(e,l,a))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.codespan(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.br(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.del(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=o.tokenizer.autolink(e,ek))return e=e.substring(t.raw.length),u.push(t),0;if(!o.state.inLink&&(t=o.tokenizer.url(e,ek)))return e=e.substring(t.raw.length),u.push(t),0;if(i=e,o.options.extensions&&o.options.extensions.startInline){var r,c=1/0,d=e.slice(1);o.options.extensions.startInline.forEach(function(e){"number"==typeof(r=e.call({lexer:this},d))&&r>=0&&(c=Math.min(c,r))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(t=o.tokenizer.inlineText(i,Xb))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),s=!0,(n=u[u.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(h),1;throw new Error(h)}}};e&&(0===(d=h())||1!==d););return u}}],[{key:"rules",get:function(){return{block:Kb,inline:Jb}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])}(),nk=function(){return m(function e(t){g(this,e),this.options=t||Db},[{key:"code",value:function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
    '+(n?e:Ib(e,!0))+"
    \n":"
    "+(n?e:Ib(e,!0))+"
    \n"}},{key:"blockquote",value:function(e){return"
    \n".concat(e,"
    \n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,t,n,i){return this.options.headerIds?"').concat(e,"\n"):"").concat(e,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
    \n":"
    \n"}},{key:"list",value:function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}},{key:"listitem",value:function(e){return"
  • ".concat(e,"
  • \n")}},{key:"checkbox",value:function(e){return" "}},{key:"paragraph",value:function(e){return"

    ".concat(e,"

    \n")}},{key:"table",value:function(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}},{key:"tablerow",value:function(e){return"\n".concat(e,"\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}},{key:"strong",value:function(e){return"".concat(e,"")}},{key:"em",value:function(e){return"".concat(e,"")}},{key:"codespan",value:function(e){return"".concat(e,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(e){return"".concat(e,"")}},{key:"link",value:function(e,t,n){if(null===(e=Nb(this.options.sanitize,this.options.baseUrl,e)))return n;var i='
    "}},{key:"image",value:function(e,t,n){if(null===(e=Nb(this.options.sanitize,this.options.baseUrl,e)))return n;var i='').concat(n,'":">"}},{key:"text",value:function(e){return e}}])}(),ik=function(){return m(function e(){g(this,e)},[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}])}(),rk=function(){return m(function e(){g(this,e),this.seen={}},[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}])}(),sk=function(){function e(t){g(this,e),this.options=t||Db,this.options.renderer=this.options.renderer||new nk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ik,this.slugger=new rk}return m(e,[{key:"parse",value:function(e){var t,n,i,r,s,a,o,u,l,c,d,h,p,f,m,g,v,y,_,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="",w=e.length;for(t=0;t0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(m.tokens,p),l+=this.renderer.listitem(f,v,g);k+=this.renderer.list(l,d,h);continue;case"html":k+=this.renderer.html(c.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;t+1";return t?Promise.resolve(r):n?void n(null,r):r}if(t)return Promise.reject(i);if(!n)throw i;n(i)}}((i=q(q({},uk.defaults),s)).silent,i.async,r);if(null==n)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){var o,u=i.highlight;try{i.hooks&&(n=i.hooks.preprocess(n)),o=e(n,i)}catch(p){return a(p)}var l=function(e){var n;if(!e)try{i.walkTokens&&uk.walkTokens(o,i.walkTokens),n=t(o,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(s){e=s}return i.highlight=u,e?a(e):r(null,n)};if(!u||u.length<3||(delete i.highlight,!o.length))return l();var c=0;return uk.walkTokens(o,function(e){"code"===e.type&&(c++,setTimeout(function(){u(e.text,e.lang,function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--c&&l()})},0))}),void(0===c&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(function(t){return e(t,i)}).then(function(e){return i.walkTokens?Promise.all(uk.walkTokens(e,i.walkTokens)).then(function(){return e}):e}).then(function(e){return t(e,i)}).then(function(e){return i.hooks?i.hooks.postprocess(e):e}).catch(a);try{i.hooks&&(n=i.hooks.preprocess(n));var d=e(n,i);i.walkTokens&&uk.walkTokens(d,i.walkTokens);var h=t(d,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(u){return a(u)}}}function uk(e,t,n){return ok(tk.lex,sk.parse)(e,t,n)}(function(e,t,n){j(e,"symbol"!=typeof t?t+"":t,n)})(ak,"passThroughHooks",new Set(["preprocess","postprocess"])),uk.options=uk.setOptions=function(e){return function(e){Db=e}(uk.defaults=q(q({},uk.defaults),e)),uk},uk.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},uk.defaults=Db,uk.use=function(){for(var e=uk.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options,r=this.trimIndentation(e),s=t?this.decodeHtml(r):r,a=uk(n?this.renderEmoji(s):s,i);return this.sanitizer.sanitize(this.securityContext,a)||""}},{key:"getSource",value:function(e){var t=this;if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ie(function(n){return t.handleExtension(e,n)}))}},{key:"highlight",value:function(e){if(Gd(this.platform)&&"undefined"!=typeof Prism){e||(e=document);var t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,function(e){return e.classList.add("language-none")}),Prism.highlightAllUnder(e)}}},{key:"renderKatex",value:function(e,t){if(!Gd(this.platform))return e;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,function(e,n){return katex.renderToString(n,t)})}},{key:"decodeHtml",value:function(e){if(!Gd(this.platform))return e;var t=document.createElement("textarea");return t.innerHTML=e,t.value}},{key:"handleExtension",value:function(e,t){var n=e?e.split("?")[0].split(".").splice(-1).join():"";return"md"!==n?"```"+n+"\n"+t+"\n```":t}},{key:"renderEmoji",value:function(e){if(!Gd(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}},{key:"trimIndentation",value:function(e){return e?e.split("\n").map(function(e){var n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n"):"";var t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(pc),$i(hk),$i(ip,8),$i(dk,8),$i(Eh))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),fk=function(){var e=function(){return m(function e(t,n){g(this,e),this.element=t,this.markdownService=n,this.error=new jl,this.load=new jl,this.ready=new jl,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1},[{key:"emoji",get:function(){return this._emoji},set:function(e){this._emoji=this.coerceBooleanProperty(e)}},{key:"katex",get:function(){return this._katex},set:function(e){this._katex=this.coerceBooleanProperty(e)}},{key:"lineHighlight",get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)}},{key:"lineNumbers",get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)}},{key:"ngOnChanges",value:function(){null==this.data?null==this.src||this.handleSrc():this.handleData()}},{key:"ngAfterViewInit",value:function(){!this.data&&!this.src&&this.handleTransclusion()}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}},{key:"coerceBooleanProperty",value:function(e){return null!=e&&"false"!="".concat(String(e))}},{key:"handleData",value:function(){this.render(this.data)}},{key:"handleSrc",value:function(){var e=this;this.markdownService.getSource(this.src).subscribe(function(t){e.render(t),e.load.emit(t)},function(t){return e.error.emit(t)})}},{key:"handleTransclusion",value:function(){this.render(this.element.nativeElement.innerHTML,!0)}},{key:"handlePlugins",value:function(){this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,ck.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}},{key:"setPluginClass",value:function(e,t){for(var n=e.querySelectorAll("pre"),i=0;ie?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Bk(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Fk(e.value)||Nk.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Fk(t.value)||!Yk(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function zk(e){return null}function Vk(e){return null!=e}function Gk(e){var t=Co(e)?he(e):e;return Lo(t),t}function Wk(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Zk(e,t){return t.map(function(t){return t(e)})}function Qk(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function $k(e){if(!e)return null;var t=e.filter(Vk);return 0==t.length?null:function(e){return Wk(Zk(e,t))}}function Kk(e){return null!=e?$k(Qk(e)):null}function Jk(e){if(!e)return null;var t=e.filter(Vk);return 0==t.length?null:function(e){return Ck(Zk(e,t).map(Gk)).pipe(ie(Wk))}}function Xk(e){return null!=e?Jk(Qk(e)):null}function ew(e,t){return null===e?[t]:Array.isArray(e)?[].concat(d(e),[t]):[e,t]}function tw(e){return e._rawValidators}function nw(e){return e._rawAsyncValidators}function iw(e){return e?Array.isArray(e)?e:[e]:[]}function rw(e,t){return Array.isArray(e)?e.includes(t):e===t}function sw(e,t){var n=iw(t);return iw(e).forEach(function(e){rw(n,e)||n.push(e)}),n}function aw(e,t){return iw(t).filter(function(t){return!rw(e,t)})}var ow=function(){var e=function(){return m(function e(){g(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]},[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Kk(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xk(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e}),e}(),uw=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}])}(ow);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,features:[eo]}),t}(),lw=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return _(t,e),m(t)}(ow),cw=function(){return m(function e(t){g(this,e),this._cd=t},[{key:"is",value:function(e){var t,n,i;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[e])}}])}(),dw=function(){var e=function(e){function t(e){return g(this,t),v(this,t,[e])}return _(t,e),m(t)}(cw);return e.\u0275fac=function(t){return new(t||e)(yo(lw,2))},e.\u0275dir=Et({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Qo("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[eo]}),e}(),hw=function(){var e=function(e){function t(e){return g(this,t),v(this,t,[e])}return _(t,e),m(t)}(cw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,10))},e.\u0275dir=Et({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&Qo("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[eo]}),e}();function pw(e,t){return[].concat(d(t.path),[e])}function fw(e,t){vw(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_w(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_w(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function mw(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),yw(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function gw(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vw(e,t){var n=tw(e);null!==t.validator?e.setValidators(ew(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=nw(e);null!==t.asyncValidator?e.setAsyncValidators(ew(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};gw(t._rawValidators,r),gw(t._rawAsyncValidators,r)}function yw(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=tw(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var s=nw(e);if(Array.isArray(s)&&s.length>0){var a=s.filter(function(e){return e!==t.asyncValidator});a.length!==s.length&&(n=!0,e.setAsyncValidators(a))}}}var o=function(){};return gw(t._rawValidators,o),gw(t._rawAsyncValidators,o),n}function _w(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bw(e,t){vw(e,t)}function kw(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function ww(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Sw(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===Pk?n=e:function(e){return Object.getPrototypeOf(e.constructor)===Ak}(e)?i=e:r=e}),r||i||n||null):null;var n,i,r}function Ew(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Tw="VALID",Dw="INVALID",xw="PENDING",Cw="DISABLED";function Mw(e){return(Iw(e)?e.validators:e)||null}function Lw(e){return Array.isArray(e)?Kk(e):e||null}function Aw(e,t){return(Iw(t)?t.asyncValidators:e)||null}function Ow(e){return Array.isArray(e)?Xk(e):e||null}function Iw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Rw=function(){return m(function e(t,n){g(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Lw(this._rawValidators),this._composedAsyncValidatorFn=Ow(this._rawAsyncValidators)},[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Tw}},{key:"invalid",get:function(){return this.status===Dw}},{key:"pending",get:function(){return this.status==xw}},{key:"disabled",get:function(){return this.status===Cw}},{key:"enabled",get:function(){return this.status!==Cw}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Lw(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Ow(e)}},{key:"addValidators",value:function(e){this.setValidators(sw(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(sw(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(aw(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(aw(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return rw(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return rw(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=xw,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Cw,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Tw,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tw||this.status===xw)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Cw:Tw}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=xw,this._hasOwnPendingAsyncValidator=!0;var n=Gk(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof Fw?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Yw&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new jl,this.statusChanges=new jl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Cw:this.errors?Dw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xw)?xw:this._anyControlsHaveStatus(Dw)?Dw:Tw}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Iw(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}])}(),Pw=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return g(this,t),(e=v(this,t,[Mw(i),Aw(r,i)]))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _(t,e),m(t,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Ew(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Ew(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}])}(Rw),Fw=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[Mw(n),Aw(i,n)])).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return _(t,e),m(t,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Pw?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}])}(Rw),Yw=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[Mw(n),Aw(i,n)])).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return _(t,e),m(t,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Pw?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=M(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}])}(Rw),jw={provide:uw,useExisting:Pe(function(){return Nw})},qw=Promise.resolve(null),Nw=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).submitted=!1,i._directives=[],i.ngSubmit=new jl,i.form=new Fw({},Kk(e),Xk(n)),i}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),fw(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Ew(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path),i=new Fw({});bw(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;qw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;qw.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ww(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}])}(uw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10))},e.\u0275dir=Et({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ao("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Du([jw]),eo]}),e}(),Hw={provide:lw,useExisting:Pe(function(){return Uw})},Bw=Promise.resolve(null),Uw=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t)).control=new Pw,s._registered=!1,s.update=new jl,s._parent=e,s._setValidators(n),s._setAsyncValidators(i),s.valueAccessor=Sw(0,r),s}return _(t,e),m(t,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),kw(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?pw(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){fw(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Bw.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Bw.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,9),yo(jk,10),yo(qk,10),yo(Ok,10))},e.\u0275dir=Et({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Du([Hw]),eo,Ft]}),e}(),zw=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Vw=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),Gw=new xi("NgModelWithFormControlWarning"),Ww={provide:lw,useExisting:Pe(function(){return Zw})},Zw=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t))._ngModelWarningConfig=r,s.update=new jl,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(n),s.valueAccessor=Sw(0,i),s}return _(t,e),m(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&mw(t,this,!1),fw(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}kw(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&mw(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10),yo(Ok,10),yo(Gw,8))},e.\u0275dir=Et({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Du([Ww]),eo,Ft]}),e._ngModelWarningSentOnce=!1,e}(),Qw={provide:uw,useExisting:Pe(function(){return $w})},$w=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).validators=e,i.asyncValidators=n,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new jl,i._setValidators(e),i._setAsyncValidators(n),i}return _(t,e),m(t,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(yw(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return fw(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){mw(e.control||null,e,!1),Ew(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ww(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(mw(n||null,t),i instanceof Pw&&(fw(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);bw(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return yw(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){vw(this.form,this),this._oldForm&&yw(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}])}(uw);return e.\u0275fac=function(t){return new(t||e)(yo(jk,10),yo(qk,10))},e.\u0275dir=Et({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Ao("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Du([Qw]),eo,Ft]}),e}(),Kw={provide:lw,useExisting:Pe(function(){return Jw})},Jw=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._ngModelWarningConfig=s,a._added=!1,a.update=new jl,a._ngModelWarningSent=!1,a._parent=e,a._setValidators(n),a._setAsyncValidators(i),a.valueAccessor=Sw(0,r),a}return _(t,e),m(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),kw(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return pw(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}])}(lw);return e.\u0275fac=function(t){return new(t||e)(yo(uw,13),yo(jk,10),yo(qk,10),yo(Ok,10),yo(Gw,8))},e.\u0275dir=Et({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Du([Kw]),eo,Ft]}),e._ngModelWarningSentOnce=!1,e}(),Xw={provide:jk,useExisting:Pe(function(){return eS}),multi:!0},eS=function(){var e=function(){return m(function e(){g(this,e),this._required=!1},[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Bk(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&fo("required",t.required?"":null)},inputs:{required:"required"},features:[Du([Xw])]}),e}(),tS={provide:jk,useExisting:Pe(function(){return nS}),multi:!0},nS=function(){var e=function(){return m(function e(){g(this,e),this._validator=zk},[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this.enabled()?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=this.enabled()?Uk(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):zk}},{key:"enabled",value:function(){return null!=this.maxlength}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fo("maxlength",t.enabled()?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Du([tS]),Ft]}),e}(),iS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[Vw]]}),e}(),rS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[iS]}),e}(),sS=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Gw,useValue:t.warnOnNgModelWithFormControl}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[iS]}),e}(),aS=function(){var e=function(){return m(function e(){g(this,e)},[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),r=null,s=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(r=null!=n.validators?n.validators:null,s=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(r=null!=n.validator?n.validator:null,s=null!=n.asyncValidator?n.asyncValidator:null)),new Fw(i,{asyncValidators:s,updateOn:t,validators:r})}},{key:"control",value:function(e,t,n){return new Pw(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Yw(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof Pw||e instanceof Fw||e instanceof Yw?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:sS}),e}();function oS(e){return null!=e&&"false"!="".concat(e)}function uS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function lS(e){return Array.isArray(e)?e:[e]}function cS(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function dS(e){return e instanceof Iu?e.nativeElement:e}function hS(e,t,n,i){return S(n)&&(i=n,n=void 0),i?hS(e,t,n).pipe(ie(function(e){return I(e)?i.apply(void 0,d(e)):i(e)})):new Q(function(i){pS(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function pS(e,t,n,i,r){var s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),s=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var o=e;e.on(t,n),s=function(){return o.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),s=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(E(t.prototype),"recycleAsyncId",this).call(this,e,n,i);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}}])}(rb)),mS=1,gS=Promise.resolve(),vS={};function yS(e){return e in vS&&(delete vS[e],!0)}var _S=function(e){var t=mS++;return vS[t]=!0,gS.then(function(){return yS(t)&&e()}),t},bS=function(e){yS(e)},kS=new(function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(E(t.prototype),"requestAsyncId",this).call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=_S(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(E(t.prototype),"recycleAsyncId",this).call(this,e,n,i);0===e.actions.length&&(bS(n),e.scheduled=void 0)}}])}(rb));function wS(e,t){return function(n){return n.lift(new SS(e,t))}}var SS=function(){return m(function e(t,n){g(this,e),this.compare=t,this.keySelector=n},[{key:"call",value:function(e,t){return t.subscribe(new ES(e,this.compare,this.keySelector))}}])}(),ES=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return _(t,e),m(t,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}])}(U),TS=new ab(rb),DS=function(){return m(function e(t){g(this,e),this.durationSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new xS(e,this.durationSelector))}}])}(),xS=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).durationSelector=n,i.hasValue=!1,i}return _(t,e),m(t,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{var n;t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var i=me(t,new pe(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(fe);function CS(e){return!I(e)&&e-parseFloat(e)+1>=0}function MS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return CS(t)?i=Number(t)<1?1:Number(t):ne(t)&&(n=t),ne(n)||(n=TS),new Q(function(t){var r=CS(e)?e:+e-n.now();return n.schedule(LS,r,{index:0,period:i,subscriber:t})})}function LS(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function AS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TS;return function(e){return function(t){return t.lift(new DS(e))}}(function(){return MS(e,t)})}function OS(e){return function(t){return t.lift(new IS(e))}}var IS=function(){return m(function e(t){g(this,e),this.notifier=t},[{key:"call",value:function(e,t){var n=new RS(e),i=me(this.notifier,new pe(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}])}(),RS=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e])).seenValue=!1,n}return _(t,e),m(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(fe);function PS(){return function(e){return e.lift(new YS)}}var FS,YS=function(){return m(function e(){g(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new jS(e))}}])}(),jS=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e])).hasPrev=!1,n}return _(t,e),m(t,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}])}(U),qS=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return g(this,t),(e=v(this,t)).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _(t,e),m(t,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}h(E(t.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new NS(this._getNow(),e)),this._trimBufferThenGetEvents()),h(E(t.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;if(this.closed)throw new K;if(this.isStopped||this.hasError?t=Y.EMPTY:(this.observers.push(e),t=new J(this,e)),r&&e.add(e=new pb(e,r)),n)for(var a=0;at&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}])}(ee),NS=m(function e(t,n){g(this,e),this.time=t,this.value=n});try{FS="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(P){FS=!1}var HS,BS,US,zS,VS=function(){var e=m(function e(t){g(this,e),this._platformId=t,this.isBrowser=this._platformId?Gd(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&&!FS)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)($i(pc))},e.\u0275prov=Be({factory:function(){return new e($i(pc))},token:e,providedIn:"root"}),e}(),GS=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),WS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ZS(){if(HS)return HS;if("object"!=typeof document||!document)return HS=new Set(WS);var e=document.createElement("input");return HS=new Set(WS.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function QS(e){return function(){if(null==BS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return BS=!0}}))}finally{BS=BS||!1}return BS}()?e:!!e.capture}function $S(e){if(function(){if(null==zS){var e="undefined"!=typeof document?document.head:null;zS=!(!e||!e.createShadowRoot&&!e.attachShadow)}return zS}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function KS(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function JS(e){return e.composedPath?e.composedPath()[0]:e.target}function XS(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var eE=new xi("cdk-dir-doc",{providedIn:"root",factory:function(){return Ki(ad)}}),tE=function(){var e=function(){return m(function e(t){if(g(this,e),this.value="ltr",this.change=new jl,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}},[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(eE,8))},e.\u0275prov=Be({factory:function(){return new e($i(eE,8))},token:e,providedIn:"root"}),e}(),nE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}();function iE(e){return e&&"function"==typeof e.connect}var rE=function(){return m(function e(){g(this,e)},[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,s){var a,o;if(null==e.previousIndex){var u=n(e,i,s);a=t.createEmbeddedView(u.templateRef,u.context,u.index),o=1}else null==s?(t.remove(i),o=3):(a=t.get(i),t.move(a,s),o=2);r&&r({context:null==a?void 0:a.context,operation:o,record:e})})}},{key:"detach",value:function(){}}])}(),sE=function(){return m(function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ee,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)},[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Q(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(AS(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Oh()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Rh(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=dS(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return hS(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(VS),$i(ad,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(VS),$i(ad,8))},token:e,providedIn:"root"}),e}(),lE=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this._platform=t,this._change=new ee,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})},[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(AS(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(Cc),$i(ad,8))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(Cc),$i(ad,8))},token:e,providedIn:"root"}),e}(),cE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),dE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[nE,GS,cE],nE,cE]}),e}();function hE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:TS;return function(n){return n.lift(new fE(e,t))}}var fE=function(){return m(function e(t,n){g(this,e),this.dueTime=t,this.scheduler=n},[{key:"call",value:function(e,t){return t.subscribe(new mE(e,this.dueTime,this.scheduler))}}])}(),mE=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _(t,e),m(t,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gE,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}])}(U);function gE(e){e.debouncedNext()}function vE(e){return function(t){return t.lift(new yE(e))}}var yE=function(){return m(function e(t){g(this,e),this.total=t},[{key:"call",value:function(e,t){return t.subscribe(new _E(e,this.total))}}])}(),_E=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e])).total=n,i.count=0,i}return _(t,e),m(t,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}])}(U),bE=function(){var e=function(){return m(function e(){g(this,e)},[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kE=function(){var e=function(){return m(function e(t){g(this,e),this._mutationObserverFactory=t,this._observedElements=new Map},[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=dS(e);return new Q(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ee,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(bE))},e.\u0275prov=Be({factory:function(){return new e($i(bE))},token:e,providedIn:"root"}),e}(),wE=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new jl,this._disabled=!1,this._currentSubscription=null},[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=uS(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pE(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(kE),yo(Iu),yo(Cc))},e.\u0275dir=Et({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),SE=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[bE]}),e}();function EE(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var TE="cdk-describedby-message-container",DE="cdk-describedby-message",xE="cdk-describedby-host",CE=0,ME=new Map,LE=null,AE=function(){var e=function(){return m(function e(t){g(this,e),this._document=t},[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=OE(t,n);"string"!=typeof t?(IE(t),ME.set(i,{messageElement:t,referenceCount:0})):ME.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=OE(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=ME.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}LE&&0===LE.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(xE,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})},[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Zg(function(t){return e._pressedLetters.push(t)}),pE(t),Rh(function(){return e._pressedLetters.length>0}),ie(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||hE(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Nl?this._items.toArray():this._items}}])}(),PE=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(E(t.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}])}(RE),FE=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._origin="program",e}return _(t,e),m(t,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(E(t.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}])}(RE),YE=function(){var e=function(){return m(function e(t){g(this,e),this._platform=t},[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===qE(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=qE(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||jE(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(VS))},token:e,providedIn:"root"}),e}();function jE(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function qE(e){if(!jE(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var NE=function(){return m(function e(t,n,i,r){var s=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];g(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return s.focusLastTabbableElement()},this.endAnchorListener=function(){return s.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()},[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Dg(1)).subscribe(e)}}])}(),HE=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._checker=t,this._ngZone=n,this._document=i},[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new NE(e,this._checker,this._ngZone,this._document,t)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(YE),$i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(YE),$i(Cc),$i(ad))},token:e,providedIn:"root"}),e}();function BE(e){return 0===e.offsetX&&0===e.offsetY}function UE(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var zE=new xi("cdk-input-modality-detector-options"),VE={ignoreKeys:[18,17,224,91,16]},GE=QS({passive:!0,capture:!0}),WE=function(){var e=function(){return m(function e(t,n,i,r){var s=this;g(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new lg(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=s._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(s._modality.next("keyboard"),s._mostRecentTarget=JS(e))},this._onMousedown=function(e){Date.now()-s._lastTouchMs<650||(s._modality.next(BE(e)?"keyboard":"mouse"),s._mostRecentTarget=JS(e))},this._onTouchstart=function(e){UE(e)?s._modality.next("keyboard"):(s._lastTouchMs=Date.now(),s._modality.next("touch"),s._mostRecentTarget=JS(e))},this._options=Object.assign(Object.assign({},VE),r),this.modalityDetected=this._modality.pipe(vE(1)),this.modalityChanged=this.modalityDetected.pipe(wS()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",s._onKeydown,GE),i.addEventListener("mousedown",s._onMousedown,GE),i.addEventListener("touchstart",s._onTouchstart,GE)})},[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,GE),document.removeEventListener("mousedown",this._onMousedown,GE),document.removeEventListener("touchstart",this._onTouchstart,GE))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(Cc),$i(ad),$i(zE,8))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(Cc),$i(ad),$i(zE,8))},token:e,providedIn:"root"}),e}(),ZE=new xi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),QE=new xi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),$E=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()},[{key:"announce",value:function(e){for(var t,n,i,r=this,s=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=dS(e);if(!this._platform.isBrowser||1!==n.nodeType)return Oh(null);var i=$S(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var s={checkChildren:t,subject:new ee,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}},{key:"stopMonitoring",value:function(e){var t=dS(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=dS(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=T(e,2),r=n[0],s=n[1];return i._originChanged(r,t,s)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=JS(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,JE),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,JE)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(OS(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,JE),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,JE),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(VS),$i(WE),$i(ad,8),$i(KE,8))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(VS),$i(WE),$i(ad,8),$i(KE,8))},token:e,providedIn:"root"}),e}(),eT=function(){var e=function(){return m(function e(t,n){g(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new jl},[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(XE))},e.\u0275dir=Et({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),tT="cdk-high-contrast-black-on-white",nT="cdk-high-contrast-white-on-black",iT="cdk-high-contrast-active",rT=function(){var e=function(){return m(function e(t,n){g(this,e),this._platform=t,this._document=n},[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(iT),e.remove(tT),e.remove(nT),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(iT),e.add(tT)):2===t&&(e.add(iT),e.add(nT))}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(VS),$i(ad))},token:e,providedIn:"root"}),e}(),sT=function(){var e=m(function e(t){g(this,e),t._applyBodyHighContrastModeCssClasses()});return e.\u0275fac=function(t){return new(t||e)($i(rT))},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[GS,SE]]}),e}();function aT(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function oT(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];r?e.setProperty(i,r,(null==n?void 0:n.has(i))?"important":""):e.removeProperty(i)}return e}function uT(e,t){var n=t?"":"none";oT(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function lT(e,t,n){oT(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function cT(e,t){return t&&"none"!=t?e+" "+t:e}function dT(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function hT(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function pT(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function fT(e,t,n){var i=e.top,r=e.bottom,s=e.left,a=e.right;return n>=i&&n<=r&&t>=s&&t<=a}function mT(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function gT(e,t,n,i){var r=e.top,s=e.right,a=e.bottom,o=e.left,u=e.width*t,l=e.height*t;return i>r-l&&io-u&&n=o._config.dragStartThreshold){var r=Date.now()>=o._dragStartTime+o._getDragStartDelay(e),s=o._dropContainer;if(!r)return void o._endDragSequence(e);(!s||!s.isDragging()&&!s.isReceiving())&&(e.preventDefault(),o._hasStartedDragging=!0,o._ngZone.run(function(){return o._startDragSequence(e)}))}},this._pointerUp=function(e){o._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new vT(i,s),a.registerDragItem(this)},[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=oS(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return uT(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return dS(e)}),this._handles.forEach(function(e){return uT(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=dS(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,ET),n.addEventListener("touchstart",t._pointerDown,ST)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?dS(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&MT(this._rootElement),MT(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),uT(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),uT(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&MT(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&MT(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){LT(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(s,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),lT(n,!1,TT),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=LT(t),s=!r&&0!==t.button,a=this._rootElement,o=JS(t),u=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?UE(t):BE(t);if(o&&o.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||s||u||l)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(e){return n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=pT(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;lT(this._rootElement,!0,TT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),s=t._getDragDistance(r),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:s,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:s,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,a,s,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,s=t.x,a=t.y,o=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=o,n._dropContainer.enter(n,i,r,o===n._initialContainer&&o.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:o,currentIndex:o.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(s,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),e=AT(s,this._document),this._previewRef=s,t.matchSize?OT(e,r):e.style.transform=xT(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;OT(e=yT(a),a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return oT(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},TT),uT(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=hT(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),s=hT(t,"transition-duration"),a=hT(t,"transition-delay");return dT(s[r])+dT(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){var s;(!i||JS(i)===e._preview&&"transform"===i.propertyName)&&(null===(s=e._preview)||void 0===s||s.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=AT(this._placeholderRef,this._document)):e=yT(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,s=LT(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(s.pageX-r.left-a.left),y:r.top-n.top+(s.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=LT(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var s=this._ownerSVGElement.getScreenCTM();if(s){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(s.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){var s=this._pickupPositionInElement,a=s.x,o=s.y,u=this._boundaryRect,l=this._previewRect,c=u.top+o,d=u.bottom-(l.height-o);i=CT(i,u.left+a,u.right-(l.width-a)),r=CT(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),a=Math.abs(n-r.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,uT(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,ET),e.removeEventListener("touchstart",this._pointerDown,ST)}},{key:"_applyRootElementTransform",value:function(e,t){var n=xT(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=cT(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=xT(e,t);this._preview.style.transform=cT(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var s=i.left-r.left,a=r.right-i.right,o=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>r.height?(o>0&&(n+=o),u>0&&(n-=u)):n=0,(t!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:LT(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=JS(e);this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&mT(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$S(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return dS(n)}}])}();function xT(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function CT(e,t,n){return Math.max(t,Math.min(n,e))}function MT(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function LT(e){return"t"===e.type[0]}function AT(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function OT(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=xT(t.left,t.top)}function IT(e,t){return Math.max(0,Math.min(t,e))}var RT=function(){return m(function e(t,n,i,r,s){var a=this;g(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new ee,this.entered=new ee,this.exited=new ee,this.dropped=new ee,this.sorted=new ee,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Y.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ee,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TS;return(!CS(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=TS),new Q(function(n){return n.add(t.schedule(aT,e,{subscriber:n,counter:0,period:e})),n})}(0,fS).pipe(OS(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?FT(e,-t):2===a._verticalScrollDirection&&FT(e,t),1===a._horizontalScrollDirection?YT(e,-t):2===a._horizontalScrollDirection&&YT(e,t)})},this.element=dS(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new vT(i,s)},[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var s=this._activeDraggables,a=s.indexOf(e),o=e.getPlaceholderElement(),u=s[r];if(u===e&&(u=s[r+1]),a>-1&&s.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(o,l),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=s[0].getRootElement();c.parentNode.insertBefore(o,c),s.unshift(e)}else dS(this.element).appendChild(o),s.push(e);o.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,s,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:s,dropPoint:a})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=dS(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(d(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?PT("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&gT(this._clientRect,.05,t,n)){var r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===s&&r.length>0)){var a="horizontal"===this._orientation,o=PT(r,function(t){return t.drag===e}),u=r[s],l=u.clientRect,c=o>s?1:-1,d=this._getItemOffsetPx(r[o].clientRect,l,c),h=this._getSiblingOffsetPx(o,r,c),p=r.slice();(function(e,t,n){var i=IT(t,e.length-1),r=IT(n,e.length-1);if(i!==r){for(var s=e[i],a=r0&&(a=1):e.scrollHeight-u>e.clientHeight&&(a=2)}if(s){var l=e.scrollLeft;1===s?l>0&&(o=1):e.scrollWidth-l>e.clientWidth&&(o=2)}return[a,o]}(o,a.clientRect,e,t),l=T(u,2),r=l[0],s=l[1],(r||s)&&(i=o))}),!r&&!s){var a=this._viewportRuler.getViewportSize(),o=a.width,u=a.height,l={width:o,height:u,top:0,right:o,bottom:u,left:0};r=jT(l,t),s=qT(l,e),i=window}i&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=i,(r||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=dS(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=dS(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:pT(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=dS(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*n],a=r[i?"width":"height"]*n;if(s){var o=i?"left":"top",u=i?"right":"bottom";-1===n?a-=s.clientRect[o]-r[u]:a+=r[o]-s.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var s=n[0].clientRect;return i?e<=s.left:t<=s.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,s="horizontal"===this._orientation,a=PT(this._itemPositions,function(a,o,u){var l=a.drag,c=a.clientRect;if(l===e)return u.length<2;if(i){var d=s?i.x:i.y;if(l===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return s?t>=Math.floor(c.left)&&t=Math.floor(c.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){mT(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=$S(dS(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}])}();function PT(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function qT(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var NT=QS({passive:!1,capture:!0}),HT=function(){var e=function(){return m(function e(t,n){var i=this;g(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ee,this.pointerUp=new ee,this.scroll=new ee,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n},[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,NT)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NT)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NT}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:NT}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var t=this,n=[this.scroll];return e&&e!==this._document&&n.push(new Q(function(n){return t._ngZone.runOutsideAngular(function(){var i=function(e){t._activeDragInstances.length&&n.next(e)};return e.addEventListener("scroll",i,!0),function(){e.removeEventListener("scroll",i,!0)}})})),ke.apply(void 0,n)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(Cc),$i(ad))},token:e,providedIn:"root"}),e}(),BT={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UT=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r},[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BT;return new DT(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new RT(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(Cc),$i(lE),$i(HT))},e.\u0275prov=Be({factory:function(){return new e($i(ad),$i(Cc),$i(lE),$i(HT))},token:e,providedIn:"root"}),e}(),zT=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[UT],imports:[cE]}),e}(),VT=[[["caption"]],[["colgroup"],["col"]]],GT=["caption","colgroup, col"];function WT(e){return function(e){function t(){var e;g(this,t);for(var n=arguments.length,i=new Array(n),r=0;r4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=arguments.length>6?arguments[6]:void 0;g(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=a,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}},[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],s=M(e);try{for(s.s();!(n=s.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var o=0;o3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var s=e[0],a=s.children.length,o=this._getCellWidths(s,r),u=this._getStickyStartColumnPositions(o,t),l=this._getStickyEndColumnPositions(o,n),c=t.lastIndexOf(!0),d=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,s="rtl"===i.direction,h=s?"right":"left",p=s?"left":"right",f=M(e);try{for(f.s();!(r=f.n()).done;)for(var m=r.value,g=0;g1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}])}(),bD=new xi("CDK_SPL"),kD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","rowOutlet",""]]}),e}(),wD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),SD=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),ED=function(){var e=m(function e(t,n){g(this,e),this.viewContainer=t,this.elementRef=n});return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),TD=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._stickyPositioningListener=d,this._onDestroy=new ee,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new jl,this.viewChange=new lg({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName},[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=oS(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=oS(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(OS(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),iE(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(d(t),d(n),d(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),s=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,s,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=M(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;fD.mostRecentCellOutlet&&fD.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(s){i.e(s)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:0;return function(e){function n(){var e;g(this,n);for(var i=arguments.length,r=new Array(i),s=0;s0?n:e}}])}(),WD=new xi("mat-date-formats");try{zD="undefined"!=typeof Intl}catch(P){zD=!1}var ZD={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},QD=JD(31,function(e){return String(e+1)}),$D={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},KD=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function JD(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(KD.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return h(E(t.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}])}(GD);return e.\u0275fac=function(t){return new(t||e)($i(VD,8),$i(VS))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),ex=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[{provide:GD,useClass:XD}],imports:[[GS]]}),e}(),tx={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[{provide:WD,useValue:tx}],imports:[[ex]]}),e}(),ix=function(){var e=function(){return m(function e(){g(this,e)},[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),rx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function sx(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var ax=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),ox=function(){return m(function e(t,n,i){g(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3},[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}])}(),ux={enterDuration:225,exitDuration:150},lx=QS({passive:!0}),cx=["mousedown","touchstart"],dx=["mouseup","mouseleave","touchend","touchcancel"],hx=function(){return m(function e(t,n,i,r){g(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=dS(i))},[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},ux),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),o=e-r.left,u=t-r.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),function(e){window.getComputedStyle(e).getPropertyValue("opacity")}(c),c.style.transform="scale(1)";var d=new ox(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,!i.persistent&&(!e||!n._isPointerDown)&&d.fadeOut()},l),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},ux),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=dS(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(cx))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(dx),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=BE(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,lx)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(cx.forEach(function(t){e._triggerElement.removeEventListener(t,e,lx)}),this._pointerUpEventsRegistered&&dx.forEach(function(t){e._triggerElement.removeEventListener(t,e,lx)}))}}])}(),px=new xi("mat-ripple-global-options"),fx=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new hx(this,n,t,i)},[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(VS),yo(px,8),yo(rg,8))},e.\u0275dir=Et({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),mx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD,GS],YD]}),e}(),gx=function(){var e=m(function e(t){g(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1});return e.\u0275fac=function(t){return new(t||e)(yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Qo("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),vx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD]]}),e}(),yx=new xi("MAT_OPTION_PARENT_COMPONENT"),_x=jD(function(){return m(function e(){g(this,e)})}()),bx=0,kx=function(){var e=function(e){function t(e){var n,i;return g(this,t),(n=v(this,t))._labelId="mat-optgroup-label-"+bx++,n._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i,n}return _(t,e),m(t)}(_x);return e.\u0275fac=function(t){return new(t||e)(yo(yx,8))},e.\u0275dir=Et({type:e,inputs:{label:"label"},features:[eo]}),e}(),wx=new xi("MatOptgroup"),Sx=0,Ex=m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.source=t,this.isUserInput=n}),Tx=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Sx++,this.onSelectionChange=new jl,this._stateChanges=new ee},[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=oS(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(13===e.keyCode||32===e.keyCode)&&!hE(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Ex(this,e))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(void 0),yo(kx))},e.\u0275dir=Et({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Dx=function(){var e=function(e){function t(e,n,i,r){return g(this,t),v(this,t,[e,n,i,r])}return _(t,e),m(t)}(Tx);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(yx,8),yo(wx,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(cu("id",t.id),fo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Qo("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[eo],ngContentSelectors:OD,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(jo(),go(0,LD,1,2,"mat-pseudo-checkbox",0),ko(1,"span",1),qo(2),wo(),go(3,AD,2,1,"span",2),So(4,"div",3)),2&e&&(_o("ngIf",t.multiple),Ns(3),_o("ngIf",t.group&&t.group._inert),Ns(1),_o("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Od,fx,gx],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function xx(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),s=0,a=0;a1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,h(E(t.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(E(t.prototype),"detach",this).call(this)}}])}(Mx),Ox=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).element=e instanceof Iu?e.nativeElement:e,n}return _(t,e),m(t)}(Mx),Ix=function(){return m(function e(){g(this,e),this._isDisposed=!1,this.attachDomPortal=null},[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Lx?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ax?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Ox?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}(),Rx=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t)).outletElement=e,a._componentFactoryResolver=n,a._appRef=i,a._defaultInjector=r,a.attachDomPortal=function(e){var n=e.element,i=a._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),a.outletElement.appendChild(n),a._attachedPortal=e,h((y(a),E(t.prototype)),"setDisposeFn",y(a)).call(y(a),function(){i.parentNode&&i.parentNode.replaceChild(n,i)})},a._document=s,a}return _(t,e),m(t,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){h(E(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}])}(Ix),Px=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t))._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new jl,r.attachDomPortal=function(e){var n=e.element,i=r._document.createComment("dom-portal");e.setAttachedHost(y(r)),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),r._attachedPortal=e,h((y(r),E(t.prototype)),"setDisposeFn",y(r)).call(y(r),function(){i.parentNode&&i.parentNode.replaceChild(n,i)})},r._document=i,r}return _(t,e),m(t,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&h(E(t.prototype),"detach",this).call(this),e&&h(E(t.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=n.createComponent(i,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(E(t.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(E(t.prototype),"setDisposeFn",this).call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Mu),yo(gl),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[eo]}),e}(),Fx=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),Yx=function(){return m(function e(t,n){g(this,e),this.predicate=t,this.inclusive=n},[{key:"call",value:function(e,t){return t.subscribe(new jx(e,this.predicate,this.inclusive))}}])}(),jx=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).predicate=n,r.inclusive=i,r.index=0,r}return _(t,e),m(t,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}])}(U),qx=function(){if(null==US){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return US=!1;if("scrollBehavior"in document.documentElement.style)US=!0;else{var e=Element.prototype.scrollTo;US=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return US}(),Nx=function(){return m(function e(t,n){g(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n},[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=cS(-this._previousScrollPosition.left),e.style.top=cS(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),qx&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qx&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}])}(),Hx=function(){return m(function e(t,n,i,r){var s=this;g(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){s.disable(),s._overlayRef.hasAttached()&&s._ngZone.run(function(){return s._overlayRef.detach()})}},[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),Bx=function(){return m(function e(){g(this,e)},[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function Ux(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function zx(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Vx=function(){return m(function e(t,n,i,r){g(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null},[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ux(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),Gx=function(){var e=m(function e(t,n,i,r){var s=this;g(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Bx},this.close=function(e){return new Hx(s._scrollDispatcher,s._ngZone,s._viewportRuler,e)},this.block=function(){return new Nx(s._viewportRuler,s._document)},this.reposition=function(e){return new Vx(s._scrollDispatcher,s._viewportRuler,s._ngZone,e)},this._document=r});return e.\u0275fac=function(t){return new(t||e)($i(uE),$i(lE),$i(Cc),$i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(uE),$i(lE),$i(Cc),$i(ad))},token:e,providedIn:"root"}),e}(),Wx=m(function e(t){if(g(this,e),this.scrollStrategy=new Bx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(ad))},token:e,providedIn:"root"}),e}(),Kx=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[e]))._keydownListener=function(e){for(var t=n._attachedOverlays,i=t.length-1;i>-1;i--)if(t[i]._keydownEvents.observers.length>0){t[i]._keydownEvents.next(e);break}},n}return _(t,e),m(t,[{key:"add",value:function(e){h(E(t.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}])}($x);return e.\u0275fac=function(t){return new(t||e)($i(ad))},e.\u0275prov=Be({factory:function(){return new e($i(ad))},token:e,providedIn:"root"}),e}(),Jx=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e]))._platform=n,i._cursorStyleIsSet=!1,i._pointerDownListener=function(e){i._pointerDownEventTarget=JS(e)},i._clickListener=function(e){var t=JS(e),n="click"===e.type&&i._pointerDownEventTarget?i._pointerDownEventTarget:t;i._pointerDownEventTarget=null;for(var r=i._attachedOverlays.slice(),s=r.length-1;s>-1;s--){var a=r[s];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t)||a.overlayElement.contains(n))break;a._outsidePointerEvents.next(e)}}},i}return _(t,e),m(t,[{key:"add",value:function(e){if(h(E(t.prototype),"add",this).call(this,e),!this._isAttached){var n=this._document.body;n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}])}($x);return e.\u0275fac=function(t){return new(t||e)($i(ad),$i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(ad),$i(VS))},token:e,providedIn:"root"}),e}(),Xx=function(){var e=function(){return m(function e(t,n){g(this,e),this._platform=n,this._document=t},[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||XS())for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;np&&(p=g,h=m)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&rC(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tC),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=aC(t),s=e.x,a=e.y,o=this._getOffset(i,"x"),u=this._getOffset(i,"y");o&&(s+=o),u&&(a+=u);var l=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-s,s+r.width-n.width),h=this._subtractOverflows(r.height,l,c),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,s=sC(this._overlayRef.getConfig().minHeight),a=sC(this._overlayRef.getConfig().minWidth),o=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=s&&s<=i)&&o}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,s=aC(t),a=this._viewportRect,o=Math.max(e.x+s.width-a.width,0),u=Math.max(e.y+s.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=s.width<=a.width?c||-o:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)o=u.width-e.x+this._viewportMargin,s=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,s=u.right-e.x;else{var h=Math.min(u.right-e.x+u.left,e.x),p=this._lastBoundingBoxSize.width;s=2*h,a=e.x-h,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-p/2)}return{top:i,left:a,bottom:r,right:o,width:s,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=cS(n.height),i.top=cS(n.top),i.bottom=cS(n.bottom),i.width=cS(n.width),i.left=cS(n.left),i.right=cS(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=cS(r)),s&&(i.maxWidth=cS(s))}this._lastBoundingBoxSize=n,rC(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){rC(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){rC(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();rC(n,this._getExactOverlayY(t,e,a)),rC(n,this._getExactOverlayX(t,e,a))}else n.position="static";var o="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(o+="translateX(".concat(u,"px) ")),l&&(o+="translateY(".concat(l,"px)")),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=cS(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=cS(s.maxWidth):r&&(n.maxWidth="")),rC(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=cS(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=cS(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:zx(e,n),isOriginOutsideView:Ux(e,n),isOverlayClipped:zx(t,n),isOverlayOutsideView:Ux(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,s=n.maxWidth,a=n.maxHeight,o=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=o?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,o?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(uC),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),cC=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r},[{key:"global",value:function(){return new lC}},{key:"connectedTo",value:function(e,t,n){return new oC(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new iC(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(lE),$i(ad),$i(VS),$i(Xx))},e.\u0275prov=Be({factory:function(){return new e($i(lE),$i(ad),$i(VS),$i(Xx))},token:e,providedIn:"root"}),e}(),dC=0,hC=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d){g(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=d},[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Wx(e);return r.direction=r.direction||this._directionality.value,new eC(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+dC++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Zc)),new Rx(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Gx),$i(Xx),$i(Mu),$i(cC),$i(Kx),$i(Ja),$i(Cc),$i(ad),$i(tE),$i(kd),$i(Jx))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),pC=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fC=new xi("cdk-connected-overlay-scroll-strategy"),mC=function(){var e=m(function e(t){g(this,e),this.elementRef=t});return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),gC=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Y.EMPTY,this._attachSubscription=Y.EMPTY,this._detachSubscription=Y.EMPTY,this._positionSubscription=Y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new jl,this.positionChange=new jl,this.attach=new jl,this.detach=new jl,this.overlayKeydown=new jl,this.overlayOutsideClick=new jl,this._templatePortal=new Ax(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()},[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=oS(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=oS(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=oS(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=oS(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=oS(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=pC);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27===t.keyCode&&!e.disableClose&&!hE(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Wx({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Yx(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(cl),yo(gl),yo(fC),yo(tE,8))},e.\u0275dir=Et({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ft]}),e}(),vC={provide:fC,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},yC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[hC,vC],imports:[[nE,Fx,dE],dE]}),e}(),_C=["underline"],bC=["connectionContainer"],kC=["inputContainer"],wC=["label"];function SC(e,t){1&e&&(Eo(0),ko(1,"div",14),So(2,"div",15),So(3,"div",16),So(4,"div",17),wo(),ko(5,"div",18),So(6,"div",15),So(7,"div",16),So(8,"div",17),wo(),To())}function EC(e,t){1&e&&(ko(0,"div",19),qo(1,1),wo())}function TC(e,t){if(1&e&&(Eo(0),qo(1,2),ko(2,"span"),au(3),wo(),To()),2&e){var n=Fo(2);Ns(3),ou(n._control.placeholder)}}function DC(e,t){1&e&&qo(0,3,["*ngSwitchCase","true"])}function xC(e,t){1&e&&(ko(0,"span",23),au(1," *"),wo())}function CC(e,t){if(1&e){var n=xo();ko(0,"label",20,21),Ao("cdkObserveContent",function(){return ln(n),Fo().updateOutlineGap()}),go(2,TC,4,1,"ng-container",12),go(3,DC,1,0,"ng-content",12),go(4,xC,2,0,"span",22),wo()}if(2&e){var i=Fo();Qo("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),_o("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),fo("for",i._control.id)("aria-owns",i._control.id),Ns(2),_o("ngSwitchCase",!1),Ns(1),_o("ngSwitchCase",!0),Ns(1),_o("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function MC(e,t){1&e&&(ko(0,"div",24),qo(1,4),wo())}function LC(e,t){if(1&e&&(ko(0,"div",25,26),So(2,"span",27),wo()),2&e){var n=Fo();Ns(2),Qo("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function AC(e,t){1&e&&(ko(0,"div"),qo(1,5),wo()),2&e&&_o("@transitionMessages",Fo()._subscriptAnimationState)}function OC(e,t){if(1&e&&(ko(0,"div",31),au(1),wo()),2&e){var n=Fo(2);_o("id",n._hintLabelId),Ns(1),ou(n.hintLabel)}}function IC(e,t){if(1&e&&(ko(0,"div",28),go(1,OC,2,2,"div",29),qo(2,6),So(3,"div",30),qo(4,7),wo()),2&e){var n=Fo();_o("@transitionMessages",n._subscriptAnimationState),Ns(1),_o("ngIf",n.hintLabel)}}var RC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],FC=0,YC=new xi("MatError"),jC=function(){var e=m(function e(t,n){g(this,e),this.id="mat-error-"+FC++,t||n.nativeElement.setAttribute("aria-live","polite")});return e.\u0275fac=function(t){return new(t||e)(ki("aria-live"),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&fo("id",t.id)},inputs:{id:"id"},features:[Du([{provide:YC,useExisting:e}])]}),e}(),qC={transitionMessages:_p("transitionMessages",[Sp("enter",wp({opacity:1,transform:"translateY(0%)"})),Tp("void => enter",[wp({opacity:0,transform:"translateY(-5px)"}),bp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},NC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e}),e}(),HC=0,BC=new xi("MatHint"),UC=function(){var e=m(function e(){g(this,e),this.align="start",this.id="mat-hint-"+HC++});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(fo("id",t.id)("align",null),Qo("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Du([{provide:BC,useExisting:e}])]}),e}(),zC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-label"]]}),e}(),VC=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-placeholder"]]}),e}(),GC=new xi("MatPrefix"),WC=new xi("MatSuffix"),ZC=0,QC=qD(function(){return m(function e(t){g(this,e),this._elementRef=t})}(),"primary"),$C=new xi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KC=new xi("MatFormField"),JC=function(){var e=function(e){function t(e,n,i,r,s,a,o,u){var l;return g(this,t),(l=v(this,t,[e]))._changeDetectorRef=n,l._dir=r,l._defaults=s,l._platform=a,l._ngZone=o,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new ee,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+ZC++,l._labelId="mat-form-field-label-"+ZC++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==u,l.appearance=s&&s.appearance?s.appearance:"legacy",l._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,l}return _(t,e),m(t,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=oS(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Mg(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(OS(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(OS(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),ke(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Mg(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Mg(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(OS(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,hS(this._label.nativeElement,"transitionend").pipe(Dg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,d(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,d(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var o=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,d=0;d0?.75*c+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:TS,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new nM(n,t))}}var tM,nM=function(){return m(function e(t,n){g(this,e),this.delay=t,this.scheduler=n},[{key:"call",value:function(e,t){return t.subscribe(new iM(e,this.delay,this.scheduler))}}])}(),iM=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e])).delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return _(t,e),m(t,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new rM(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(db.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(db.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var s=Math.max(0,n[0].time-i.now());this.schedule(e,s)}else this.unsubscribe(),t.active=!1}}])}(U),rM=m(function e(t,n){g(this,e),this.time=t,this.notification=n}),sM={provide:new xi("mat-autocomplete-scroll-strategy"),deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},aM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[sM],imports:[[yC,Cx,YD,zd],cE,Cx,YD]}),e}(),oM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[sT,YD],YD]}),e}(),uM=new Set,lM=function(){var e=function(){return m(function e(t){g(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):cM},[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(e){if(!uM.has(e))try{tM||((tM=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(tM)),tM.sheet&&(tM.sheet.insertRule("@media ".concat(e," {body{ }}"),0),uM.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(VS))},e.\u0275prov=Be({factory:function(){return new e($i(VS))},token:e,providedIn:"root"}),e}();function cM(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var dM=function(){var e=function(){return m(function e(t,n){g(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ee},[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return hM(lS(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=fg(hM(lS(e)).map(function(e){return t._registerQuery(e).observable}));return(n=yg(n.pipe(Dg(1)),n.pipe(vE(1),pE(0)))).pipe(ie(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new Q(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Mg(n),ie(function(t){var n=t.matches;return{query:e,matches:n}}),OS(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}])}();return e.\u0275fac=function(t){return new(t||e)($i(lM),$i(Cc))},e.\u0275prov=Be({factory:function(){return new e($i(lM),$i(Cc))},token:e,providedIn:"root"}),e}();function hM(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var pM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[yC,YD,Fx],YD]}),e}(),fM=["mat-button",""],mM=["*"],gM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],vM=qD(jD(ND(function(){return m(function e(t){g(this,e),this._elementRef=t})}()))),yM=function(){var e=function(e){function t(e,n,i){var r;g(this,t),(r=v(this,t,[e]))._focusMonitor=n,r._animationMode=i,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var s,a=M(gM);try{for(a.s();!(s=a.n()).done;){var o=s.value;r._hasHostAttributes(o)&&r._getHostElement().classList.add(o)}}catch(u){a.e(u)}finally{a.f()}return e.nativeElement.classList.add("mat-button-base"),r.isRoundButton&&(r.color="accent"),r}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),_M=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[mx,YD],YD]}),e}(),bM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD,mx],YD]}),e}(),kM=["*",[["mat-card-footer"]]],wM=["*","mat-card-footer"],SM=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],EM=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],TM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),DM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),xM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),CM=function(){var e=m(function e(){g(this,e),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),MM=function(){var e=m(function e(t){g(this,e),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:wM,decls:2,vars:0,template:function(e,t){1&e&&(jo(kM),qo(0),qo(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),LM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:EM,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(jo(SM),qo(0),ko(1,"div",0),qo(2,1),wo(),qo(3,2))},encapsulation:2,changeDetection:0}),e}(),AM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),OM=["input"],IM=function(e){return{enterDuration:e}},RM=["*"],PM=new xi("mat-checkbox-default-options",{providedIn:"root",factory:FM});function FM(){return{color:"accent",clickAction:"check-indeterminate"}}var YM=0,jM={color:"accent",clickAction:"check-indeterminate"},qM={provide:Ok,useExisting:Pe(function(){return BM}),multi:!0},NM=m(function e(){g(this,e)}),HM=HD(qD(ND(jD(function(){return m(function e(t){g(this,e),this._elementRef=t})}())))),BM=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e]))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._animationMode=a,u._options=o,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++YM,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new jl,u.indeterminateChange=new jl,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||jM,u.color=u.defaultColor=u._options.color||jM.color,u.tabIndex=parseInt(s)||0,u}return _(t,e),m(t,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=oS(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=oS(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new NM;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}])}(HM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(XE),yo(Cc),ki("tabindex"),yo(rg,8),yo(PM,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(Kl(OM,5),Kl(fx,5)),2&e)&&($l(n=Xl())&&(t._inputElement=n.first),$l(n=Xl())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(cu("id",t.id),fo("tabindex",null),Qo("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Du([qM]),eo],ngContentSelectors:RM,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(jo(),ko(0,"label",0,1),ko(2,"span",2),ko(3,"input",3,4),Ao("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),wo(),ko(5,"span",5),So(6,"span",6),wo(),So(7,"span",7),ko(8,"span",8),Yn(),ko(9,"svg",9),So(10,"path",10),wo(),jn(),So(11,"span",11),wo(),wo(),ko(12,"span",12,13),Ao("cdkObserveContent",function(){return t._onLabelTextChange()}),ko(14,"span",14),au(15,"\xa0"),wo(),qo(16),wo(),wo()),2&e){var n=vo(1),i=vo(13);fo("for",t.inputId),Ns(2),Qo("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Ns(1),_o("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),fo("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Ns(2),_o("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Al(19,IM,"NoopAnimations"===t._animationMode?0:150))}},directives:[fx,wE],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),UM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),zM=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[mx,YD,SE,UM],YD,UM]}),e}(),VM=["*"],GM=new xi("MatChipRemove"),WM=new xi("MatChipAvatar"),ZM=new xi("MatChipTrailingIcon"),QM=HD(qD(ND(m(function e(t){g(this,e),this._elementRef=t})),"primary"),-1),$M=function(){var e=function(e){function t(e,n,i,r,s,a,o,u){var l;return g(this,t),(l=v(this,t,[e]))._ngZone=n,l._changeDetectorRef=s,l._hasFocus=!1,l.chipListSelectable=!0,l._chipListMultiple=!1,l._chipListDisabled=!1,l._selected=!1,l._selectable=!0,l._disabled=!1,l._removable=!0,l._onFocus=new ee,l._onBlur=new ee,l.selectionChange=new jl,l.destroyed=new jl,l.removed=new jl,l._addHostClassName(),l._chipRippleTarget=a.createElement("div"),l._chipRippleTarget.classList.add("mat-chip-ripple"),l._elementRef.nativeElement.appendChild(l._chipRippleTarget),l._chipRipple=new hx(y(l),n,l._chipRippleTarget,i),l._chipRipple.setupTriggerEvents(e),l.rippleConfig=r||{},l._animationsDisabled="NoopAnimations"===o,l.tabIndex=null!=u&&parseInt(u)||-1,l}return _(t,e),m(t,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=oS(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=oS(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=oS(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=oS(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}])}(QM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(VS),yo(px,8),yo(sl),yo(ad),yo(rg,8),ki("tabindex"))},e.\u0275dir=Et({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,WM,5),Jl(n,ZM,5),Jl(n,GM,5)),2&e)&&($l(i=Xl())&&(t.avatar=i.first),$l(i=Xl())&&(t.trailingIcon=i.first),$l(i=Xl())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(fo("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Qo("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[eo]}),e}(),KM=function(){var e=function(){return m(function e(t,n){g(this,e),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")},[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo($M),yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._handleClick(e)})},features:[Du([{provide:GM,useExisting:e}])]}),e}(),JM=new xi("mat-chips-default-options"),XM=BD(function(){return m(function e(t,n,i,r){g(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})}()),eL=0,tL=m(function e(t,n){g(this,e),this.source=t,this.value=n}),nL=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[a,r,s,o]))._elementRef=e,u._changeDetectorRef=n,u._dir=i,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new ee,u._uid="mat-chip-list-"+eL++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new jl,u.valueChange=new jl,u.ngControl&&(u.ngControl.valueAccessor=y(u)),u}return _(t,e),m(t,[{key:"selected",get:function(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=oS(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=oS(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=oS(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ke.apply(void 0,d(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new FE(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(OS(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(OS(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Mg(null),OS(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new sE(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new tL(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}])}(XM);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(tE,8),yo(Nw,8),yo($w,8),yo(ix),yo(lw,10))},e.\u0275cmp=yt({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,$M,5),2&e)&&($l(i=Xl())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&Ao("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(cu("id",t._uid),fo("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Qo("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Du([{provide:NC,useExisting:e}]),eo],ngContentSelectors:VM,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),qo(1),wo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),iL={separatorKeyCodes:[13]},rL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ix,{provide:JM,useValue:iL}],imports:[[YD]]}),e}(),sL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[nE]]}),e}(),aL=["*"];function oL(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function uL(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function lL(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var cL=m(function e(t,n,i){g(this,e),this.url=t,this.svgText=n,this.options=i}),dL=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i},[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new cL(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(ys.HTML,n);if(!r)throw lL(n);return this._addSvgIconConfig(e,t,new cL("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new cL(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(ys.HTML,t);if(!i)throw lL(t);return this._addSvgIconSetConfig(e,new cL("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(ys.RESOURCE_URL,e);if(!n)throw uL(e);var i=this._cachedIconsByUrl.get(n);return i?Oh(hL(i)):this._loadSvgIconFromConfig(new cL(e,null)).pipe(Zg(function(e){return t._cachedIconsByUrl.set(n,e)}),ie(function(e){return hL(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=pL(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):lb(oL(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Oh(hL(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ie(function(e){return hL(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Oh(i):Ck(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Ig(function(t){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(ys.RESOURCE_URL,e.url)," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(i)),Oh(null)}))})).pipe(ie(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw oL(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),s=this._extractSvgIconFromSet(r,e,i.options);if(s)return s}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}),ie(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Oh(null):this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),s=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(s,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,n)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(Cc),yo(ad,8))},e.\u0275dir=Et({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&Ao("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),CL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[GS]]}),e}(),ML=new xi("MAT_INPUT_VALUE_ACCESSOR"),LL=["button","checkbox","file","hidden","image","radio","range","reset","submit"],AL=0,OL=BD(function(){return m(function e(t,n,i,r){g(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})}()),IL=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c){var d;g(this,t),(d=v(this,t,[a,r,s,i]))._elementRef=e,d._platform=n,d._autofillMonitor=u,d._formField=c,d._uid="mat-input-"+AL++,d.focused=!1,d.stateChanges=new ee,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ZS().has(e)});var h=d._elementRef.nativeElement,p=h.nodeName.toLowerCase();return d._inputValueAccessor=o||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;!t.value&&0===t.selectionStart&&0===t.selectionEnd&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isInFormField=!!c,d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _(t,e),m(t,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=oS(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ZS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=oS(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){LL.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}])}(OL);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(lw,10),yo(Nw,8),yo($w,8),yo(ix),yo(ML,10),yo(DL),yo(Cc),yo(KC,8))},e.\u0275dir=Et({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,t){1&e&&Ao("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(cu("disabled",t.disabled)("required",t.required),fo("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Qo("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Du([{provide:NC,useExisting:e}]),eo,Ft]}),e}(),RL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[ix],imports:[[CL,XC,YD],CL,XC]}),e}(),PL=function(){var e=function(){return m(function e(){g(this,e),this.changes=new ee,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"},[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),FL={provide:new xi("mat-datepicker-scroll-strategy"),deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},YL=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[PL,FL],imports:[[zd,_M,yC,sT,Fx,YD],cE]}),e}();function jL(e,t){}var qL=m(function e(){g(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}),NL={dialogContainer:_p("dialogContainer",[Sp("void, exit",wp({opacity:0,transform:"scale(0.7)"})),Sp("enter",wp({transform:"none"})),Tp("* => enter",bp("150ms cubic-bezier(0, 0, 0.2, 1)",wp({transform:"none",opacity:1}))),Tp("* => void, * => exit",bp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",wp({opacity:0})))])},HL=function(){var e=function(e){function t(e,n,i,r,s,a){var o;return g(this,t),(o=v(this,t))._elementRef=e,o._focusTrapFactory=n,o._changeDetectorRef=i,o._config=s,o._focusMonitor=a,o._animationStateChanged=new jl,o._elementFocusedBeforeDialogWasOpened=null,o._closeInteractionType=null,o.attachDomPortal=function(e){return o._portalOutlet.hasAttached(),o._portalOutlet.attachDomPortal(e)},o._ariaLabelledBy=s.ariaLabelledBy||null,o._document=r,o}return _(t,e),m(t,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=KS(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=KS())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=KS();return e===t||e.contains(t)}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(HE),yo(sl),yo(ad,8),yo(qL),yo(XE))},e.\u0275dir=Et({type:e,viewQuery:function(e,t){var n;(1&e&&Kl(Px,7),2&e)&&($l(n=Xl())&&(t._portalOutlet=n.first))},features:[eo]}),e}(),BL=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._state="enter",e}return _(t,e),m(t,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}])}(HL);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Oo("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(cu("id",t._id),fo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),du("@dialogContainer",t._state))},features:[eo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&go(0,jL,0,0,"ng-template",0)},directives:[Px],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[NL.dialogContainer]}}),t}(),UL=0,zL=function(){return m(function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+UL++;g(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ee,this._afterClosed=new ee,this._beforeClosed=new ee,this._state=0,n._id=r,n._animationStateChanged.pipe(Rh(function(e){return"opened"===e.state}),Dg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Rh(function(e){return"closed"===e.state}),Dg(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Rh(function(e){return 27===e.keyCode&&!i.disableClose&&!hE(e)})).subscribe(function(e){e.preventDefault(),VL(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():VL(i,"mouse")})},[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Rh(function(e){return"closing"===e.state}),Dg(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}])}();function VL(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var GL=new xi("MatDialogData"),WL=new xi("mat-dialog-default-options"),ZL=new xi("mat-dialog-scroll-strategy"),QL={provide:ZL,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},$L=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l){var c=this;g(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee,this._afterOpenedAtThisLevel=new ee,this._ariaHiddenElements=new Map,this.afterAllClosed=kg(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Mg(void 0))}),this._scrollStrategy=a},[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new qL),t.id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),s=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return n._removeOpenDialog(s)}),this.afterOpened.next(s),r._initializeWithAttachedContent(),s}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Wx({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Ja.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:qL,useValue:t}]}),i=new Lx(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof cl)t.attachTemplatePortal(new Ax(e,null,{$implicit:i.data,dialogRef:r}));else{var s=this._createInjector(i,r,t),a=t.attachComponentPortal(new Lx(e,i.viewContainerRef,s));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(tE,null,Je.Optional))&&r.push({provide:tE,useValue:{value:e.direction,change:Oh()}}),Ja.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Ja),yo(void 0),yo(void 0),yo(Xx),yo(void 0),yo(Oi),yo(Oi),yo(xi))},e.\u0275dir=Et({type:e}),e}(),KL=function(){var e=function(e){function t(e,n,i,r,s,a,o){return g(this,t),v(this,t,[e,n,r,a,o,s,zL,BL,GL])}return _(t,e),m(t)}($L);return e.\u0275fac=function(t){return new(t||e)($i(hC),$i(Ja),$i(kd,8),$i(WL,8),$i(ZL),$i(e,12),$i(Xx))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}(),JL=0,XL=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"},[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=iA(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){VL(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL,8),yo(Iu),yo(KL))},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ao("click",function(e){return t._onButtonClick(e)}),2&e&&fo("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ft]}),e}(),eA=function(){var e=function(){return m(function e(t,n,i){g(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+JL++},[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=iA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL,8),yo(Iu),yo(KL))},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&cu("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),tA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),nA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function iA(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var rA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[KL,QL],imports:[[yC,Fx,YD],YD]}),e}(),sA=function(){var e=function(){return m(function e(){g(this,e),this._vertical=!1,this._inset=!1},[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=oS(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=oS(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(fo("aria-orientation",t.vertical?"vertical":"horizontal"),Qo("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),aA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),oA=0,uA=new xi("CdkAccordion"),lA=function(){var e=function(){return m(function e(){g(this,e),this._stateChanges=new ee,this._openCloseAllActions=new ee,this.id="cdk-accordion-"+oA++,this._multi=!1},[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=oS(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Du([{provide:uA,useExisting:e}]),Ft]}),e}(),cA=0,dA=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=Y.EMPTY,this.closed=new jl,this.opened=new jl,this.destroyed=new jl,this.expandedChange=new jl,this.id="cdk-accordion-child-"+cA++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())},[{key:"expanded",get:function(){return this._expanded},set:function(e){e=oS(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uA,12),yo(sl),yo(aE))},e.\u0275dir=Et({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Du([{provide:uA,useValue:void 0}])]}),e}(),hA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({}),e}(),pA=["body"];function fA(e,t){}var mA=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],gA=["mat-expansion-panel-header","*","mat-action-row"];function vA(e,t){1&e&&So(0,"span",2),2&e&&_o("@indicatorRotate",Fo()._getExpandedState())}var yA=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_A=["mat-panel-title","mat-panel-description","*"],bA=new xi("MAT_ACCORDION"),kA="225ms cubic-bezier(0.4,0.0,0.2,1)",wA={indicatorRotate:_p("indicatorRotate",[Sp("collapsed, void",wp({transform:"rotate(0deg)"})),Sp("expanded",wp({transform:"rotate(180deg)"})),Tp("expanded <=> collapsed, void => collapsed",bp(kA))]),bodyExpansion:_p("bodyExpansion",[Sp("collapsed, void",wp({height:"0px",visibility:"hidden"})),Sp("expanded",wp({height:"*",visibility:"visible"})),Tp("expanded <=> collapsed, void => collapsed",bp(kA))])},SA=function(){var e=m(function e(t){g(this,e),this._template=t});return e.\u0275fac=function(t){return new(t||e)(yo(cl))},e.\u0275dir=Et({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),EA=0,TA=new xi("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),DA=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e,n,i]))._viewContainerRef=r,u._animationMode=a,u._hideToggle=!1,u.afterExpand=new jl,u.afterCollapse=new jl,u._inputChanges=new ee,u._headerId="mat-expansion-panel-header-"+EA++,u._bodyAnimationDone=new ee,u.accordion=e,u._document=s,u._bodyAnimationDone.pipe(wS(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())}),o&&(u.hideToggle=o.hideToggle),u}return _(t,e),m(t,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=oS(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Mg(null),Rh(function(){return e.expanded&&!e._portal}),Dg(1)).subscribe(function(){e._portal=new Ax(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}])}(dA);return e.\u0275fac=function(t){return new(t||e)(yo(bA,12),yo(sl),yo(aE),yo(gl),yo(ad),yo(rg,8),yo(TA,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,SA,5),2&e)&&($l(i=Xl())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Kl(pA,5),2&e)&&($l(n=Xl())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Qo("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Du([{provide:bA,useValue:void 0}]),eo,Ft],ngContentSelectors:gA,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(jo(mA),qo(0),ko(1,"div",0,1),Ao("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),ko(3,"div",2),qo(4,1),go(5,fA,0,0,"ng-template",3),wo(),qo(6,2),wo()),2&e&&(Ns(1),_o("@bodyExpansion",t._getExpandedState())("id",t.id),fo("aria-labelledby",t._headerId),Ns(4),_o("cdkPortalOutlet",t._portal))},directives:[Px],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[wA.bodyExpansion]},changeDetection:0}),e}(),xA=HD(m(function e(){g(this,e)})),CA=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;g(this,t),(u=v(this,t)).panel=e,u._element=n,u._focusMonitor=i,u._changeDetectorRef=r,u._animationMode=a,u._parentChangeSubscription=Y.EMPTY;var l=e.accordion?e.accordion._stateChanges.pipe(Rh(function(e){return!(!e.hideToggle&&!e.togglePosition)})):_g;return u.tabIndex=parseInt(o||"")||0,u._parentChangeSubscription=ke(e.opened,e.closed,l,e._inputChanges.pipe(Rh(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return u._changeDetectorRef.markForCheck()}),e.closed.pipe(Rh(function(){return e._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),s&&(u.expandedHeight=s.expandedHeight,u.collapsedHeight=s.collapsedHeight),u}return _(t,e),m(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:hE(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}])}(xA);return e.\u0275fac=function(t){return new(t||e)(yo(DA,1),yo(Iu),yo(XE),yo(sl),yo(TA,8),yo(rg,8),ki("tabindex"))},e.\u0275cmp=yt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(fo("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Zo("height",t._getHeaderHeight()),Qo("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[eo],ngContentSelectors:_A,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(jo(yA),ko(0,"span",0),qo(1),qo(2,1),qo(3,2),wo(),go(4,vA,1,1,"span",1)),2&e&&(Ns(4),_o("ngIf",t._showToggle()))},directives:[Od],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[wA.indicatorRotate]},changeDetection:0}),e}(),MA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),LA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),AA=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._ownHeaders=new Nl,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _(t,e),m(t,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=oS(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Mg(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new FE(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}])}(lA);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,CA,5),2&e)&&($l(i=Xl())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Du([{provide:bA,useExisting:t}]),eo]}),t}(),OA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YD,hA,Fx]]}),e}(),IA=["*"],RA=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n",PA=function(){return m(function e(){g(this,e),this.columnIndex=0,this.rowIndex=0},[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,d(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}},{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(function(e){return n._trackTile(e)})}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new FA(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t-1?new BA(e):new HA(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new PA);var t=this._tileCoordinator,n=this._tiles.filter(function(t){return!t._gridList||t._gridList===e}),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,i),n.forEach(function(n,i){var r=t.positions[i];e._tileStyler.setStyle(n,r.row,r.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,jA,5),2&e)&&($l(i=Xl())&&(t._tiles=i))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&fo("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Du([{provide:YA,useExisting:e}])],ngContentSelectors:IA,decls:2,vars:0,template:function(e,t){1&e&&(jo(),ko(0,"div"),qo(1),wo())},styles:[RA],encapsulation:2,changeDetection:0}),e}(),WA=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[ax,YD],ax,YD]}),e}(),ZA=["*"],QA=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],$A=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],KA=jD(ND(function(){return m(function e(){g(this,e)})}())),JA=ND(function(){return m(function e(){g(this,e)})}()),XA=new xi("MatList"),eO=new xi("MatNavList"),tO=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._elementRef=e,n._stateChanges=new ee,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return _(t,e),m(t,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}])}(KA);return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275cmp=yt({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Du([{provide:XA,useExisting:e}]),eo,Ft],ngContentSelectors:ZA,decls:1,vars:0,template:function(e,t){1&e&&(jo(),qo(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),e}(),nO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),iO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),rO=function(){var e=function(e){function t(e,n,i,r){var s;g(this,t),(s=v(this,t))._element=e,s._isInteractiveList=!1,s._destroyed=new ee,s._disabled=!1,s._isInteractiveList=!!(i||r&&"action-list"===r._getListType()),s._list=i||r;var a=s._getHostElement();return"button"===a.nodeName.toLowerCase()&&!a.hasAttribute("type")&&a.setAttribute("type","button"),s._list&&s._list._stateChanges.pipe(OS(s._destroyed)).subscribe(function(){n.markForCheck()}),s}return _(t,e),m(t,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=oS(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Mg(e)).subscribe(function(e){var i=e.length;sx(t,"".concat(n,"-2-line"),!1),sx(t,"".concat(n,"-3-line"),!1),sx(t,"".concat(n,"-multi-line"),!1),2===i||3===i?sx(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&sx(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}])}(JA);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(eO,8),yo(XA,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,nO,5),Jl(n,iO,5),Jl(n,rx,5)),2&e)&&($l(i=Xl())&&(t._avatar=i.first),$l(i=Xl())&&(t._icon=i.first),$l(i=Xl())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Qo("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[eo],ngContentSelectors:$A,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(jo(QA),ko(0,"div",0),So(1,"div",1),qo(2),ko(3,"div",2),qo(4,1),wo(),qo(5,2),wo()),2&e&&(Ns(1),_o("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[fx],encapsulation:2,changeDetection:0}),e}(),sO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[ax,mx,YD,vx,zd],ax,YD,vx,aA]}),e}(),aO=["mat-menu-item",""];function oO(e,t){1&e&&(Yn(),ko(0,"svg",2),So(1,"polygon",3),wo())}var uO=["*"];function lO(e,t){if(1&e){var n=xo();ko(0,"div",0),Ao("keydown",function(e){return ln(n),Fo()._handleKeydown(e)})("click",function(){return ln(n),Fo().closed.emit("click")})("@transformMenu.start",function(e){return ln(n),Fo()._onAnimationStart(e)})("@transformMenu.done",function(e){return ln(n),Fo()._onAnimationDone(e)}),ko(1,"div",1),qo(2),wo(),wo()}if(2&e){var i=Fo();_o("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),fo("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var cO={transformMenu:_p("transformMenu",[Sp("void",wp({opacity:0,transform:"scale(0.8)"})),Tp("void => enter",bp("120ms cubic-bezier(0, 0, 0.2, 1)",wp({opacity:1,transform:"scale(1)"}))),Tp("* => void",bp("100ms 25ms linear",wp({opacity:0})))]),fadeInItems:_p("fadeInItems",[Sp("showing",wp({opacity:1})),Tp("void => *",[wp({opacity:0}),bp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dO=new xi("MatMenuContent"),hO=new xi("MAT_MENU_PANEL"),pO=ND(jD(function(){return m(function e(){g(this,e)})}())),fO=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._elementRef=e,a._focusMonitor=i,a._parentMenu=r,a._changeDetectorRef=s,a.role="menuitem",a._hovered=new ee,a._focused=new ee,a._highlighted=!1,a._triggersSubmenu=!1,r&&r.addItem&&r.addItem(y(a)),a}return _(t,e),m(t,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Mg(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(mO))},e.\u0275dir=Et({type:e,contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,dO,5),Jl(n,fO,5),Jl(n,fO,4)),2&e)&&($l(i=Xl())&&(t.lazyContent=i.first),$l(i=Xl())&&(t._allItems=i),$l(i=Xl())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&Kl(cl,5),2&e)&&($l(n=Xl())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),yO=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e,n,i]))._elevationPrefix="mat-elevation-z",r._baseElevation=4,r}return _(t,e),m(t)}(vO);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(mO))},e.\u0275cmp=yt({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&fo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Du([{provide:hO,useExisting:e}]),eo],ngContentSelectors:uO,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(jo(),go(0,lO,3,6,"ng-template"))},directives:[Cd],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[cO.transformMenu,cO.fadeInItems]},changeDetection:0}),e}(),_O=new xi("mat-menu-scroll-strategy"),bO={provide:_O,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},kO=QS({passive:!0}),wO=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){var l=this;g(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=o,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Y.EMPTY,this._hoverSubscription=Y.EMPTY,this._menuCloseSubscription=Y.EMPTY,this._handleTouchStart=function(e){UE(e)||(l._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new jl,this.onMenuOpen=this.menuOpened,this.menuClosed=new jl,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof vO?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,kO),a&&(a._triggersSubmenu=this.triggersSubmenu())},[{key:"_ariaExpanded",get:function(){return this.menuOpen||null}},{key:"_ariaControl",get:function(){return this.menuOpen?this.menu.panelId:null}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,kO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof vO&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof vO?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Rh(function(e){return"void"===e.toState}),Dg(1),OS(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Wx({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=T("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=T("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),s=r[0],a=r[1],o=s,u=a,l=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(o="top"===s?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:d},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:d},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-d},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ke(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Oh(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Rh(function(t){return t!==e._menuItemInstance}),Rh(function(){return e._menuOpen})):Oh(),n)}},{key:"_handleMousedown",value:function(e){BE(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Rh(function(t){return t===e._menuItemInstance&&!t.disabled}),eM(0,kS)).subscribe(function(){e._openedBy="mouse",e.menu instanceof vO&&e.menu._isAnimating?e.menu._animationDone.pipe(Dg(1),eM(0,kS),OS(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ax(this.menu.templateRef,this._viewContainerRef)),this._portal}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(gl),yo(_O),yo(hO,8),yo(fO,10),yo(tE,8),yo(XE))},e.\u0275dir=Et({type:e,hostVars:3,hostBindings:function(e,t){1&e&&Ao("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&fo("aria-haspopup",t._ariaHaspopup)("aria-expanded",t._ariaExpanded)("aria-controls",t._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),e}(),SO=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(wO);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[eo]}),t}(),EO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[bO],imports:[[zd,YD,mx,yC],cE,YD]}),e}(),TO=["trigger"],DO=["panel"];function xO(e,t){if(1&e&&(ko(0,"span",8),au(1),wo()),2&e){var n=Fo();Ns(1),ou(n.placeholder)}}function CO(e,t){if(1&e&&(ko(0,"span",12),au(1),wo()),2&e){var n=Fo(2);Ns(1),ou(n.triggerValue)}}function MO(e,t){1&e&&qo(0,0,["*ngSwitchCase","true"])}function LO(e,t){1&e&&(ko(0,"span",9),go(1,CO,2,1,"span",10),go(2,MO,1,0,"ng-content",11),wo()),2&e&&(_o("ngSwitch",!!Fo().customTrigger),Ns(2),_o("ngSwitchCase",!0))}function AO(e,t){if(1&e){var n=xo();ko(0,"div",13),ko(1,"div",14,15),Ao("@transformPanel.done",function(e){return ln(n),Fo()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return ln(n),Fo()._handleKeydown(e)}),qo(3,1),wo(),wo()}if(2&e){var i=Fo();_o("@transformPanelWrap",void 0),Ns(1),function(e,t,n){!function(e,t,n,i){var r=un(),s=bn(2);r.firstUpdatePass&&Xo(r,null,s,i);var a=on();if(n!==qs&&ho(a,s,n)){var o=r.data[Rn()];if(su(o,i)&&!Jo(r,s)){var u=o.classesWithoutHost;null!==u&&(n=Ie(u,n||"")),bo(r,o,a,n,i)}else!function(e,t,n,i,r,s,a,o){r===qs&&(r=lt);for(var u=0,l=0,c=0 void",xp("@transformPanel",[Dp()],{optional:!0}))]),transformPanel:_p("transformPanel",[Sp("void",wp({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Sp("showing",wp({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Sp("showing-multiple",wp({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Tp("void => *",bp("120ms cubic-bezier(0, 0, 0.2, 1)")),Tp("* => void",bp("100ms 25ms linear",wp({opacity:0})))])},PO=0,FO=new xi("mat-select-scroll-strategy"),YO=new xi("MAT_SELECT_CONFIG"),jO={provide:FO,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qO=m(function e(t,n){g(this,e),this.source=t,this.value=n}),NO=ND(HD(jD(BD(function(){return m(function e(t,n,i,r,s){g(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=s})}())))),HO=new xi("MatSelectTrigger"),BO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-select-trigger"]],features:[Du([{provide:HO,useExisting:e}])]}),e}(),UO=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c,h,p,f,m){var _,b,k,w;return g(this,t),(_=v(this,t,[s,r,o,u,c]))._viewportRuler=e,_._changeDetectorRef=n,_._ngZone=i,_._dir=a,_._parentFormField=l,_._liveAnnouncer=f,_._defaultOptions=m,_._panelOpen=!1,_._compareWith=function(e,t){return e===t},_._uid="mat-select-"+PO++,_._triggerAriaLabelledBy=null,_._destroy=new ee,_._onChange=function(){},_._onTouched=function(){},_._valueId="mat-select-value-"+PO++,_._panelDoneAnimatingStream=new ee,_._overlayPanelClass=(null===(b=_._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",_._focused=!1,_.controlType="mat-select",_._required=!1,_._multiple=!1,_._disableOptionCentering=null!==(w=null===(k=_._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,_.ariaLabel="",_.optionSelectionChanges=kg(function(){var e=_.options;return e?e.changes.pipe(Mg(e),wg(function(){return ke.apply(void 0,d(e.map(function(e){return e.onSelectionChange})))})):_._ngZone.onStable.pipe(Dg(1),wg(function(){return _.optionSelectionChanges}))}),_.openedChange=new jl,_._openedStream=_.openedChange.pipe(Rh(function(e){return e}),ie(function(){})),_._closedStream=_.openedChange.pipe(Rh(function(e){return!e}),ie(function(){})),_.selectionChange=new jl,_.valueChange=new jl,_.ngControl&&(_.ngControl.valueAccessor=y(_)),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(_._typeaheadDebounceInterval=m.typeaheadDebounceInterval),_._scrollStrategyFactory=p,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(h)||0,_.id=_.id,_}return _(t,e),m(t,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=oS(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=oS(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=oS(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=uS(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new sE(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wS(),OS(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(OS(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Mg(null),OS(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!hE(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var s=this.selected;r.onKeydown(e);var a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||hE(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var s=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(s?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe(Dg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new PE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(OS(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(OS(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=ke(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(OS(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),ke.apply(void 0,d(this.options.map(function(e){return e._stateChanges}))).pipe(OS(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}])}(NO);return e.\u0275fac=function(t){return new(t||e)(yo(lE),yo(sl),yo(Cc),yo(ix),yo(Iu),yo(tE,8),yo(Nw,8),yo($w,8),yo(KC,8),yo(lw,10),ki("tabindex"),yo(FO),yo($E),yo(YO,8))},e.\u0275dir=Et({type:e,viewQuery:function(e,t){var n;(1&e&&(Kl(TO,5),Kl(DO,5),Kl(gC,5)),2&e)&&($l(n=Xl())&&(t.trigger=n.first),$l(n=Xl())&&(t.panel=n.first),$l(n=Xl())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[eo,Ft]}),e}(),zO=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _(t,e),m(t,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(E(t.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(OS(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(E(t.prototype),"_canOpen",this).call(this)&&(h(E(t.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Dg(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=xx(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function(e,t,n,i){return en+256?Math.max(0,e-256+t):n}((e+t)*n,n,this.panel.nativeElement.scrollTop)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(E(t.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new qO(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var s=this._selectionModel.selected[0]||this.options.first;e=s&&s.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),o=t.right+e-n.width+(i?0:r);a>0?e+=a+8:o>0&&(e-=o+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-s))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):s>i?this._adjustPanelDown(s,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=xx(e,this.options,this.optionGroups);var s=i/2;this._scrollTop=this._calculateOverlayScroll(e,s,r),this._offsetY=this._calculateOverlayOffsetY(e,s,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}])}(UO);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,HO,5),Jl(n,Dx,5),Jl(n,wx,5)),2&e)&&($l(i=Xl())&&(t.customTrigger=i.first),$l(i=Xl())&&(t.options=i),$l(i=Xl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Ao("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(fo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Qo("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Du([{provide:NC,useExisting:t},{provide:yx,useExisting:t}]),eo],ngContentSelectors:IO,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(jo(OO),ko(0,"div",0,1),Ao("click",function(){return t.toggle()}),ko(3,"div",2),go(4,xO,2,1,"span",3),go(5,LO,3,2,"span",4),wo(),ko(6,"div",5),So(7,"div",6),wo(),wo(),go(8,AO,4,14,"ng-template",7),Ao("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=vo(1);fo("aria-owns",t.panelOpen?t.id+"-panel":null),Ns(3),_o("ngSwitch",t.empty),fo("id",t._valueId),Ns(1),_o("ngSwitchCase",!0),Ns(1),_o("ngSwitchCase",!1),Ns(3),_o("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[mC,Fd,Yd,gC,jd,Cd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[RO.transformPanelWrap,RO.transformPanel]},changeDetection:0}),t}(),VO=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[jO],imports:[[zd,yC,Cx,YD],cE,XC,Cx,YD]}),e}(),GO={tooltipState:_p("state",[Sp("initial, void, hidden",wp({opacity:0,transform:"scale(0)"})),Sp("visible",wp({transform:"scale(1)"})),Tp("* => visible",bp("200ms cubic-bezier(0, 0, 0.2, 1)",Ep([wp({opacity:0,transform:"scale(0)",offset:0}),wp({opacity:.5,transform:"scale(0.99)",offset:.5}),wp({opacity:1,transform:"scale(1)",offset:1})]))),Tp("* => hidden",bp("100ms cubic-bezier(0, 0, 0.2, 1)",wp({opacity:0})))])},WO="tooltip-panel",ZO=QS({passive:!0}),QO=new xi("mat-tooltip-scroll-strategy"),$O={provide:QO,deps:[hC],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},KO=new xi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),JO=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d,h){var p=this;g(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=u,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ee,this._handleKeydown=function(e){p._isTooltipVisible()&&27===e.keyCode&&!hE(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=l,this._document=h,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.change.pipe(OS(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),s.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})},[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=oS(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(OS(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=T(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ZO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Lx(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(OS(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(OS(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(WO),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(OS(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe(OS(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Dg(1),OS(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var s=this._overlayRef;if(s){var a="".concat(this._cssClassPrefix,"-").concat(WO,"-");s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=T(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ZO)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(uE),yo(gl),yo(Cc),yo(VS),yo(AE),yo(XE),yo(void 0),yo(tE),yo(void 0),yo(ad))},e.\u0275dir=Et({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),XO=function(){var e=function(e){function t(e,n,i,r,s,a,o,u,l,c,d,h){var p;return g(this,t),(p=v(this,t,[e,n,i,r,s,a,o,u,l,c,d,h]))._tooltipComponent=tI,p}return _(t,e),m(t)}(JO);return e.\u0275fac=function(t){return new(t||e)(yo(hC),yo(Iu),yo(uE),yo(gl),yo(Cc),yo(VS),yo(AE),yo(XE),yo(QO),yo(tE,8),yo(KO,8),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[eo]}),e}(),eI=function(){var e=function(){return m(function e(t){g(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ee},[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(sl))},e.\u0275dir=Et({type:e}),e}(),tI=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t,[e]))._breakpointObserver=n,i._isHandset=i._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),i}return _(t,e),m(t)}(eI);return e.\u0275fac=function(t){return new(t||e)(yo(sl),yo(dM))},e.\u0275cmp=yt({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Zo("zoom","visible"===t._visibility?1:null)},features:[eo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ko(0,"div",0),Ao("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Pl(1,"async"),au(2),wo()),2&e)&&(Qo("mat-tooltip-handset",null==(n=Fl(1,5,t._isHandset))?null:n.matches),_o("ngClass",t.tooltipClass)("@state",t._visibility),Ns(2),ou(t.message))},directives:[Cd],pipes:[Ud],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[GO.tooltipState]},changeDetection:0}),e}(),nI=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[$O],imports:[[sT,zd,yC,YD],YD,cE]}),e}();function iI(e,t){if(1&e&&(ko(0,"mat-option",19),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),uu(" ",n," ")}}function rI(e,t){if(1&e){var n=xo();ko(0,"mat-form-field",16),ko(1,"mat-select",17),Ao("selectionChange",function(e){return ln(n),Fo(2)._changePageSize(e.value)}),go(2,iI,2,2,"mat-option",18),wo(),wo()}if(2&e){var i=Fo(2);_o("appearance",i._formFieldAppearance)("color",i.color),Ns(1),_o("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Ns(1),_o("ngForOf",i._displayedPageSizeOptions)}}function sI(e,t){if(1&e&&(ko(0,"div",20),au(1),wo()),2&e){var n=Fo(2);Ns(1),ou(n.pageSize)}}function aI(e,t){if(1&e&&(ko(0,"div",12),ko(1,"div",13),au(2),wo(),go(3,rI,3,6,"mat-form-field",14),go(4,sI,2,1,"div",15),wo()),2&e){var n=Fo();Ns(2),uu(" ",n._intl.itemsPerPageLabel," "),Ns(1),_o("ngIf",n._displayedPageSizeOptions.length>1),Ns(1),_o("ngIf",n._displayedPageSizeOptions.length<=1)}}function oI(e,t){if(1&e){var n=xo();ko(0,"button",21),Ao("click",function(){return ln(n),Fo().firstPage()}),Yn(),ko(1,"svg",7),So(2,"path",22),wo(),wo()}if(2&e){var i=Fo();_o("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),fo("aria-label",i._intl.firstPageLabel)}}function uI(e,t){if(1&e){var n=xo();Yn(),jn(),ko(0,"button",23),Ao("click",function(){return ln(n),Fo().lastPage()}),Yn(),ko(1,"svg",7),So(2,"path",24),wo(),wo()}if(2&e){var i=Fo();_o("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),fo("aria-label",i._intl.lastPageLabel)}}var lI=function(){var e=m(function e(){g(this,e),this.changes=new ee,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),cI={provide:lI,deps:[[new ir,new rr,lI]],useFactory:function(e){return e||new lI}},dI=new xi("MAT_PAGINATOR_DEFAULT_OPTIONS"),hI=jD(UD(function(){return m(function e(){g(this,e)})}())),pI=function(){var e=function(e){function t(e,n,i){var r;if(g(this,t),(r=v(this,t))._intl=e,r._changeDetectorRef=n,r._pageIndex=0,r._length=0,r._pageSizeOptions=[],r._hidePageSize=!1,r._showFirstLastButtons=!1,r.page=new jl,r._intlChanges=e.changes.subscribe(function(){return r._changeDetectorRef.markForCheck()}),i){var s=i.pageSize,a=i.pageSizeOptions,o=i.hidePageSize,u=i.showFirstLastButtons;null!=s&&(r._pageSize=s),null!=a&&(r._pageSizeOptions=a),null!=o&&(r._hidePageSize=o),null!=u&&(r._showFirstLastButtons=u)}return y(r)}return _(t,e),m(t,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(uS(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=uS(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(uS(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return uS(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=oS(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=oS(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex visible",bp("150ms cubic-bezier(0, 0, 0.2, 1)")),Tp("* => void, * => hidden",bp("75ms cubic-bezier(0.4, 0.0, 1, 1)",wp({opacity:0})))])},cR=function(){var e=function(e){function t(e,n,i,r,s){var a;return g(this,t),(a=v(this,t))._ngZone=e,a._elementRef=n,a._changeDetectorRef=i,a._platform=r,a.snackBarConfig=s,a._announceDelay=150,a._destroyed=!1,a._onAnnounce=new ee,a._onExit=new ee,a._onEnter=new ee,a._animationState="void",a.attachDomPortal=function(e){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(e)},a._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",a._platform.FIREFOX&&("polite"===a._live&&(a._role="status"),"assertive"===a._live&&(a._role="alert")),a}return _(t,e),m(t,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,n=e.toState;if(("void"===n&&"void"!==t||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run(function(){i.next(),i.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(Dg(1)).subscribe(function(){e._onExit.next(),e._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var e=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){e._announceTimeoutId=setTimeout(function(){var t=e._elementRef.nativeElement.querySelector("[aria-hidden]"),n=e._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){var i=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==i||i.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}])}(Ix);return e.\u0275fac=function(t){return new(t||e)(yo(Cc),yo(Iu),yo(sl),yo(VS),yo(sR))},e.\u0275cmp=yt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;(1&e&&Kl(Px,7),2&e)&&($l(n=Xl())&&(t._portalOutlet=n.first))},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&Oo("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&du("@state",t._animationState)},features:[eo],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(ko(0,"div",0),go(1,iR,0,0,"ng-template",1),wo(),So(2,"div")),2&e&&(Ns(2),fo("aria-live",t._live)("role",t._role))},directives:[Px],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[lR.snackBarState]}}),e}(),dR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[yC,Fx,zd,_M,YD],YD]}),e}(),hR=new xi("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new sR}}),pR=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=uR,this.snackBarContainerComponent=cR,this.handsetCssClass="mat-snack-bar-handset"},[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=Ja.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sR,useValue:t}]}),i=new Lx(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new sR),this._defaultConfig),t),r=this._createOverlay(i),s=this._attachSnackBarContainer(r,i),a=new oR(s,r);if(e instanceof cl){var o=new Ax(e,null,{$implicit:i.data,snackBarRef:a});a.instance=s.attachTemplatePortal(o)}else{var u=this._createInjector(i,a),l=new Lx(e,void 0,u),c=s.attachComponentPortal(l);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(OS(r.detachments())).subscribe(function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),i.announcementMessage&&s._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe(function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(t.duration)})}},{key:"_createOverlay",value:function(e){var t=new Wx;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,s=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):s?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return Ja.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:oR,useValue:t},{provide:rR,useValue:e.data}]})}}])}();return e.\u0275fac=function(t){return new(t||e)($i(hC),$i($E),$i(Ja),$i(dM),$i(e,12),$i(hR))},e.\u0275prov=Be({factory:function(){return new e($i(hC),$i($E),$i(ja),$i(dM),$i(e,12),$i(hR))},token:e,providedIn:dR}),e}(),fR=["mat-sort-header",""];function mR(e,t){if(1&e){var n=xo();ko(0,"div",3),Ao("@arrowPosition.start",function(){return ln(n),Fo()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return ln(n),Fo()._disableViewStateAnimation=!1}),So(1,"div",4),ko(2,"div",5),So(3,"div",6),So(4,"div",7),So(5,"div",8),wo(),wo()}if(2&e){var i=Fo();_o("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Ns(2),_o("@indicator",i._getArrowDirectionState()),Ns(1),_o("@leftPointer",i._getArrowDirectionState()),Ns(1),_o("@rightPointer",i._getArrowDirectionState())}}var gR=["*"],vR=new xi("MAT_SORT_DEFAULT_OPTIONS"),yR=UD(jD(function(){return m(function e(){g(this,e)})}())),_R=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t))._defaultOptions=e,n.sortables=new Map,n._stateChanges=new ee,n.start="asc",n._direction="",n.sortChange=new jl,n}return _(t,e),m(t,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=oS(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),s=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=s.indexOf(this.direction)+1;return a>=s.length&&(a=0),s[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}])}(yR);return e.\u0275fac=function(t){return new(t||e)(yo(vR,8))},e.\u0275dir=Et({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[eo,Ft]}),e}(),bR=RD.ENTERING+" "+ID.STANDARD_CURVE,kR={indicator:_p("indicator",[Sp("active-asc, asc",wp({transform:"translateY(0px)"})),Sp("active-desc, desc",wp({transform:"translateY(10px)"})),Tp("active-asc <=> active-desc",bp(bR))]),leftPointer:_p("leftPointer",[Sp("active-asc, asc",wp({transform:"rotate(-45deg)"})),Sp("active-desc, desc",wp({transform:"rotate(45deg)"})),Tp("active-asc <=> active-desc",bp(bR))]),rightPointer:_p("rightPointer",[Sp("active-asc, asc",wp({transform:"rotate(45deg)"})),Sp("active-desc, desc",wp({transform:"rotate(-45deg)"})),Tp("active-asc <=> active-desc",bp(bR))]),arrowOpacity:_p("arrowOpacity",[Sp("desc-to-active, asc-to-active, active",wp({opacity:1})),Sp("desc-to-hint, asc-to-hint, hint",wp({opacity:.54})),Sp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",wp({opacity:0})),Tp("* => asc, * => desc, * => active, * => hint, * => void",bp("0ms")),Tp("* <=> *",bp(bR))]),arrowPosition:_p("arrowPosition",[Tp("* => desc-to-hint, * => desc-to-active",bp(bR,Ep([wp({transform:"translateY(-25%)"}),wp({transform:"translateY(0)"})]))),Tp("* => hint-to-desc, * => active-to-desc",bp(bR,Ep([wp({transform:"translateY(0)"}),wp({transform:"translateY(25%)"})]))),Tp("* => asc-to-hint, * => asc-to-active",bp(bR,Ep([wp({transform:"translateY(25%)"}),wp({transform:"translateY(0)"})]))),Tp("* => hint-to-asc, * => active-to-asc",bp(bR,Ep([wp({transform:"translateY(0)"}),wp({transform:"translateY(-25%)"})]))),Sp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",wp({transform:"translateY(0)"})),Sp("hint-to-desc, active-to-desc, desc",wp({transform:"translateY(-25%)"})),Sp("hint-to-asc, active-to-asc, asc",wp({transform:"translateY(25%)"}))]),allowChildren:_p("allowChildren",[Tp("* <=> *",[xp("@*",Dp(),{optional:!0})])])},wR=function(){var e=m(function e(){g(this,e),this.changes=new ee});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({factory:function(){return new e},token:e,providedIn:"root"}),e}(),SR={provide:wR,deps:[[new ir,new rr,wR]],useFactory:function(e){return e||new wR}},ER=jD(function(){return m(function e(){g(this,e)})}()),TR=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t))._intl=e,u._changeDetectorRef=n,u._sort=i,u._columnDef=r,u._focusMonitor=s,u._elementRef=a,u._ariaDescriber=o,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._sortActionDescription="Sort",u._handleStateChanges(),u}return _(t,e),m(t,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(e){this._updateSortActionDescription(e)}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=oS(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(e){var t,n;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(n=this._ariaDescriber)||void 0===n||n.describe(this._sortButton,e)),this._sortActionDescription=e}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=ke(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),("hint"===e._viewState.toState||"active"===e._viewState.toState)&&(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}])}(ER);return e.\u0275fac=function(t){return new(t||e)(yo(wR),yo(sl),yo(_R,8),yo("MAT_SORT_HEADER_COLUMN_DEF",8),yo(XE),yo(Iu),yo(AE,8))},e.\u0275cmp=yt({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Ao("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(fo("aria-sort",t._getAriaSortAttribute()),Qo("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[eo],attrs:fR,ngContentSelectors:gR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),ko(1,"div",1),qo(2),wo(),go(3,mR,6,6,"div",2),wo()),2&e&&(Qo("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),fo("tabindex",t._isDisabled()?null:0),Ns(3),_o("ngIf",t._renderArrow()))},directives:[Od],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[kR.indicator,kR.leftPointer,kR.rightPointer,kR.arrowOpacity,kR.arrowPosition,kR.allowChildren]},changeDetection:0}),e}(),DR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({providers:[SR],imports:[[zd,YD]]}),e}(),xR=[[["caption"]],[["colgroup"],["col"]]],CR=["caption","colgroup, col"],MR=function(){var e,t=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return _(t,e),m(t)}(TD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[Du([{provide:oE,useClass:rE},{provide:TD,useExisting:t},{provide:ZT,useExisting:t},{provide:rD,useClass:sD},{provide:bD,useValue:null}]),eo],ngContentSelectors:CR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(jo(xR),qo(0),qo(1,1),Do(2,0),Do(3,1),Do(4,2),Do(5,3))},directives:[wD,kD,ED,SD],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t}(),LR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(QT);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matCellDef",""]],features:[Du([{provide:QT,useExisting:t}]),eo]}),t}(),AR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}($T);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matHeaderCellDef",""]],features:[Du([{provide:$T,useExisting:t}]),eo]}),t}(),OR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){h(E(t.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}])}(XT);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Du([{provide:XT,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),eo]}),t}(),IR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(tD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[eo]}),t}(),RR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(nD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[eo]}),t}(),PR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(lD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Du([{provide:lD,useExisting:t}]),eo]}),t}(),FR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(pD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275dir=Et({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Du([{provide:pD,useExisting:t}]),eo]}),t}(),YR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(mD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Du([{provide:mD,useExisting:t}]),eo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Do(0,0)},directives:[fD],encapsulation:2}),t}(),jR=function(){var e,t=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t)}(gD);return t.\u0275fac=function(n){return(e||(e=_i(t)))(n||t)},t.\u0275cmp=yt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Du([{provide:gD,useExisting:t}]),eo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Do(0,0)},directives:[fD],encapsulation:2}),t}(),qR=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[xD,YD],YD]}),e}();function NR(e,t){1&e&&qo(0)}var HR=["*"];function BR(e,t){}var UR=function(e){return{animationDuration:e}},zR=function(e,t){return{value:e,params:t}},VR=["tabBodyWrapper"],GR=["tabHeader"];function WR(e,t){}function ZR(e,t){1&e&&go(0,WR,0,0,"ng-template",9),2&e&&_o("cdkPortalOutlet",Fo().$implicit.templateLabel)}function QR(e,t){1&e&&au(0),2&e&&ou(Fo().$implicit.textLabel)}function $R(e,t){if(1&e){var n=xo();ko(0,"div",6),Ao("click",function(){var e=ln(n),t=e.$implicit,i=e.index,r=Fo(),s=vo(1);return r._handleClick(t,s,i)})("cdkFocusChange",function(e){var t=ln(n).index;return Fo()._tabFocusChanged(e,t)}),ko(1,"div",7),go(2,ZR,1,1,"ng-template",8),go(3,QR,1,1,"ng-template",8),wo(),wo()}if(2&e){var i=t.$implicit,r=t.index,s=Fo();Qo("mat-tab-label-active",s.selectedIndex==r),_o("id",s._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||s.disableRipple),fo("tabIndex",s._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(r))("aria-selected",s.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Ns(2),_o("ngIf",i.templateLabel),Ns(1),_o("ngIf",!i.templateLabel)}}function KR(e,t){if(1&e){var n=xo();ko(0,"mat-tab-body",10),Ao("_onCentered",function(){return ln(n),Fo()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return ln(n),Fo()._setTabBodyWrapperHeight(e)}),wo()}if(2&e){var i=t.$implicit,r=t.index,s=Fo();Qo("mat-tab-body-active",s.selectedIndex===r),_o("id",s._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",s.animationDuration),fo("tabindex",null!=s.contentTabIndex&&s.selectedIndex===r?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(r))}}var JR=["tabListContainer"],XR=["tabList"],eP=["nextPaginator"],tP=["previousPaginator"],nP=new xi("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),iP=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r},[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(Cc),yo(nP),yo(rg,8))},e.\u0275dir=Et({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),rP=new xi("MatTabContent"),sP=new xi("MatTabLabel"),aP=new xi("MAT_TAB"),oP=jD(function(){return m(function e(){g(this,e)})}()),uP=new xi("MAT_TAB_GROUP"),lP=function(){var e=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t))._viewContainerRef=e,i._closestTabGroup=n,i.textLabel="",i._contentPortal=null,i._stateChanges=new ee,i.position=null,i.origin=null,i.isActive=!1,i}return _(t,e),m(t,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ax(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&e._closestTab===this&&(this._templateLabel=e)}}])}(oP);return e.\u0275fac=function(t){return new(t||e)(yo(gl),yo(uP,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;(1&e&&(Jl(n,sP,5),Jl(n,rP,7,cl)),2&e)&&($l(i=Xl())&&(t.templateLabel=i.first),$l(i=Xl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Kl(cl,7),2&e)&&($l(n=Xl())&&(t._implicitContent=n.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Du([{provide:aP,useExisting:e}]),eo,Ft],ngContentSelectors:HR,decls:1,vars:0,template:function(e,t){1&e&&(jo(),go(0,NR,1,0,"ng-template"))},encapsulation:2}),e}(),cP={translateTab:_p("translateTab",[Sp("center, void, left-origin-center, right-origin-center",wp({transform:"none"})),Sp("left",wp({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Sp("right",wp({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Tp("* => left, * => right, left => center, right => center",bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Tp("void => left-origin-center",[wp({transform:"translate3d(-100%, 0, 0)"}),bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Tp("void => right-origin-center",[wp({transform:"translate3d(100%, 0, 0)"}),bp("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},dP=function(){var e=function(e){function t(e,n,i,r){var s;return g(this,t),(s=v(this,t,[e,n,r]))._host=i,s._centeringSub=Y.EMPTY,s._leavingSub=Y.EMPTY,s}return _(t,e),m(t,[{key:"ngOnInit",value:function(){var e=this;h(E(t.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Mg(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){h(E(t.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}])}(Px);return e.\u0275fac=function(t){return new(t||e)(yo(Mu),yo(gl),yo(Pe(function(){return pP})),yo(ad))},e.\u0275dir=Et({type:e,selectors:[["","matTabBodyHost",""]],features:[eo]}),e}(),hP=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Y.EMPTY,this._translateTabComplete=new ee,this._onCentering=new jl,this._beforeCentering=new jl,this._afterLeavingCenter=new jl,this._onCentered=new jl(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(wS(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})},[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8),yo(sl))},e.\u0275dir=Et({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),pP=function(){var e=function(e){function t(e,n,i){return g(this,t),v(this,t,[e,n,i])}return _(t,e),m(t)}(hP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(tE,8),yo(sl))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;(1&e&&Kl(Px,5),2&e)&&($l(n=Xl())&&(t._portalHost=n.first))},hostAttrs:[1,"mat-tab-body"],features:[eo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(ko(0,"div",0,1),Ao("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),go(2,BR,0,0,"ng-template",2),wo()),2&e&&_o("@translateTab",Ol(3,zR,t._position,Al(1,UR,t.animationDuration)))},directives:[dP],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[cP.translateTab]}}),e}(),fP=new xi("MAT_TABS_CONFIG"),mP=0,gP=m(function e(){g(this,e)}),vP=qD(ND(function(){return m(function e(t){g(this,e),this._elementRef=t})}()),"primary"),yP=function(){var e=function(e){function t(e,n,i,r){var s,a;return g(this,t),(s=v(this,t,[e]))._changeDetectorRef=n,s._animationMode=r,s._tabs=new Nl,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=Y.EMPTY,s._tabLabelSubscription=Y.EMPTY,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new jl,s.focusChange=new jl,s.animationDone=new jl,s.selectedTabChange=new jl(!0),s._groupId=mP++,s.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",s.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,s.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,s.contentTabIndex=null!==(a=null==i?void 0:i.contentTabIndex)&&void 0!==a?a:null,s}return _(t,e),m(t,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=oS(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=uS(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(e){this._contentTabIndex=uS(e,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||(e.selectedIndexChange.emit(t),e._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-t,null!=e._selectedIndex&&0==n.position&&!n.origin&&(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),bP=jD(function(){return m(function e(){g(this,e)})}()),kP=function(){var e=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).elementRef=e,n}return _(t,e),m(t,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}])}(bP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu))},e.\u0275dir=Et({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(fo("aria-disabled",!!t.disabled),Qo("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[eo]}),e}(),wP=QS({passive:!0}),SP=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){var u=this;g(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=s,this._platform=a,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ee,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ee,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new jl,this.indexFocused=new jl,s.runOutsideAngular(function(){hS(t.nativeElement,"mouseleave").pipe(OS(u._destroyed)).subscribe(function(){u._stopInterval()})})},[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=uS(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;hS(this._previousPaginator.nativeElement,"touchstart",wP).pipe(OS(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),hS(this._nextPaginator.nativeElement,"touchstart",wP).pipe(OS(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Oh("ltr"),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new FE(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),ke(t,n,this._items.changes).pipe(OS(this._destroyed)).subscribe(function(){e._ngZone.run(function(){return Promise.resolve().then(i)}),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(OS(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!hE(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,s=t.elementRef.nativeElement,a=s.offsetLeft,o=s.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+o:n=(i=this._tabList.nativeElement.offsetWidth-a)-o;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),MS(650,100).pipe(OS(ke(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275dir=Et({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),EP=function(){var e=function(e){function t(e,n,i,r,s,a,o){var u;return g(this,t),(u=v(this,t,[e,n,i,r,s,a,o]))._disableRipple=!1,u}return _(t,e),m(t,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=oS(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}])}(SP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275dir=Et({type:e,inputs:{disableRipple:"disableRipple"},features:[eo]}),e}(),TP=function(){var e=function(e){function t(e,n,i,r,s,a,o){return g(this,t),v(this,t,[e,n,i,r,s,a,o])}return _(t,e),m(t)}(EP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(sl),yo(lE),yo(tE,8),yo(Cc),yo(VS),yo(rg,8))},e.\u0275cmp=yt({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,kP,4),2&e)&&($l(i=Xl())&&(t._items=i))},viewQuery:function(e,t){var n;(1&e&&(Kl(iP,7),Kl(JR,7),Kl(XR,7),Kl(eP,5),Kl(tP,5)),2&e)&&($l(n=Xl())&&(t._inkBar=n.first),$l(n=Xl())&&(t._tabListContainer=n.first),$l(n=Xl())&&(t._tabList=n.first),$l(n=Xl())&&(t._nextPaginator=n.first),$l(n=Xl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&Qo("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[eo],ngContentSelectors:HR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(jo(),ko(0,"div",0,1),Ao("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),So(2,"div",2),wo(),ko(3,"div",3,4),Ao("keydown",function(e){return t._handleKeydown(e)}),ko(5,"div",5,6),Ao("cdkObserveContent",function(){return t._onContentChanges()}),ko(7,"div",7),qo(8),wo(),So(9,"mat-ink-bar"),wo(),wo(),ko(10,"div",8,9),Ao("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),So(12,"div",2),wo()),2&e&&(Qo("mat-tab-header-pagination-disabled",t._disableScrollBefore),_o("matRippleDisabled",t._disableScrollBefore||t.disableRipple),Ns(5),Qo("_mat-animation-noopable","NoopAnimations"===t._animationMode),Ns(5),Qo("mat-tab-header-pagination-disabled",t._disableScrollAfter),_o("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[fx,wE,iP],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),DP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YD,Fx,mx,SE,sT],YD]}),e}(),xP=["*",[["mat-toolbar-row"]]],CP=["*","mat-toolbar-row"],MP=qD(function(){return m(function e(t){g(this,e),this._elementRef=t})}()),LP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),AP=function(){var e=function(e){function t(e,n,i){var r;return g(this,t),(r=v(this,t,[e]))._platform=n,r._document=i,r}return _(t,e),m(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}])}(MP);return e.\u0275fac=function(t){return new(t||e)(yo(Iu),yo(VS),yo(ad))},e.\u0275cmp=yt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,LP,5),2&e)&&($l(i=Xl())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Qo("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[eo],ngContentSelectors:CP,decls:2,vars:0,template:function(e,t){1&e&&(jo(xP),qo(0),qo(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),OP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YD],YD]}),e}(),IP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[CD,YD],YD]}),e}(),RP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[xD,CD,zT,aM,oM,pM,_M,bM,AM,zM,rL,EL,YL,rA,aA,OA,WA,kL,RL,sO,EO,nx,mI,gI,DI,NI,mx,VO,HI,BI,tR,dR,DR,qR,DP,OP,nI,IP,dE]}),e}(),PP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP]]}),e}(),FP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP]]}),e}(),YP=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,rS,sS,gp,z_,RP,FP],zd,rS,sS,gp,z_,RP,FP,PP]}),e}(),jP={githubUrl:"https://github.com",accessTokenUrl:"https://catcher-auth.herokuapp.com/authenticate",clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles-dev.json"},qP=w(4147),NP={version:w(4147).version,production:!0,test:!1,clientId:"5e1ed08cff7f0de1d68d",githubUrl:"https://github.com",accessTokenUrl:jP.accessTokenUrl,clientDataUrl:"https://raw.githubusercontent.com/CATcher-org/client_data/master/profiles.json",origin:"https://catcher-org.github.io"},HP=Object.assign(Object.assign({},NP),{clientId:"54b9dcc49069dc2f018e",origin:"https://catcher-org.github.io"}),BP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),UP=new Uint8Array(16);function zP(){if(!BP)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return BP(UP)}for(var VP=[],GP=0;GP<256;++GP)VP[GP]=(GP+256).toString(16).substr(1);var WP=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||zP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;++s)t[i+s]=r[s];return t||function(e,t){var n=0;return[VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],"-",VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]],VP[e[n++]]].join("")}(r)};function ZP(){return WP()}var QP=w(97582);function $P(e,t){return W(Rh(function(t){return e(t)}),qg(t))}var KP=function(){return m(function e(){g(this,e),this.issueLastModified=new Map},[{key:"get",value:function(e){return this.issueLastModified.get(e)||""}},{key:"set",value:function(e,t){this.issueLastModified.set(e,t)}},{key:"clear",value:function(){this.issueLastModified.clear()}}])}(),JP=function(){return m(function e(){g(this,e),this.issuesCache=[]},[{key:"getEtagFor",value:function(e){var t=this.get(e),n="";return void 0!==t&&(n=t.headers.etag),n}},{key:"get",value:function(e){return this.issuesCache[e-1]}},{key:"set",value:function(e,t){t.isCached=!0,this.issuesCache[e-1]=t}},{key:"clear",value:function(){this.issuesCache=[]}}])}();function XP(e,t){return e.map(function(e){return t?t(e.node):e.node})}var eF=function(){var e=function(){return m(function e(t){g(this,e),Object.assign(this,t),this.isCategorical()?(this.category=this.name.split(".")[0],this.label=this.name.split(".")[1]):(this.category=this.name,this.label=this.name),Object.freeze(this)},[{key:"getCategory",value:function(){return this.category}},{key:"getValue",value:function(){return this.label}},{key:"getDescription",value:function(){return this.description}},{key:"isCategorical",value:function(){return/^[^.]+\.[^.]+$/.test(this.name)}}])}();return e.LABEL_ORDER={severity:{Low:0,Medium:1,High:2},type:{DocumentationBug:0,FunctionalityBug:1}},e.LABELS={severity:"severity",type:"type",response:"response",duplicated:"duplicated",status:"status",unsure:"unsure",pending:"pending",team:"team",tutorial:"tutorial"},e}(),tF=function(){return m(function e(t){g(this,e),Object.assign(this,t),this.labels=[];var n,i=M(t.labels);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.labels.push(new eF(r))}}catch(s){i.e(s)}finally{i.f()}},[{key:"findLabel",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t){var n=this.labels.find(function(t){return!t.isCategorical()&&t.name===e});return n?n.getValue():void 0}var i=this.labels.filter(function(t){return t.isCategorical()&&t.getCategory()===e});if(0!==i.length){if(1===i.length)return i[0].getValue();if(eF.LABEL_ORDER[e]){var r=eF.LABEL_ORDER[e];return i.reduce(function(e,t){return r[t.getValue()]>r[e.getValue()]?t:e}).getValue()}return i[0].getValue()}}},{key:"findTeamId",value:function(){return"".concat(this.findLabel("team"),".").concat(this.findLabel("tutorial"))}}])}(),nF=function(e){function t(e){return g(this,t),v(this,t,[{id:e.id,number:e.number,body:e.body,created_at:String(e.createdAt),updated_at:String(e.updatedAt),url:String(e.url),title:e.title,state:e.state,user:{login:e.author.login,url:e.author.url,avatar_url:e.author.avatarUrl},assignees:XP(e.assignees.edges),labels:XP(e.labels.edges),comments:XP(e.comments.edges,function(e){return Object.assign(Object.assign({},e),{id:e.databaseId})})}])}return _(t,e),m(t)}(tF),iF=["*"],rF=function(){var e=function(){return m(function e(t){g(this,e),this.snackBarRef=t},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(oR))},e.\u0275cmp=yt({type:e,selectors:[["app-toaster"]],ngContentSelectors:iF,decls:6,vars:0,consts:[[1,"toaster"],[1,"message-container"],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(jo(),ko(0,"div",0),ko(1,"div",1),ko(2,"p"),qo(3),wo(),wo(),ko(4,"button",2),Ao("click",function(){return t.snackBarRef.dismiss()}),au(5,"Close"),wo(),wo())},directives:[yM],styles:[".toaster[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.message-container[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:80%;overflow-wrap:anywhere}.message-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:auto 5px;text-align:center}button[_ngcontent-%COMP%]{vertical-align:middle;flex-basis:20%;margin:auto 5px;text-align:center}"]}),e}();function sF(e,t){if(1&e&&(ko(0,"div"),au(1," Validation Error: "),ko(2,"ul"),ko(3,"li"),au(4),wo(),wo(),wo()),2&e){var n=t.$implicit;Ns(4),ou(n.code+" in "+n.field)}}function aF(e,t){if(1&e&&(ko(0,"div"),go(1,sF,5,1,"div",2),wo()),2&e){var n=Fo();Ns(1),_o("ngForOf",n.data.errors)}}function oF(e,t){if(1&e&&au(0),2&e){var n=Fo();uu(" ","Error code "+n.data.status+": "+n.data.message,"\n")}}var uF=function(){var e=m(function e(t){g(this,e),this.data=t});return e.\u0275fac=function(t){return new(t||e)(yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-form-error"]],decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],["generalMessage",""],[4,"ngFor","ngForOf"]],template:function(e,t){if(1&e&&(ko(0,"app-toaster"),go(1,aF,2,1,"div",0),wo(),go(2,oF,1,1,"ng-template",null,1,ic)),2&e){var n=vo(3);Ns(1),_o("ngIf",t.data.errors)("ngIfElse",n)}},directives:[rF,Od,Ld],encapsulation:2}),e}(),lF=function(){var e=m(function e(t){g(this,e),this.data=t});return e.\u0275fac=function(t){return new(t||e)(yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-general-message-error"]],decls:2,vars:1,template:function(e,t){1&e&&(ko(0,"app-toaster"),au(1),wo()),2&e&&(Ns(1),uu(" ",t.data.message," "))},directives:[rF],encapsulation:2}),e}(),cF=function(){var e=function(){return m(function e(){g(this,e),this.isInSession=!1,this.LOG_KEY="CATcher-Log",this.LOG_FILE_NAME="CATcher-log.txt",this.LOG_START_HEADER="====== New CATcher v".concat(HP.version," Session Log ======"),this.LOG_COUNT_LIMIT=4,this.SESSION_LOG_SEPARATOR="\n".repeat(2),this.logger=console,this.startSession()},[{key:"reset",value:function(){this.isInSession=!1}},{key:"startSession",value:function(){window.opener&&window.opener!==window||this.isInSession||(this.isInSession=!0,this.initializeLogCache())}},{key:"initializeLogCache",value:function(){this.setCachedLog(this.getTrimmedLogCache(this.getCachedLog(),this.LOG_COUNT_LIMIT))}},{key:"getTrimmedLogCache",value:function(e,t){var n=this,i=(new Date).toLocaleString(),r="".concat(this.LOG_START_HEADER,"\n").concat(i),s=null==e?0:e.split("\n").filter(function(e){return e.includes(n.LOG_START_HEADER)}).length;if(0===s)return r;if(s1?i-1:0),s=1;s1?i-1:0),s=1;s1?i-1:0),s=1;s1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:{};return(0,QP.mG)(t,void 0,void 0,C().mark(function t(){var r,s=this;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.cursor||null,t.abrupt("return",this.apollo.watchQuery({query:n,variables:Object.assign(Object.assign({},i),{cursor:r})}).refetch().then(function(t){return(0,QP.mG)(s,void 0,void 0,C().mark(function r(){var s,a,o,u;return C().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=Array.isArray(t)?t:[t],a=e(t),o=0===a.length?null:a[a.length-1].cursor,!(a.length<100)&&o){r.next=3;break}return r.abrupt("return",s);case 3:return r.next=5,this.withPagination(e)(n,Object.assign(Object.assign({},i),{cursor:o}));case 5:return u=r.sent,r.abrupt("return",s.concat(u));case 7:case"end":return r.stop()}},r,this)}))}));case 2:case"end":return t.stop()}},t,this)}))}}}])}();return e.IF_NONE_MATCH_EMPTY={"If-None-Match":""},e.\u0275fac=function(t){return new(t||e)($i(hF),$i(Eb),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),bF=function(){return m(function e(t){g(this,e),Object.assign(this,t)},[{key:"tutorialClassId",get:function(){var e=T(this.id.split("-"),2),t=e[0],n=e[1];return"".concat(t,"-").concat(n)}},{key:"teamId",get:function(){return this.id.split("-")[2]}}])}(),kF=(function(e){e.Admin="Admin",e.Tutor="Tutor",e.Student="Student"}(kF||(kF={})),kF),wF=function(){var e=function(){function e(t){g(this,e),this.githubService=t}return m(e,[{key:"getDataFile",value:function(){var e=this;return this.githubService.fetchDataFile().pipe(ie(function(t){return e.constructData(t)}),ie(function(t){return e.dataFile={teamStructure:e.extractTeamStructure(t)},t}))}},{key:"constructData",value:function(t){var n={},i=t.data;return n[e.ROLES]=this.parseRolesData(i),n[e.TEAM_STRUCTURE]=this.parseTeamStructureData(i),n[e.STUDENTS_ALLOCATION]=this.parseStudentAllocation(i),n[e.TUTORS_ALLOCATION]=this.parseTutorAllocation(i),n[e.ADMINS_ALLOCATION]=this.parseAdminAllocation(i),n}},{key:"parseAdminAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){t[e.ROLE]===kF.Admin.toLowerCase()&&(n[t[e.NAME].toLowerCase()]={})}),n}},{key:"parseTutorAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Tutor.toLowerCase()){var i=n[t[e.NAME].toLowerCase()]||{};i[t[e.TEAM]]="true",n[t[e.NAME].toLowerCase()]=i}}),n}},{key:"parseStudentAllocation",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Student.toLowerCase()){var i={};i[e.TEAM_ID]=t[e.TEAM],n[t[e.NAME].toLowerCase()]=i}}),n}},{key:"parseTeamStructureData",value:function(t){var n={};return this.parseUsersData(t).forEach(function(t){if(t[e.ROLE]===kF.Student.toLowerCase()){var i=n[t[e.TEAM]]||{};i[t[e.NAME].toLowerCase()]=t[e.NAME],n[t[e.TEAM]]=i}}),n}},{key:"parseRolesData",value:function(t){var n={},i={},r={},s={};return this.parseUsersData(t).forEach(function(t){t[e.ROLE]===kF.Student.toLowerCase()?i[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===kF.Tutor.toLowerCase()?r[t[e.NAME].toLowerCase()]="true":t[e.ROLE]===kF.Admin.toLowerCase()&&(s[t[e.NAME].toLowerCase()]="true")}),n[e.STUDENTS]=i,n[e.TUTORS]=r,n[e.ADMINS]=s,n}},{key:"parseUsersData",value:function(e){for(var t=e.split("\n").filter(function(e){return e.trim()}),n=t[0].split(",").map(function(e){return e.trim()}),i=[],r=1;r/gm,e}(),MF=w(16738),LF=(function(e){e.phaseBugReporting="phaseBugReporting",e.phaseTeamResponse="phaseTeamResponse",e.phaseTesterResponse="phaseTesterResponse",e.phaseModeration="phaseModeration"}(LF||(LF={})),LF),AF=function(){return m(function e(t){g(this,e),this.parser=t},[{key:"findConformingComment",value:function(e){var t,n,i,r=M(e);try{for(r.s();!(i=r.n()).done;){var s=i.value;if(!(n=this.parser.run(s.body)).isError){this.parseResult=n.result,t=s;break}}}catch(a){r.e(a)}finally{r.f()}return void 0===t&&(this.parseFailure=!0,n&&(this.parseError=n.error)),t}}])}(),OF=w(80930),IF=OF.endOfInput,RF=OF.sequenceOf,PF=OF.startOfInput,FF=OF.str,YF="Your response not required for this bug as the team has accepted the bug as it is.",jF=RF([PF,FF(YF),IF]),qF=function(e){function t(e){var n;return g(this,t),(n=v(this,t,[jF])).findConformingComment(e),!n.parseFailure&&(n.teamAccepted=!0),n}return _(t,e),m(t)}(AF),NF=w(80930),HF=NF.char,BF=NF.choice,UF=NF.coroutine,zF=NF.everyCharUntil,VF=NF.str,GF=NF.whitespace;function WF(e){return UF(C().mark(function t(){var n;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,VF("# Team's Response");case 2:return t.next=4,GF;case 4:return t.next=6,zF(VF(e));case 6:return n=t.sent,t.abrupt("return",n.trim()?n.trim():"No details provided by team.");case 8:case"end":return t.stop()}},t)}))}function ZF(e){return UF(C().mark(function t(){var n;return C().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,VF("- [");case 2:return t.next=4,BF([HF("x"),GF]);case 4:return n=t.sent,t.next=7,VF("] "+e);case 7:return t.abrupt("return","x"===n);case 8:case"end":return t.stop()}},t)}))}var QF=w(80930),$F=QF.choice,KF=QF.coroutine,JF=QF.digits,XF=QF.str,eY=QF.whitespace,tY="## Duplicate status (if any):",nY=WF(tY),iY=KF(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XF("Duplicate of #");case 2:return e.next=4,JF;case 4:return t=e.sent,e.abrupt("return",parseInt(t,10));case 6:case"end":return e.stop()}},e)})),rY=KF(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nY;case 2:return t=e.sent,e.next=5,XF(tY);case 5:return e.next=7,eY;case 7:return e.t0=t,e.next=10,$F([iY,XF("--")]).map(function(e){return"--"===e?null:e});case 10:return e.t1=e.sent,e.abrupt("return",{teamResponse:e.t0,issueNumber:e.t1});case 12:case"end":return e.stop()}},e)})),sY=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[rY])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body,createdAt:i.created_at,updatedAt:i.updated_at}),n.teamResponse=n.parseResult.teamResponse,n.duplicateOf=n.parseResult.issueNumber),n}return _(t,e),m(t)}(AF),aY=function(){return m(function e(t,n){g(this,e),this.description=t,this.isChecked=n},[{key:"setChecked",value:function(e){this.isChecked=e}},{key:"toString",value:function(){return"- ".concat(this.isChecked?"[x]":"[ ]"," ").concat(this.description)}}])}(),oY=function(){return m(function e(t,n,i,r,s){g(this,e),this.TITLE_PREFIX="## :question: ",this.DISAGREEMENT_PREFIX="**Reason for disagreement:** ",this.INITIAL_RESPONSE="[replace this with your explanation]",this.LINE_BREAK="
    \n",this.title=t,this.description=n,this.disagreeCheckbox=new aY(i,r),this.reasonForDisagreement=s},[{key:"toString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.disagreeCheckbox.toString()+"\n\n",e+=this.DISAGREEMENT_PREFIX+this.reasonForDisagreement+"\n\n",e+=this.LINE_BREAK}},{key:"isDisagree",value:function(){return this.disagreeCheckbox.isChecked}},{key:"compareTo",value:function(e){return this.isDisagree()===e.isDisagree()?this.reasonForDisagreement.localeCompare(e.reasonForDisagreement):this.isDisagree()?1:-1}},{key:"getTitleInMarkDown",value:function(){return"## ".concat(this.title)}},{key:"getDisagreementWithoutDefaultResponse",value:function(){return this.reasonForDisagreement.replace(this.INITIAL_RESPONSE," ")}},{key:"setDisagree",value:function(e){this.disagreeCheckbox.setChecked(e)}},{key:"setReasonForDisagreement",value:function(e){this.reasonForDisagreement=e}}])}(),uY=w(80930),lY=uY.between,cY=uY.coroutine,dY=uY.everyCharUntil,hY=uY.letters,pY=uY.lookAhead,fY=uY.optionalWhitespace,mY=uY.pipeParsers,gY=uY.possibly,vY=uY.str,yY=uY.whitespace,_Y="
    ",bY="Team chose to mark this issue as a duplicate of another issue (as explained in the _**Team's response**_ above)",kY=ZF("I disagree");function wY(e){return lY(vY("[`"+e+"."))(vY("`]"))(hY)}var SY=cY(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("**Reason for disagreement:** ");case 2:return e.next=4,dY(vY(_Y));case 4:return t=e.sent,e.next=7,vY(_Y);case 7:return e.abrupt("return",t.trim());case 8:case"end":return e.stop()}},e)})),EY=cY(C().mark(function e(){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("status");case 2:return e.next=4,yY;case 4:return e.next=6,vY(bY);case 6:return e.next=8,yY;case 8:return e.next=10,kY;case 10:return t=e.sent,e.next=13,yY;case 13:return e.t0=t,e.next=16,SY;case 16:return e.t1=e.sent,e.abrupt("return",{disagreeCheckboxValue:e.t0,reasonForDisagreement:e.t1});case 18:case"end":return e.stop()}},e)})),TY=cY(C().mark(function e(){var t,n,i,r,s,a,o,u,l;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vY("## :question: Issue ");case 2:return e.next=4,hY;case 4:return t=e.sent,e.next=7,yY;case 7:if("duplicate"!==t){e.next=14;break}return e.next=10,EY;case 10:return n=e.sent,e.next=13,fY;case 13:return e.abrupt("return",{title:t+" status",description:bY,teamChose:null,testerChose:null,disagreeCheckboxValue:n.disagreeCheckboxValue,reasonForDisagreement:n.reasonForDisagreement});case 14:return e.next=16,pY(dY(kY));case 16:return i=e.sent,r=function(e){var t=wY(e);return mY([vY("Team chose "),t])}(t),s=function(e){var t=wY(e);return mY([vY("Originally "),t])}(t),e.next=21,r;case 21:return a=e.sent,e.next=24,yY;case 24:return e.next=26,gY(s);case 26:return o=e.sent,e.next=29,fY;case 29:return e.next=31,kY;case 31:return u=e.sent,e.next=34,yY;case 34:return e.next=36,SY;case 36:return l=e.sent,e.next=39,fY;case 39:return e.abrupt("return",{title:t,description:i.trim(),teamChose:a,testerChose:o,disagreeCheckboxValue:u,reasonForDisagreement:l});case 40:case"end":return e.stop()}},e)})),DY=w(80930),xY=DY.coroutine,CY=DY.many1,MY=DY.str,LY=DY.optionalWhitespace,AY=DY.possibly,OY=DY.whitespace,IY="# Items for the Tester to Verify",RY=WF(IY),PY=xY(C().mark(function e(){var t,n,i,r,s,a,o,u,l;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,AY(MY("[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]"));case 2:return e.next=4,LY;case 4:return e.next=6,RY;case 6:return t=e.sent,e.next=9,MY(IY);case 9:return e.next=11,OY;case 11:return e.next=13,CY(TY);case 13:n=e.sent,s=!1,a=[],o=M(n);try{for(o.s();!(u=o.n()).done;)(l=u.value).disagreeCheckboxValue&&(s=!0),"severity"===l.title?i=l.teamChose:"type"===l.title&&(r=l.teamChose),a.push(new oY("Issue "+l.title,l.description,"I disagree",l.disagreeCheckboxValue,l.reasonForDisagreement))}catch(c){o.e(c)}finally{o.f()}return e.abrupt("return",{teamResponse:t,testerResponses:a,testerDisagree:s,teamChosenSeverity:i,teamChosenType:r});case 19:case"end":return e.stop()}},e)})),FY=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[PY])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body}),n.teamResponse=n.parseResult.teamResponse,n.testerResponses=n.parseResult.testerResponses,n.testerDisagree=n.parseResult.testerDisagree,n.teamChosenSeverity=n.parseResult.teamChosenSeverity,n.teamChosenType=n.parseResult.teamChosenType),n}return _(t,e),m(t)}(AF),YY=function(){return m(function e(t,n){g(this,e),this.TODO_DESCRIPTION="Done",this.INITIAL_RESPONSE="[replace this with your explanation]",this.TITLE_PREFIX="## :question: ",this.LINE_BREAK="
    \n",this.title=t,this.description=n,this.tutorResponse=this.INITIAL_RESPONSE,this.todo=new aY(this.TODO_DESCRIPTION,!1)},[{key:"isDone",value:function(){return this.todo.isChecked}},{key:"toTutorResponseString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.todo.toString()+"\n\n",e+=this.tutorResponse+"\n\n",e+=this.LINE_BREAK}},{key:"compareTo",value:function(e){return this.isDone()===e.isDone()?this.tutorResponse.localeCompare(e.tutorResponse):this.isDone()?1:-1}},{key:"toString",value:function(){var e="";return e+=this.TITLE_PREFIX+this.title+"\n\n",e+=this.description+"\n\n",e+=this.LINE_BREAK}},{key:"setTutorResponse",value:function(e){this.tutorResponse=e}},{key:"setIsDone",value:function(e){this.todo.setChecked(e)}}])}(),jY=w(80930),qY=jY.coroutine,NY=jY.everyCharUntil,HY=jY.optionalWhitespace,BY=jY.str,UY="
    ",zY=qY(C().mark(function e(){var t,n;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,BY("## :question: ");case 2:return e.next=4,NY(BY("### Team says:"));case 4:return t=e.sent,e.next=7,NY(BY(UY));case 7:return n=e.sent,e.next=10,BY(UY);case 10:return e.next=12,HY;case 12:return e.abrupt("return",new YY(t.trim(),n.trim()));case 13:case"end":return e.stop()}},e)})),VY=w(80930),GY=VY.coroutine,WY=VY.everyCharUntil,ZY=VY.many1,QY=VY.str,$Y=VY.whitespace,KY="# Disputes",JY=WF(KY),XY=GY(C().mark(function e(){var t,n,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QY("# Issue Description");case 2:return e.next=4,$Y;case 4:return e.next=6,WY(QY("# Team's Response"));case 6:return t=e.sent,e.next=9,JY;case 9:return n=e.sent,e.next=12,QY(KY);case 12:return e.next=14,$Y;case 14:return e.next=16,ZY(zY);case 16:return i=e.sent,e.abrupt("return",{description:t.trim(),teamResponse:n,issueDisputes:i});case 18:case"end":return e.stop()}},e)})),ej=function(e){function t(e){var n;g(this,t),n=v(this,t,[XY]);var i=XY.run(e.body);return i.isError?n.parseFailure=!0:(n.parseResult=i.result,n.description=n.parseResult.description,n.teamResponse=n.parseResult.teamResponse,n.disputes=n.parseResult.issueDisputes),n}return _(t,e),m(t)}(AF),tj=w(80930),nj=tj.coroutine,ij=tj.everyCharUntil,rj=tj.lookAhead,sj=tj.optionalWhitespace,aj=tj.str,oj=tj.whitespace,uj="
    ",lj=ZF("Done"),cj=nj(C().mark(function e(){var t,n,i,r,s;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,aj("## :question: ");case 2:return e.next=4,ij(aj("- ["));case 4:return t=e.sent,e.next=7,rj(ij(aj(uj)));case 7:return n=e.sent,e.next=10,lj;case 10:return i=e.sent,e.next=13,oj;case 13:return e.next=15,ij(aj(uj));case 15:return r=e.sent,e.next=18,aj(uj);case 18:return e.next=20,sj;case 20:return s=new YY(t.trim(),n.trim()),e.abrupt("return",(s.todo=new aY("Done",i),s.tutorResponse=r.trim(),s));case 22:case"end":return e.stop()}},e)})),dj=w(80930),hj=dj.coroutine,pj=dj.many1,fj=dj.str,mj=dj.whitespace,gj=hj(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fj("# Tutor Moderation");case 2:return e.next=4,mj;case 4:return e.next=6,pj(cj);case 6:return e.t0=e.sent,e.abrupt("return",{disputesToResolve:e.t0});case 8:case"end":return e.stop()}},e)})),vj=function(e){function t(e){var n;g(this,t);var i=(n=v(this,t,[gj])).findConformingComment(e);return n.parseFailure||(n.comment=Object.assign(Object.assign({},i),{description:i.body}),n.disputesToResolve=n.parseResult.disputesToResolve),n}return _(t,e),m(t)}(AF),yj=function(){function e(t){g(this,e),this.globalId=t.id,this.id=+t.number,this.created_at=MF(t.created_at).format("lll"),this.title=t.title,this.hiddenDataInDescription=new CF(t.body),this.description=e.updateDescription(this.hiddenDataInDescription.originalStringWithoutHiddenData),this.githubIssue=t,this.severity=t.findLabel(eF.LABELS.severity),this.type=t.findLabel(eF.LABELS.type),this.response=t.findLabel(eF.LABELS.response),this.duplicated=!!t.findLabel(eF.LABELS.duplicated,!1),this.status=t.findLabel(eF.LABELS.status),this.pending=t.findLabel(eF.LABELS.pending)}return m(e,[{key:"clone",value:function(t){switch(t){case LF.phaseBugReporting:return e.createPhaseBugReportingIssue(this.githubIssue);case LF.phaseTeamResponse:return e.createPhaseTeamResponseIssue(this.githubIssue,this.teamAssigned);case LF.phaseTesterResponse:return e.createPhaseTesterResponseIssue(this.githubIssue);case LF.phaseModeration:return e.createPhaseModerationIssue(this.githubIssue,this.teamAssigned);default:return e.createPhaseBugReportingIssue(this.githubIssue)}}},{key:"retainResponses",value:function(e,t){switch(this.issueComment=t.issueComment,this.githubComments=t.githubComments,e){case LF.phaseBugReporting:this.description=t.description;break;case LF.phaseTeamResponse:this.teamResponse=t.teamResponse;break;case LF.phaseTesterResponse:this.testerResponses=t.testerResponses,this.teamResponse=t.teamResponse;break;case LF.phaseModeration:this.issueDisputes=t.issueDisputes}}},{key:"updateTesterResponse",value:function(e){var t=new FY([e]);this.issueComment=t.comment,this.teamResponse=t.teamResponse,this.testerResponses=t.testerResponses}},{key:"updateDispute",value:function(e){var t=this,n=new vj([e]);this.issueComment=n.comment,this.issueDisputes=n.disputesToResolve.map(function(e,n){return e.description=t.issueDisputes[n].description,e})}},{key:"createGithubIssueDescription",value:function(){return"".concat(this.description,"\n").concat(this.hiddenDataInDescription.toString())}},{key:"createGithubTeamResponse",value:function(){return"# Team's Response\n".concat(this.teamResponse,"\n## Duplicate status (if any):\n").concat(this.duplicateOf?"Duplicate of #".concat(this.duplicateOf):"--")}},{key:"createGithubTutorResponse",value:function(){var e="# Tutor Moderation\n\n";if(void 0!==this.issueDisputes){var t,n=M(this.issueDisputes);try{for(n.s();!(t=n.n()).done;){e+=t.value.toTutorResponseString()}}catch(i){n.e(i)}finally{n.f()}}return e}},{key:"createGithubTesterResponse",value:function(){return"# Team's Response\n".concat(this.teamResponse,"\n# Items for the Tester to Verify\n").concat(this.getTesterResponsesString(this.testerResponses))}},{key:"numOfUnresolvedDisputes",value:function(){return this.issueDisputes?this.issueDisputes.reduce(function(e,t){return e+Number(!t.isDone())},0):0}},{key:"getTesterResponsesString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}}],[{key:"formatText",value:function(e){return null===e?null:void 0!==e?e.split(/[\n\r]/gi).filter(function(e){return""!==e.trim()}).length>0?"".concat(e,"\n\n"):e:void 0}},{key:"updateDescription",value:function(t){return e.orDefaultString(e.formatText(t),"No details provided by bug reporter.")}},{key:"updateTeamResponse",value:function(t){return e.orDefaultString(e.formatText(t),"No details provided by team.")}},{key:"orDefaultString",value:function(e,t){return e&&0!==e.length?e:t}},{key:"createPhaseBugReportingIssue",value:function(t){return new e(t)}},{key:"createPhaseTeamResponseIssue",value:function(t,n){var i=new e(t),r=new sY(t.comments);return i.githubComments=t.comments,i.teamAssigned=n,i.assignees=t.assignees.map(function(e){return e.login}),i.teamResponseError=r.parseFailure,i.parseError=r.parseError,i.issueComment=r.comment,i.teamResponse=r.teamResponse,i.duplicateOf=r.duplicateOf,i.duplicated=null!=i.duplicateOf,i}},{key:"createPhaseTesterResponseIssue",value:function(t){var n=new e(t),i=new FY(t.comments),r=new qF(t.comments);return n.githubComments=t.comments,n.testerResponseError=i.parseFailure&&r.parseFailure,n.parseError=i.parseError,n.teamAccepted=r.teamAccepted,n.issueComment=i.comment,n.teamResponse=i.teamResponse,n.testerResponses=i.testerResponses,n.testerDisagree=i.testerDisagree,n.teamChosenSeverity=i.teamChosenSeverity||null,n.teamChosenType=i.teamChosenType||null,n}},{key:"createPhaseModerationIssue",value:function(t,n){var i=new e(t),r=new ej(t),s=new vj(t.comments);return i.githubComments=t.comments,i.teamAssigned=n,i.description=r.description,i.teamResponse=r.teamResponse,i.issueDisputes=r.disputes,s.disputesToResolve&&s.comment&&(i.issueDisputes=s.disputesToResolve.map(function(e,t){return e.description=r.disputes[t].description,e}),i.issueComment=s.comment),i}}])}(),_j={"-":0,VeryLow:1,Low:2,Medium:3,High:4},bj={"-":0,DocumentationBug:1,FeatureFlaw:2,FunctionalityBug:3},kj=(function(e){e.Incomplete="Incomplete",e.Done="Done"}(kj||(kj={})),kj),wj=(function(e){e.NoFilter="NoFilter",e.NoAccess="NoAccess",e.FilterByCreator="FilterByCreator",e.FilterByTeam="FilterByTeam",e.FilterByTeamAssigned="FilterByTeamAssigned"}(wj||(wj={})),wj),Sj={phaseBugReporting:{Student:wj.FilterByCreator,Tutor:wj.NoFilter,Admin:wj.NoFilter},phaseTeamResponse:{Student:wj.FilterByTeam,Tutor:wj.FilterByTeamAssigned,Admin:wj.NoFilter},phaseTesterResponse:{Student:wj.NoFilter,Tutor:wj.NoAccess,Admin:wj.NoFilter},phaseModeration:{Student:wj.NoAccess,Tutor:wj.FilterByTeamAssigned,Admin:wj.NoFilter}},Ej=HP.version,Tj=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t,this.currentVersion=Ej},[{key:"isApplicationOutdated",value:function(){var e=this;return this.latestVersion?Oh(this.isOutdatedVersion(this.latestVersion,this.currentVersion)):this.githubService.fetchLatestRelease().pipe(ie(function(t){return e.latestVersion=t.tag_name.substring(1),e.latestReleaseUrl=t.html_url,e.isOutdatedVersion(e.latestVersion,e.currentVersion)}))}},{key:"isOutdatedVersion",value:function(e,t){return 1===this.compareVersions(e,t)}},{key:"compareVersions",value:function(e,t){for(var n=e.split("."),i=t.split("."),r=Math.min(e.length,t.length),s=[],a=[],o=0;oa[o])return 1;if(s[o]-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}}}])}(U);function Cj(){return W($P(function(e){return void 0!==e},function(){return new Error("Session Data Unavailable")}),$P(Mj,function(){return new Error("Session data does not define an 'openPhases' key")}),$P(Oj,function(){return new Error("There are no accessible phases")}),$P(Lj,function(){return new Error("Invalid Open Phases detected")}),$P(Aj,function(){return new Error("Opened Phase has no repo defined")}))}function Mj(e){return null!=e.openPhases}function Lj(e){return e.openPhases.reduce(function(e,t){return e&&t in LF},!0)}function Aj(e){return e.openPhases.reduce(function(t,n){return t&&!!e[n]},!0)}function Oj(e){return 0!==e.openPhases.length}var Ij=function(){return m(function e(t,n,i,r){g(this,e),this.labelValue=n,this.labelColor=i,this.labelCategory=t,this.labelDefinition=r},[{key:"getFormattedName",value:function(){return void 0===this.labelCategory||""===this.labelCategory?this.labelValue:this.labelCategory.concat(".",this.labelValue)}},{key:"equals",value:function(e){return this.labelValue===e.labelValue&&this.labelColor===e.labelColor&&this.labelCategory===e.labelCategory}}])}(),Rj="ffffff",Pj={severity:{VeryLow:new Ij("severity","VeryLow","ffe0e0","

    A flaw that is purely cosmetic and does not affect usage. For example,

    • typo issues
    • spacing issues
    • layout issues
    • color issues
    • font issues
    in the docs or the UI that doesn't affect usage.

    "),Low:new Ij("severity","Low","ffcccc","

    A flaw that is unlikely to affect normal operations of the product. Appears only in very rare situations and causes a minor inconvenience only.

    "),Medium:new Ij("severity","Medium","ff9999","

    A flaw that causes occasional inconvenience to some users but they can continue to use the product.

    "),High:new Ij("severity","High","ff6666","

    A flaw that affects most users and causes major problems for users.i.e., makes the product almost unusable for most users.

    ")},type:{DocumentationBug:new Ij("type","DocumentationBug","d966ff",'

    A flaw in the documentation e.g., a missing step, a wrong instruction, typos

    '),FeatureFlaw:new Ij("type","FeatureFlaw","d966ff","

    Some functionality missing from a feature delivered in the current version in a way that the feature becomes less useful to the intended target user for normal usage. i.e., the feature is not 'complete'.\nIn other words, an acceptance-testing bug that falls within the scope of the current version features. These issues are counted against the product design aspect of the project.

    "),FunctionalityBug:new Ij("type","FunctionalityBug","9900cc","

    A functionality does not work as specified/expected.

    ")},response:{Accepted:new Ij("response","Accepted","00802b","

    You accept it as a bug.

    "),CannotReproduce:new Ij("response","CannotReproduce","ffebcc","

    You are unable to reproduce the behavior reported in the bug after multiple tries.

    "),IssueUnclear:new Ij("response","IssueUnclear","ffcc80","

    The issue description is not clear.

    "),NotInScope:new Ij("response","NotInScope","ffcc80",'

    It is a valid issue but not something the team should be penalized for e.g., it was not related to features delivered in this version.

    '),Rejected:new Ij("response","Rejected","ff9900","

    What tester treated as a bug is in fact the expected behavior (from the user's point of view), or the tester was mistaken in some other way.

    ")},status:{Done:new Ij("status","Done","a6a6a6"),Incomplete:new Ij("status","Incomplete","000000")},others:{duplicate:new Ij(void 0,"duplicate","0066ff")}},Fj=function(){function e(t,n){g(this,e),this.githubService=t,this.logger=n}return m(e,[{key:"syncLabels",value:function(e){var t=this;return W(ge(function(){return t.synchronizeRemoteLabels(e)}))}},{key:"synchronizeRemoteLabels",value:function(t){var n=this;return this.githubService.fetchAllLabels().pipe(ie(function(e){return e.map(n.toLabel)}),ie(function(i){return n.ensureRepoHasRequiredLabels(i,e.getRequiredLabelsAsArray(t)),i}))}},{key:"getLabelList",value:function(t){switch(t){case"severity":return e.severityLabels;case"type":return e.typeLabels;case"response":return e.responseLabels}this.logger.info("LabelService: Unfiltered Attribute ".concat(t," in getLabelList"))}},{key:"getLabelTitle",value:function(e){switch(e){case"severity":return"Severity";case"type":return"Bug Type";case"response":return"Response"}this.logger.info("LabelService: Unfiltered Attribute ".concat(e," in getLabelTitle"))}},{key:"getColorOfLabel",value:function(t,n){if(""===n||!e.allLabelArrays[t])return this.logger.info("LabelService: Unfiltered Attribute, ".concat(n,": ").concat(t," in getColorOfLabel")),Rj;var i=e.allLabelArrays[t].find(function(e){return e.labelValue===n});return void 0===i||void 0===i.labelColor?Rj:i.labelColor}},{key:"getLabelDefinition",value:function(t,n){if(""===t||null===t||""===n||null===n)return null;var i=e.getRequiredLabelsAsArray(!0).find(function(e){return e.labelValue===t&&e.labelCategory===n});return void 0===i||void 0===i.labelDefinition?null:i.labelDefinition}},{key:"ensureRepoHasRequiredLabels",value:function(t,n){var i=this;n.forEach(function(n){var r=t.filter(function(e){return e.getFormattedName()===n.getFormattedName()});if(0===r.length)i.githubService.createLabel(n.getFormattedName(),n.labelColor);else{if(1!==r.length)throw new Error("Unexpected error: the repo has multiple labels with the same name "+n.getFormattedName());r[0].equals(n)||e.updateRequiredLabelColor(r[0].labelColor,n)}})}},{key:"toLabel",value:function(e){var t,n,i=String(e.name),r=T(/\./g.test(i)?e.name.split("."):[void 0,i],2);t=r[0],n=r[1];var s=e.color,a=String(e.description);return new Ij(t,n,s,a)}},{key:"isDarkColor",value:function(e){var t="#"===e.charAt(0)?e.substring(1,7):e,n=[parseInt(t.substring(0,2),16)/255,parseInt(t.substring(2,4),16)/255,parseInt(t.substring(4,6),16)/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]<.184}},{key:"setLabelStyle",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"inline-flex";return t=this.isDarkColor(e)?Rj:"000000",{"background-color":"#".concat(e),"border-radius":"3px",cursor:"default",padding:"3px",color:"#".concat(t),"font-weight":"410",display:n}}}],[{key:"getRequiredLabelsAsArray",value:function(e){var t=[];return Object.values(e?this.allLabelArrays:this.testerLabelArrays).map(function(e){return t=t.concat(e)}),t}},{key:"updateRequiredLabelColor",value:function(t,n){var i=e.allLabelArrays[n.labelCategory];i&&(i.find(function(e){return e.labelValue===n.labelValue}).labelColor=t)}}])}();Fj.severityLabels=Object.values(Pj.severity),Fj.typeLabels=Object.values(Pj.type),Fj.responseLabels=Object.values(Pj.response),Fj.statusLabels=Object.values(Pj.status),Fj.otherLabels=Object.values(Pj.others),Fj.allLabelArrays={severity:Fj.severityLabels,type:Fj.typeLabels,response:Fj.responseLabels,status:Fj.statusLabels,others:Fj.otherLabels},Fj.testerLabelArrays={severity:Fj.severityLabels,type:Fj.typeLabels},Fj.\u0275fac=function(e){return new(e||Fj)($i(_F),$i(cF))},Fj.\u0275prov=Be({token:Fj,factory:Fj.\u0275fac,providedIn:"root"});var Yj=function(){var e=function(){return m(function e(t,n){g(this,e),this.dialogRef=t,this.data=n},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL))},e.\u0275cmp=yt({type:e,selectors:[["app-session-fix-confirmation"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-button","","mat-raised-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1),wo(),ko(2,"div",1),ko(3,"p"),au(4),wo(),ko(5,"p"),au(6,"in your Github Account?"),wo(),wo(),ko(7,"div",2),ko(8,"button",3),au(9,"No Thanks"),wo(),ko(10,"button",4),au(11,"Yes"),wo(),wo()),2&e&&(Ns(1),uu("Hi ",t.data.user,""),Ns(3),uu('Do you want CATcher to create a repository named "',t.data.repoName,'"'),Ns(4),_o("mat-dialog-close",!1),Ns(2),_o("mat-dialog-close",!0))},directives:[eA,tA,nA,yM,XL],styles:[""]}),e}(),jj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.userService=n,this.repoCreationConfirmationDialog=i},[{key:"requestRepoCreationPermissions",value:function(e,t){var n=this;return W(ge(function(i){return i||e!==LF.phaseBugReporting?Oh(null):n.openRepoCreationConfirmation(t)}))}},{key:"openRepoCreationConfirmation",value:function(e){return this.repoCreationConfirmationDialog.open(Yj,{data:{user:this.userService.currentUser.loginId,repoName:e}}).afterClosed()}},{key:"verifyRepoCreationPermissions",value:function(e){var t=this;return W(Zg(function(n){if(null!==n){if(!1===n)throw new Error("You cannot proceed without the required repository.");if(e!==LF.phaseBugReporting)throw new Error("Current Phase's Repository has not been opened.");if(t.userService.currentUser.role!==kF.Student)throw new Error("'Bug-Reporting Phase's repository initialisation is only available to Students.'")}}))}},{key:"attemptRepoCreation",value:function(e){var t=this;return W(ge(function(n){return null===n?Oh(null):(t.githubService.createRepository(e),new Q(function(e){setTimeout(function(){return e.next(!0)},1e3)}))}))}},{key:"verifyRepoCreation",value:function(e,t){var n=this;return W(ge(function(i){return i?n.githubService.isRepositoryPresent(e,t):Oh(!0)}))}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(SF),$i(KL))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),qj=D(D(D(D({},LF.phaseBugReporting,"Bug Reporting Phase"),LF.phaseTeamResponse,"Team's Response Phase"),LF.phaseTesterResponse,"Tester's Response Phase"),LF.phaseModeration,"Moderation Phase"),Nj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.labelService=n,this.repoCreatorService=i,this.phaseRepoOwners={phaseBugReporting:"",phaseTeamResponse:"",phaseTesterResponse:"",phaseModeration:""}},[{key:"setPhaseOwners",value:function(e,t){this.orgName=e,this.phaseRepoOwners.phaseBugReporting=t,this.phaseRepoOwners.phaseTeamResponse=e,this.phaseRepoOwners.phaseTesterResponse=t,this.phaseRepoOwners.phaseModeration=e}},{key:"getPhaseOwner",value:function(e){return this.phaseRepoOwners[e]}},{key:"fetchSessionData",value:function(){return this.githubService.fetchSettingsFile().pipe(ie(function(e){return e}))}},{key:"storeSessionData",value:function(){var e=this;return this.fetchSessionData().pipe(Cj(),ie(function(t){localStorage.setItem("sessionData",JSON.stringify(t)),e.updateSessionParameters(t)}))}},{key:"setSessionData",value:function(){var e=JSON.parse(localStorage.getItem("sessionData"));this.updateSessionParameters(e)}},{key:"githubRepoPermissionLevel",value:function(){return this.sessionData.openPhases.includes(LF.phaseModeration)?"repo":"public_repo"}},{key:"verifySessionAvailability",value:function(e){return this.githubService.isRepositoryPresent(this.phaseRepoOwners[this.currentPhase],e[this.currentPhase])}},{key:"updateSessionParameters",value:function(e){this.sessionData=e,this.currentPhase=LF[e.openPhases[0]],this.repoName=e[e.openPhases[0]],this.githubService.storePhaseDetails(this.phaseRepoOwners[this.currentPhase],this.repoName)}},{key:"sessionSetup",value:function(){var e=this;return this.fetchSessionData().pipe(Cj(),ge(function(t){return e.updateSessionParameters(t),e.verifySessionAvailability(t)}),this.repoCreatorService.requestRepoCreationPermissions(this.currentPhase,this.sessionData[this.currentPhase]),W(Zg(function(e){e||!1})),this.repoCreatorService.verifyRepoCreationPermissions(this.currentPhase),this.repoCreatorService.attemptRepoCreation(this.sessionData[this.currentPhase]),this.repoCreatorService.verifyRepoCreation(this.getPhaseOwner(this.currentPhase),this.sessionData[this.currentPhase]),$P(function(e){return e},function(){return new Error("Session Availability Fix failed.")}),this.labelService.syncLabels(this.isTeamOrModerationPhase()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Dj(e,t))}}(1))}},{key:"isTeamOrModerationPhase",value:function(){return this.currentPhase===LF.phaseTeamResponse||this.currentPhase===LF.phaseModeration}},{key:"getPhaseDetail",value:function(){return this.orgName.concat("/").concat(this.repoName)}},{key:"isValidRoute",value:function(e){return e.startsWith("/"+this.currentPhase)}},{key:"reset",value:function(){this.currentPhase=null}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Fj),$i(jj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Hj=function(){var e=function(){function e(t,n,i,r,s){g(this,e),this.githubService=t,this.userService=n,this.phaseService=i,this.dataService=r,this.logger=s,this.issueTeamFilter="All Teams",this.isLoading=new lg(!1),this.issues$=new lg(new Array)}return m(e,[{key:"startPollIssues",value:function(){var t=this;void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=MS(0,e.POLL_INTERVAL).pipe(EF(function(){return t.reloadAllIssues().pipe(Ig(function(){return _g}),Kg(function(){return t.isLoading.next(!1)}))})).subscribe())}},{key:"stopPollIssues",value:function(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}},{key:"pollIssue",value:function(t){var n=this;return MS(0,e.POLL_INTERVAL).pipe(EF(function(){return n.githubService.fetchIssueGraphql(t).pipe(ie(function(e){var t=n.createIssueModel(e);return n.updateLocalStore(t),t}),Ig(function(e){return n.getIssue(t)}))}))}},{key:"reloadAllIssues",value:function(){return this.initializeData()}},{key:"getIssue",value:function(e){return void 0===this.issues?this.getLatestIssue(e):Oh(this.issues[e])}},{key:"getLatestIssue",value:function(e){var t=this;return this.githubService.fetchIssueGraphql(e).pipe(ie(function(n){return t.createAndSaveIssueModel(n),t.issues[e]}),Ig(function(n){return Oh(t.issues[e])}))}},{key:"createIssue",value:function(e,t,n,i){var r=this,s=[this.createLabel("severity",n),this.createLabel("type",i)],a=new Map([["session",this.sessionId],["Version","Desktop v".concat(Ej)]]),o=CF.embedDataIntoString(t,a);return this.githubService.createIssue(e,o,s).pipe(ie(function(e){return r.createIssueModel(e)}))}},{key:"updateIssue",value:function(e){var t=this;return this.updateGithubIssue(e).pipe(ie(function(n){return n.comments=e.githubComments,t.createIssueModel(n)}))}},{key:"updateGithubIssue",value:function(e){var t=this,n=this.phaseService.currentPhase===LF.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),n).pipe(Ig(function(e){return t.parseUpdateIssueResponseError(e)}))}},{key:"updateIssueWithComment",value:function(e,t){var n=this;return this.githubService.updateIssueComment(t).pipe(ge(function(t){return e.githubComments=[t].concat(d(e.githubComments.filter(function(e){return e.id!==t.id}))),n.updateIssue(e)}))}},{key:"updateTesterResponse",value:function(e,t){var n=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),i=e.clone(this.phaseService.currentPhase);return i.status=kj.Done,Ck([n,this.updateIssue(i)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateTesterResponse(n),i}))}},{key:"updateTutorResponse",value:function(e,t){return Ck([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createTeamResponse",value:function(e){var t=this,n=e.createGithubTeamResponse();return this.updateGithubIssue(e).pipe(ge(function(i){return t.githubService.createIssueComment(e.id,n).pipe(ie(function(n){return e.githubComments=[n].concat(d(e.githubComments.filter(function(e){return e.id!==n.id}))),i.comments=e.githubComments,t.createIssueModel(i)}))}))}},{key:"createTutorResponse",value:function(e,t){return Ck([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createGithubIssueDescription",value:function(e){return this.phaseService.currentPhase===LF.phaseModeration?"# Issue Description\n".concat(e.createGithubIssueDescription(),"\n# Team's Response\n").concat(e.teamResponse,"\n # Disputes\n\n").concat(this.getIssueDisputeString(e.issueDisputes),"\n"):e.createGithubIssueDescription()}},{key:"getIssueDisputeString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"deleteIssue",value:function(e){var t=this;return this.githubService.closeIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.deleteFromLocalStore(n),n}))}},{key:"undeleteIssue",value:function(e){var t=this;return this.githubService.reopenIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.updateLocalStore(n),n}))}},{key:"deleteFromLocalStore",value:function(e){var t=e.id,n=(0,QP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=n,this.issues$.next(Object.values(this.issues))}},{key:"updateLocalStore",value:function(e){this.issues=Object.assign(Object.assign({},this.issues),D({},e.id,e)),this.issues$.next(Object.values(this.issues))}},{key:"hasTeamResponse",value:function(e){return!!this.issues[e].teamResponse}},{key:"getDuplicateIssuesFor",value:function(e){return this.issues$.pipe(ie(function(t){return t.filter(function(t){return t.duplicateOf===e.id})}))}},{key:"reset",value:function(e){e&&(this.sessionId=void 0),this.issues=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new lg(!1)}},{key:"initializeData",value:function(){var e=this,t=[];switch(Sj[this.phaseService.currentPhase][this.userService.currentUser.role]){case wj.FilterByCreator:t.push(this.githubService.fetchIssuesGraphql(new xF({creator:this.userService.currentUser.loginId})));break;case wj.FilterByTeam:t.push(this.githubService.fetchIssuesGraphqlByTeam(this.createLabel("tutorial",this.userService.currentUser.team.tutorialClassId),this.createLabel("team",this.userService.currentUser.team.teamId),new xF({})));break;case wj.FilterByTeamAssigned:this.userService.currentUser.allocatedTeams.forEach(function(n){t.push(e.githubService.fetchIssuesGraphqlByTeam(e.createLabel("tutorial",n.tutorialClassId),e.createLabel("team",n.teamId),new xF({})))});break;case wj.NoFilter:t.push(this.githubService.fetchIssuesGraphql(new xF({})));break;default:return Oh([])}return Ck(t).pipe(ie(function(t){var n,i=[],r=M(t);try{for(r.s();!(n=r.n()).done;){var s,a=M(n.value);try{for(a.s();!(s=a.n()).done;){var o=s.value;i.push(e.createIssueModel(o).id),e.createAndSaveIssueModel(o)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}var u=e.getOutdatedIssueIds(i);return e.deleteIssuesFromLocalStore(u),Object.values(e.issues)}))}},{key:"createAndSaveIssueModel",value:function(e){var t=this.createIssueModel(e);return this.updateLocalStore(t),!0}},{key:"deleteIssuesFromLocalStore",value:function(e){var t=this;e.forEach(function(e){t.getIssue(e).subscribe(function(e){return t.deleteFromLocalStore(e)})})}},{key:"getOutdatedIssueIds",value:function(e){if(void 0===this.issues||!e.length)return[];var t=new Set(e);return Object.keys(this.issues).map(function(e){return+e}).filter(function(e){return!t.has(e)})}},{key:"createLabelsForIssue",value:function(e){var t=[];if(this.phaseService.currentPhase!==LF.phaseBugReporting&&this.phaseService.currentPhase!==LF.phaseTesterResponse){var n=e.teamAssigned.id.split("-");t.push(this.createLabel("tutorial","".concat(n[0],"-").concat(n[1])),this.createLabel("team",n[2]))}return e.severity&&t.push(this.createLabel("severity",e.severity)),e.type&&t.push(this.createLabel("type",e.type)),e.response&&t.push(this.createLabel("response",e.response)),e.duplicated&&t.push("duplicate"),e.status&&t.push(this.createLabel("status",e.status)),e.pending&&+e.pending>0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}},{key:"createLabel",value:function(e,t){return"".concat(e,".").concat(t)}},{key:"extractTeamIdFromGithubIssue",value:function(e){return e.findLabel(eF.LABELS.tutorial).concat("-").concat(e.findLabel(eF.LABELS.team))}},{key:"createIssueModel",value:function(e){var t;switch(this.phaseService.currentPhase){case LF.phaseBugReporting:t=yj.createPhaseBugReportingIssue(e);break;case LF.phaseTeamResponse:t=yj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;case LF.phaseTesterResponse:t=yj.createPhaseTesterResponseIssue(e);break;case LF.phaseModeration:t=yj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));break;default:return}return t.parseError&&this.logger.error("IssueService: "+t.parseError),t}},{key:"parseUpdateIssueResponseError",value:function(e){if(this.logger.error("IssueService: ",e),422!==e.code||!e.hasOwnProperty("message"))return lb(e.response.data.message);var t=e.message.substring("Validation Failed:".length),n=JSON.parse(t);return["field","code","value"].every(function(e){return n.hasOwnProperty(e)})&&"assignees"===n.field&&"invalid"===n.code?lb("Assignee ".concat(n.value," has not joined your organization yet. Please remove them from the assignees list.")):lb(e.response.data.message)}},{key:"setIssueTeamFilter",value:function(e){e&&(this.issueTeamFilter=e)}},{key:"setSessionId",value:function(e){this.sessionId=e}},{key:"getIssueTeamFilter",value:function(){return this.issueTeamFilter}}])}();return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)($i(_F),$i(SF),$i(Nj),$i(wF),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Bj=function(){var e=function(){return m(function e(t,n){g(this,e),this.githubService=t,this.issueService=n},[{key:"setLatestChangeEvent",value:function(){var e=this;return this.githubService.fetchEventsForRepo().pipe(ie(function(t){return 0===t.length||(e.setLastModifiedTime(t[0].created_at),e.setLastModifiedCommentTime(t[0].issue.updated_at)),t}))}},{key:"reloadPage",value:function(){var e=this;return this.githubService.fetchEventsForRepo().pipe(ge(function(t){if(0===t.length)return Oh(!1);var n=t[0];return n.created_at!==e.lastModified||n.issue.updated_at!==e.lastModifiedComment?(e.setLastModifiedTime(n.created_at),e.setLastModifiedCommentTime(n.issue.updated_at),e.issueService.reloadAllIssues().pipe(ie(function(e){return!0}))):Oh(!1)}))}},{key:"setLastModifiedTime",value:function(e){this.lastModified=e}},{key:"setLastModifiedCommentTime",value:function(e){this.lastModifiedComment=e}},{key:"reset",value:function(){this.setLastModifiedTime(void 0),this.setLastModifiedCommentTime(void 0)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Hj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Uj=(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(Uj||(Uj={})),Uj),zj=function(){var e=function(){function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.router=t,this.ngZone=n,this.githubService=i,this.userService=r,this.issueService=s,this.phaseService=a,this.dataService=o,this.githubEventService=u,this.titleService=l,this.logger=c,this.authStateSource=new lg(Uj.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new lg(void 0),this.ENABLE_POPUP_MESSAGE="Please enable pop-ups in your browser"}return m(e,[{key:"storeNext",value:function(t){sessionStorage.setItem(e.SESSION_NEXT_KEY,t.url)}},{key:"getNext",value:function(){return sessionStorage.getItem(e.SESSION_NEXT_KEY)}},{key:"clearNext",value:function(){sessionStorage.removeItem(e.SESSION_NEXT_KEY)}},{key:"storeOAuthAccessToken",value:function(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}},{key:"reset",value:function(){var e=this;this.logger.info("AuthService: Clearing access token and setting AuthState to NotAuthenticated."),this.accessToken.next(void 0),this.changeAuthState(Uj.NotAuthenticated),this.ngZone.run(function(){return e.router.navigate([""])})}},{key:"logOut",value:function(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}},{key:"setTitleWithPhaseDetail",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version," - ").concat(this.phaseService.getPhaseDetail());this.logger.info("AuthService: Setting Title as ".concat(t)),this.titleService.setTitle(t)}},{key:"setLandingPageTitle",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version);this.logger.info("AuthService: Setting LandingPageTitle as ".concat(t)),this.titleService.setTitle(t)}},{key:"isAuthenticated",value:function(){return this.authStateSource.getValue()===Uj.Authenticated}},{key:"changeAuthState",value:function(e){if(e===Uj.Authenticated){var t="".concat(Date.now(),"-").concat(ZP());this.issueService.setSessionId(t),this.logger.info("AuthService: Successfully authenticated with session: ".concat(t))}this.authStateSource.next(e)}},{key:"generateStateString",value:function(){this.state=ZP(),sessionStorage.setItem("state",this.state)}},{key:"isReturnedStateSame",value:function(e){return e===sessionStorage.getItem("state")}},{key:"startOAuthProcess",value:function(){this.logger.info("AuthService: Starting authentication");var e=this.phaseService.githubRepoPermissionLevel();this.changeAuthState(Uj.AwaitingAuthentication),this.generateStateString(),this.redirectToOAuthPage(encodeURI("".concat(HP.githubUrl,"/login/oauth/authorize?client_id=").concat(HP.clientId,"&scope=").concat(e,",read:user&state=").concat(this.state))),this.logger.info("AuthService: Redirecting for Github authentication")}},{key:"redirectToOAuthPage",value:function(e){null!=e&&(window.location.href=e)}},{key:"navigateToLandingPage",value:function(){var e=this.getNext();e&&this.phaseService.isValidRoute(e)?this.router.navigateByUrl(e):this.router.navigateByUrl(this.phaseService.currentPhase)}}])}();return e.SESSION_NEXT_KEY="next",e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Cc),$i(_F),$i(SF),$i(Hj),$i(Nj),$i(wF),$i(Bj),$i(Ah),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Vj={profileName:{required:!0,validate:function(e){return!!e}},repoName:{required:!0,validate:function(e){return!!e.match(/\w+\/\w+/g)}}},Gj=function(e){return function(e,t){return Object.entries(t).every(function(t){var n=T(t,2),i=n[0],r=n[1];return!r.required||i in e&&r.validate(e[i])})}(e,Vj)},Wj=new Error("profiles.json is malformed"),Zj=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t},[{key:"fetchExternalProfiles",value:function(){var e=this;return this.githubService.getProfilesData().then(function(e){return e.json()}).then(function(e){return e.profiles||[]}).then(function(t){return e.validateProfiles(t),t})}},{key:"validateProfiles",value:function(e){if(!e.every(Gj))throw Wj}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Qj=function(){var e=function(){return m(function e(t){g(this,e),this.dialogRef=t},[{key:"ngOnInit",value:function(){}},{key:"onClick",value:function(){this.dialogRef.close()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL))},e.\u0275cmp=yt({type:e,selectors:[["app-json-parse-error-dialog"]],decls:14,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","center",2,"max-width","390px"],["mat-dialog-actions","","align","center"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1,'Error in "profiles.json" format'),wo(),ko(2,"div",1),ko(3,"p",2),au(4,' The format of the "profiles.json" file is not as required. You might not have included '),ko(5,"code"),au(6,"profileName"),wo(),au(7," and "),ko(8,"code"),au(9,"repoName"),wo(),au(10," keys. Please refer to our User Guide for the correct format. "),wo(),wo(),ko(11,"div",3),ko(12,"button",4),Ao("click",function(){return t.onClick()}),au(13,"Ok"),wo(),wo())},directives:[eA,tA,nA,yM],styles:[""]}),e}();function $j(e,t){if(1&e){var n=xo();ko(0,"mat-option",7),Ao("click",function(){var e=ln(n).$implicit;return Fo().selectProfile(e)}),au(1),wo()}if(2&e){var i=t.$implicit;_o("value",i.profileName),Ns(1),ou(i.profileName)}}var Kj=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.errorDialog=t,this.profileService=n,this.errorHandlingService=i,this.ANIMATION_DURATION=250,this.profiles=[],this.blankProfile={profileName:"",repoName:""},this.animationActivated=!1,this.selectedProfile=this.blankProfile,this.selectedProfileEmitter=new jl,this.profilesData={isDirectoryMessageVisible:!1,fileName:null,fileDirectory:null}},[{key:"ngOnInit",value:function(){this.initProfiles()}},{key:"fileSelectorInitiation",value:function(e){var t=this;this.animationActivated=!0,setTimeout(function(){t.animationActivated=!1,e.click()},this.ANIMATION_DURATION)}},{key:"fileSelected",value:function(e){var t=this,n=e.target,i=n.files[0],r=new FileReader;r.onload=function(){if(!(r.result instanceof ArrayBuffer))try{var e=JSON.parse(r.result).profiles;t.profileService.validateProfiles(e),t.profiles=e.concat(t.profiles).filter(function(e){return!!e}),n.value=""}catch(e){t.openErrorDialog()}},r.readAsText(i)}},{key:"initProfiles",value:function(){var e=this;this.profileService.fetchExternalProfiles().then(function(t){e.profiles=e.profiles.concat(t).filter(function(e){return!!e})}).then(function(){return e.setUrlEncodedProfile(e.profiles)}).catch(function(t){t===Wj?e.openErrorDialog():e.errorHandlingService.handleError(t)})}},{key:"openErrorDialog",value:function(){this.errorDialog.open(Qj)}},{key:"selectProfile",value:function(e){e===this.blankProfile||Gj(e)?this.selectedProfileEmitter.emit(e):this.openErrorDialog()}},{key:"setUrlEncodedProfile",value:function(e){var t=this;if(this.urlEncodedSessionName){var n=e.find(function(e){return e.profileName===t.urlEncodedSessionName});n?(this.selectedProfile.profileName=this.urlEncodedSessionName,this.selectProfile(n)):this.errorHandlingService.handleError(new Error("Invalid URL provided session"))}}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(KL),yo(Zj),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-profiles"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{selectedProfileEmitter:"selectedProfileEmitter"},decls:12,vars:3,consts:[[1,"profile-field"],[3,"value"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["type","file","accept",".json",2,"display","none",3,"change"],["fileInput",""],["type","button","mat-icon-button","","disableRipple","true","matTooltip","Configure your custom settings",1,"profile-input",3,"click","mousedown","mouseleave"],[3,"value","click"]],template:function(e,t){if(1&e){var n=xo();ko(0,"mat-form-field",0),ko(1,"mat-label"),au(2,"Select Session"),wo(),ko(3,"mat-select",1),ko(4,"mat-option",2),Ao("click",function(){return t.selectProfile(t.blankProfile)}),au(5,"None"),wo(),go(6,$j,2,2,"mat-option",3),wo(),wo(),ko(7,"input",4,5),Ao("change",function(e){return t.fileSelected(e)}),wo(),ko(9,"button",6),Ao("click",function(){ln(n);var e=vo(8);return t.fileSelectorInitiation(e)})("mousedown",function(){return t.animationActivated=!0})("mouseleave",function(){return t.animationActivated=!1}),ko(10,"mat-icon"),au(11,"folder_open"),wo(),wo()}2&e&&(Ns(3),_o("value",t.selectedProfile.profileName),Ns(3),_o("ngForOf",t.profiles),Ns(4),_o("@triggerFileInput",t.animationActivated?"pressed":"normal"))},directives:[JC,zC,zO,Dx,Ld,yM,XO,bL],styles:[".profile-field[_ngcontent-%COMP%]{width:90%}.profile-input[_ngcontent-%COMP%]{width:10%;text-align:right}"],data:{animation:[_p("triggerFileInput",[Sp("normal",wp({})),Sp("pressed",wp({color:"orange"})),Tp("normal => pressed",[bp("0.25s ease")]),Tp("pressed => normal",[bp("0.25s ease")])])]}}),e}();function Jj(e,t){if(1&e&&(ko(0,"button",9),ko(1,"div"),au(2,"Submit"),wo(),wo()),2&e){var n=Fo();_o("disabled",n.profileForm.invalid||n.isSettingUpSession)}}function Xj(e,t){1&e&&(ko(0,"div",10),So(1,"mat-spinner",11),wo()),2&e&&(Ns(1),_o("diameter",47))}var eq=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.formBuilder=t,this.logger=n,this.githubService=i,this.phaseService=r,this.authService=s,this.errorHandlingService=a,this.sessionEmitter=new jl},[{key:"ngOnInit",value:function(){this.isSettingUpSession=!1,this.initProfileForm()}},{key:"onProfileSelect",value:function(e){this.profileForm.get("session").setValue(e.repoName),this.sessionEmitter.emit(e.repoName)}},{key:"setupSession",value:function(){var e=this;if(!this.profileForm.invalid){this.isSettingUpSession=!0;var t=this.profileForm.get("session").value,n=this.getOrgDetails(t),i=this.getDataRepoDetails(t);window.localStorage.setItem("org",n),window.localStorage.setItem("dataRepo",i),this.githubService.storeOrganizationDetails(n,i),this.logger.info("SessionSelectionComponent: Selected Settings Repo: ".concat(t)),this.phaseService.storeSessionData().subscribe(function(){try{e.authService.startOAuthProcess()}catch(t){e.errorHandlingService.handleError(t),e.authService.changeAuthState(Uj.NotAuthenticated)}},function(t){e.errorHandlingService.handleError(t),e.isSettingUpSession=!1},function(){return e.isSettingUpSession=!1})}}},{key:"getOrgDetails",value:function(e){return e.split("/")[0]}},{key:"getDataRepoDetails",value:function(e){return e.split("/")[1]}},{key:"initProfileForm",value:function(){this.profileForm=this.formBuilder.group({session:["",Hk.required]})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(aS),yo(cF),yo(_F),yo(Nj),yo(zj),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-session-selection"]],inputs:{urlEncodedSessionName:"urlEncodedSessionName"},outputs:{sessionEmitter:"sessionEmitter"},decls:12,vars:4,consts:[[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[3,"formGroup","ngSubmit"],[1,"login-field",3,"urlEncodedSessionName","selectedProfileEmitter"],[1,"login-field"],["matInput","","placeholder","Settings Location (Org/Repo)","formControlName","session","required",""],["class","sign-in-button","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","spinner-centralize",4,"ngIf"],["type","submit","mat-stroked-button","","color","primary",1,"sign-in-button",3,"disabled"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(ko(0,"mat-card",0),ko(1,"mat-card-header",1),ko(2,"mat-card-title",2),au(3," Select Your Session "),wo(),wo(),ko(4,"form",3),Ao("ngSubmit",function(){return t.setupSession()}),ko(5,"app-profiles",4),Ao("selectedProfileEmitter",function(e){return t.onProfileSelect(e)}),wo(),ko(6,"mat-card-content"),ko(7,"mat-form-field",5),So(8,"input",6),wo(),ko(9,"mat-card-actions"),go(10,Jj,3,1,"button",7),go(11,Xj,2,1,"div",8),wo(),wo(),wo(),wo()),2&e&&(Ns(4),_o("formGroup",t.profileForm),Ns(1),_o("urlEncodedSessionName",t.urlEncodedSessionName),Ns(5),_o("ngIf",!t.isSettingUpSession),Ns(1),_o("ngIf",t.isSettingUpSession))},directives:[MM,LM,DM,zw,hw,$w,Kj,TM,JC,IL,Pk,dw,Jw,eS,CM,Od,yM,TI],styles:[".login-field[_ngcontent-%COMP%]{width:100%}.sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}",".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e}(),tq=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.authService=t,this.phaseService=n,this.userService=i,this.errorHandlingService=r,this.githubEventService=s,this.logger=a,this.router=o},[{key:"ngOnInit",value:function(){}},{key:"onGithubWebsiteClicked",value:function(){window.open("https://github.com/","_blank"),window.location.reload()}},{key:"logIntoAnotherAccount",value:function(){this.logger.info("ConfirmLoginComponent: Logging into another account"),this.authService.startOAuthProcess()}},{key:"handleAuthSuccess",value:function(){this.authService.setTitleWithPhaseDetail(),this.authService.changeAuthState(Uj.Authenticated),this.authService.navigateToLandingPage()}},{key:"completeLoginProcess",value:function(){var e=this;this.authService.changeAuthState(Uj.AwaitingAuthentication),this.phaseService.setPhaseOwners(this.currentSessionOrg,this.username),this.userService.createUserModel(this.username).pipe(ge(function(){return e.phaseService.sessionSetup()}),ge(function(){return e.githubEventService.setLatestChangeEvent()})).subscribe(function(){e.handleAuthSuccess()},function(t){e.authService.changeAuthState(Uj.NotAuthenticated),e.errorHandlingService.handleError(t),e.logger.info("ConfirmLoginComponent: Completion of login process failed with an error: ".concat(t))})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zj),yo(Nj),yo(SF),yo(hF),yo(Bj),yo(cF),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-auth-confirm-login"]],inputs:{username:"username",currentSessionOrg:"currentSessionOrg"},decls:10,vars:1,consts:[["mat-stroked-button","","color","primary",1,"sign-in-button",3,"click"],[1,"logo"],["src","./assets/images/github-logo.png","alt","github-logo",1,"github-logo"],[1,"mat-body-1",2,"margin-top","20px"],["href","https://github.com/",3,"click"]],template:function(e,t){1&e&&(ko(0,"button",0),Ao("click",function(){return t.completeLoginProcess()}),ko(1,"span",1),So(2,"img",2),wo(),ko(3,"span"),au(4),wo(),wo(),ko(5,"div",3),au(6," To change account, please sign into the desired account from the "),ko(7,"a",4),Ao("click",function(){return t.onGithubWebsiteClicked()}),au(8,"official Github website"),wo(),au(9,".\n"),wo()),2&e&&(Ns(4),uu(" Continue as ",t.username," "))},directives:[yM],styles:[".sign-in-button[_ngcontent-%COMP%]{background:#f7fcfe;line-height:45px;border:1px solid currentColor;width:100%}.logo[_ngcontent-%COMP%]{align-items:center;display:inline-flex;margin:0 3px 3px}.github-logo[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}"]}),e}();function nq(e,t){if(1&e&&(ko(0,"div",1),So(1,"app-session-selection",2),wo()),2&e){var n=Fo();Ns(1),_o("urlEncodedSessionName",n.urlEncodedSessionName)}}function iq(e,t){if(1&e&&(ko(0,"div"),So(1,"app-auth-confirm-login",10),wo()),2&e){var n=Fo(2);Ns(1),_o("username",n.currentUserName)("currentSessionOrg",n.currentSessionOrg)}}function rq(e,t){1&e&&(ko(0,"div",11),So(1,"mat-spinner",12),wo()),2&e&&(Ns(1),_o("diameter",47))}function sq(e,t){if(1&e){var n=xo();ko(0,"div",1),ko(1,"mat-card",3),ko(2,"mat-card-header",4),ko(3,"mat-card-title",5),au(4," Confirm Login Account "),wo(),ko(5,"mat-card-subtitle"),au(6),wo(),wo(),ko(7,"div",6),ko(8,"button",7),Ao("click",function(){return ln(n),Fo().goToSessionSelect()}),ko(9,"mat-icon"),au(10,"arrow_back_ios"),wo(),wo(),wo(),go(11,iq,2,2,"div",8),go(12,rq,2,1,"div",9),wo(),wo()}if(2&e){var i=Fo();Ns(6),uu(" Session on ",i.currentSessionOrg," "),Ns(2),_o("disabled",i.isUserAuthenticating()),Ns(3),_o("ngIf",!i.isUserAuthenticating()),Ns(1),_o("ngIf",i.isUserAuthenticating())}}var aq=[{path:"",component:function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.appService=t,this.githubService=n,this.authService=i,this.userService=r,this.errorHandlingService=s,this.router=a,this.phaseService=o,this.ngZone=u,this.activatedRoute=l,this.logger=c},[{key:"ngOnInit",value:function(){this.logger.startSession();var e=this.activatedRoute.snapshot.queryParamMap.get("code"),t=this.activatedRoute.snapshot.queryParamMap.get("state");this.authService.isAuthenticated()?this.router.navigate([this.phaseService.currentPhase]):(this.initAccessTokenSubscription(),this.initAuthStateSubscription(),this.createProfileFromUrlQueryParams(),e&&(this.authService.changeAuthState(Uj.AwaitingAuthentication),this.restoreOrgDetailsFromLocalStorage(),this.logger.info("AuthComponent: Obtained authorisation code from Github"),this.fetchAccessToken(e,t)))}},{key:"fetchAccessToken",value:function(e,t){var n=this;this.authService.isReturnedStateSame(t)?(this.logger.info("AuthComponent: Retrieving access token from Github"),fetch("".concat(HP.accessTokenUrl,"/").concat(e,"/client_id/").concat(HP.clientId)).then(function(e){return e.json()}).then(function(e){if(e.error)throw new Error(e.error);n.authService.storeOAuthAccessToken(e.token),n.logger.info("AuthComponent: Sucessfully obtained access token")}).catch(function(e){n.logger.info("AuthComponent: Error in data fetched from access token URL: ".concat(e)),n.errorHandlingService.handleError(e),n.authService.changeAuthState(Uj.NotAuthenticated)})):this.logger.info("AuthComponent: Received incorrect state ".concat(t,", continue waiting for correct state"))}},{key:"ngOnDestroy",value:function(){this.authStateSubscription&&this.authStateSubscription.unsubscribe(),this.accessTokenSubscription&&this.accessTokenSubscription.unsubscribe()}},{key:"checkAppIsOutdated",value:function(){return this.appService.isApplicationOutdated().pipe(ie(function(e){if(e)throw new Error("Please update to the latest version of CATcher.")}))}},{key:"updateSession",value:function(e){this.sessionInformation=e}},{key:"goToSessionSelect",value:function(){this.authService.changeAuthState(Uj.NotAuthenticated)}},{key:"isUserNotAuthenticated",value:function(){return this.authState===Uj.NotAuthenticated}},{key:"isUserAuthenticating",value:function(){return this.authState===Uj.AwaitingAuthentication}},{key:"isAwaitingOAuthUserConfirm",value:function(){return this.authState===Uj.ConfirmOAuthUser}},{key:"currentSessionOrg",get:function(){return this.sessionInformation?this.getOrgDetails(this.sessionInformation):window.localStorage.getItem("org")}},{key:"restoreOrgDetailsFromLocalStorage",value:function(){var e=window.localStorage.getItem("org"),t=window.localStorage.getItem("dataRepo");this.githubService.storeOrganizationDetails(e,t),this.phaseService.setSessionData()}},{key:"getOrgDetails",value:function(e){return e.split("/")[0]}},{key:"initAuthStateSubscription",value:function(){var e=this;this.authStateSubscription=this.authService.currentAuthState.subscribe(function(t){e.ngZone.run(function(){e.authState=t})})}},{key:"initAccessTokenSubscription",value:function(){var e=this;this.accessTokenSubscription=this.authService.accessToken.pipe(Rh(function(e){return!!e}),ge(function(){return e.userService.getAuthenticatedUser()})).subscribe(function(t){e.ngZone.run(function(){e.currentUserName=t.login,e.authService.changeAuthState(Uj.ConfirmOAuthUser)})})}},{key:"createProfileFromUrlQueryParams",value:function(){var e=this.activatedRoute.snapshot.queryParamMap;e.has("session")&&(this.urlEncodedSessionName=e.get("session"))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Tj),yo(_F),yo(zj),yo(SF),yo(hF),yo(M_),yo(Nj),yo(Cc),yo(uy),yo(cF))},e.\u0275cmp=yt({type:e,selectors:[["app-auth"]],decls:2,vars:2,consts:[["class","login-page",4,"ngIf"],[1,"login-page"],[3,"urlEncodedSessionName"],[1,"login-card"],[2,"margin-bottom","20px"],[1,"login-title"],[2,"position","absolute","top","15px","left","15px"],["mat-icon-button","",1,"mat-primary",3,"disabled","click"],[4,"ngIf"],["class","spinner-centralize",4,"ngIf"],[3,"username","currentSessionOrg"],[1,"spinner-centralize"],[3,"diameter"]],template:function(e,t){1&e&&(go(0,nq,2,1,"div",0),go(1,sq,13,4,"div",0)),2&e&&(_o("ngIf",t.isUserNotAuthenticated()),Ns(1),_o("ngIf",t.isUserAuthenticating()||t.isAwaitingOAuthUserConfirm()))},directives:[Od,eq,MM,LM,DM,xM,yM,bL,tq,TI],styles:[".login-page[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center;align-items:center;height:100%;min-height:87.9vh} .mat-card-header-text{margin:0;width:100%;text-align:center}.login-title[_ngcontent-%COMP%]{font-size:30px}.login-card[_ngcontent-%COMP%]{text-align:center;padding:40px 70px 50px}.spinner-centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.or-text[_ngcontent-%COMP%]{color:#9e9e9e;text-align:center;font-size:1.25rem;font-weight:500;line-height:1.6;letter-spacing:.0075em;margin:10px}.login-with-oauth-btn[_ngcontent-%COMP%]{width:100%}.hover-blue[_ngcontent-%COMP%]:hover{background:#f7fcfe}.secondary-header-title[_ngcontent-%COMP%]{font-size:25px;float:left;margin-bottom:15px}.link[_ngcontent-%COMP%]{color:#24292e;font-weight:400;font-size:14px}.link[_ngcontent-%COMP%]:hover{color:#3f51b5;cursor:pointer}.centralize[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.error-text[_ngcontent-%COMP%]{font-size:30px;font-weight:500;text-align:center}"]}),e}()}],oq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(aq)],z_]}),e}(),uq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[oq,YP,zd]]}),e}(),lq=function(){var e=function(){return m(function e(t,n){g(this,e),this.auth=t,this.router=n},[{key:"canActivate",value:function(e,t){return this.auth.isAuthenticated()?(this.auth.clearNext(),!0):(this.auth.storeNext(t),this.router.navigate([""]),!1)}},{key:"canLoad",value:function(e,t){return!!this.auth.isAuthenticated()||(this.router.navigate([""]),!1)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(zj),$i(M_))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),cq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YP,mk.forChild()]]}),e}(),dq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,RP,z_]]}),e}();function hq(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function pq(e,t){return function(n,i){t(n,i,e)}}var fq=["searchSelectInput"],mq=["innerSelectSearch"];function gq(e,t){if(1&e){var n=xo();ko(0,"mat-checkbox",9),Ao("change",function(e){return ln(n),Fo()._emitSelectAllBooleanToParent(e.checked)}),wo()}if(2&e){var i=Fo();_o("color",null==i.matFormField?null:i.matFormField.color)("checked",i.toggleAllCheckboxChecked)("indeterminate",i.toggleAllCheckboxIndeterminate)("matTooltip",i.toggleAllCheckboxTooltipMessage)("matTooltipPosition",i.toogleAllCheckboxTooltipPosition)}}function vq(e,t){1&e&&So(0,"mat-spinner",10)}function yq(e,t){1&e&&qo(0,1,["*ngIf","clearIcon; else defaultIcon"])}function _q(e,t){1&e&&(ko(0,"mat-icon"),au(1,"close"),wo())}function bq(e,t){if(1&e){var n=xo();ko(0,"button",11),Ao("click",function(){return ln(n),Fo()._reset(!0)}),go(1,yq,1,0,"ng-content",12),go(2,_q,2,0,"ng-template",null,13,ic),wo()}if(2&e){var i=vo(3),r=Fo();Ns(1),_o("ngIf",r.clearIcon)("ngIfElse",i)}}function kq(e,t){if(1&e&&(ko(0,"div",14),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.noEntriesFoundLabel,"\n")}}var wq,Sq=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],Eq=function(e,t){return{"mat-select-search-inner-multiple":e,"mat-select-search-inner-toggle-all":t}},Tq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Et({type:e,selectors:[["","ngxMatSelectSearchClear",""]]}),e}(),Dq=wq=function(){return m(function e(t,n,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;g(this,e),this.matSelect=t,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=s,this.liveAnnouncer=a,this.matFormField=o,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new jl,this.onTouched=function(e){},this._options$=new lg(null),this.optionsList$=this._options$.pipe(wg(function(e){return e?e.changes.pipe(ie(function(e){return e.toArray()}),Mg(e.toArray())):Oh(null)})),this.optionsLength$=this.optionsList$.pipe(ie(function(e){return e?e.length:0})),this._formControl=new Pw(""),this._showNoEntriesFound$=fg([this._formControl.valueChanges,this.optionsLength$]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return r.noEntriesFoundLabel&&n&&i===r.getOptionsLengthOffset()})),this._onDestroy=new ee},[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)}},{key:"ngOnInit",value:function(){var e=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(eM(1),OS(this._onDestroy)).subscribe(function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()}),this.matSelect.openedChange.pipe(Dg(1)).pipe(OS(this._onDestroy)).subscribe(function(){e.matSelect._keyManager?e.matSelect._keyManager.change.pipe(OS(e._onDestroy)).subscribe(function(){return e.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];e._options.changes.pipe(OS(e._onDestroy)).subscribe(function(){setTimeout(function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],r=e.matSelect._keyManager;r&&e.matSelect.panelOpen&&((!e.matSelect.compareWith(t,i)||!r.activeItem||!n.find(function(t){return e.matSelect.compareWith(t,r.activeItem)}))&&r.setFirstItemActive(),setTimeout(function(){e.updateInputWidth()}),e.disableScrollToActiveOnOptionsChanged||e.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe(OS(this._onDestroy)).subscribe(function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(OS(this._onDestroy)).subscribe(function(){e.matSelect.panelOpen&&e.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(OS(this._onDestroy)).subscribe(function(){e.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(e){this.toggleAll.emit(e)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||32===e.keyCode||this.preventHomeEndKeyPropagation&&(36===e.keyCode||35===e.keyCode))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&13===e.keyCode&&setTimeout(function(){return t._focus()}),!0===this.enableClearOnEscapePressed&&27===e.keyCode&&this.value&&(this._reset(!0),e.stopPropagation())}},{key:"_handleKeyup",value:function(e){if(38===e.keyCode||40===e.keyCode){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(function(e){return e.id===t});if(-1!==n){var i=this._options.toArray()[n];this.liveAnnouncer.announce(i.viewValue+" "+this.getAriaIndex(n)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(e){return 0===this.getOptionsLengthOffset()?e+1:e}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(e){var t=this;this._formControl.valueChanges.pipe(Rh(function(e){return e!==t._lastExternalInputValue}),Zg(function(){return t._lastExternalInputValue=void 0}),OS(this._onDestroy)).subscribe(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}}},{key:"_reset",value:function(e){this._formControl.setValue(""),e&&this._focus()}},{key:"initMultipleHandling",value:function(){var e=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){var n=!1;if(e.matSelect.multiple&&(e.alwaysRestoreSelectedOptionsMulti||e._formControl.value&&e._formControl.value.length)&&e.previousSelectedValues&&Array.isArray(e.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var i=e.matSelect.options.map(function(e){return e.value});e.previousSelectedValues.forEach(function(r){!t.some(function(t){return e.matSelect.compareWith(t,r)})&&!i.some(function(t){return e.matSelect.compareWith(t,r)})&&(t.push(r),n=!0)})}e.previousSelectedValues=t,n&&e.matSelect._onChange(t)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var e=this.getMatOptionHeight(),t=this.matSelect._keyManager.activeItemIndex||0,n=xx(t,this.matSelect.options,this.matSelect.optionGroups),i=(this.matOption?-1:0)+n+t,r=this.matSelect.panel.nativeElement.scrollTop,s=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-s)/e),o=Math.round((r+s)/e)-1;o>=i?this.matSelect.panel.nativeElement.scrollTop=i*e:o+a<=i&&(this.matSelect.panel.nativeElement.scrollTop=(i+1)*e-(256-s))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}])}();Dq.\u0275fac=function(e){return new(e||Dq)(yo(zO),yo(sl),yo(lE),yo(Dx,8),yo($E),yo(JC,8))},Dq.\u0275cmp=yt({type:Dq,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,n){var i;(1&e&&Jl(n,Tq,5),2&e)&&($l(i=Xl())&&(t.clearIcon=i.first))},viewQuery:function(e,t){var n;(1&e&&(Kl(fq,7,Iu),Kl(mq,7,Iu)),2&e)&&($l(n=Xl())&&(t.searchSelectInput=n.first),$l(n=Xl())&&(t.innerSelectSearch=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&Qo("mat-select-search-inside-mat-option",t.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[Du([{provide:Ok,useExisting:Pe(function(){return wq}),multi:!0}])],ngContentSelectors:[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(e,t){1&e&&(jo(Sq),So(0,"input",0),ko(1,"div",1,2),go(3,gq,1,5,"mat-checkbox",3),ko(4,"input",4,5),Ao("keydown",function(e){return t._handleKeydown(e)})("keyup",function(e){return t._handleKeyup(e)})("blur",function(){return t.onBlur()}),wo(),go(6,vq,1,0,"mat-spinner",6),go(7,bq,4,2,"button",7),qo(8),wo(),go(9,kq,2,1,"div",8),Pl(10,"async")),2&e&&(Ns(1),_o("ngClass",Ol(11,Eq,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),Ns(2),_o("ngIf",t._isToggleAllCheckboxVisible()),Ns(1),_o("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),fo("aria-label",t.ariaLabel),Ns(2),_o("ngIf",t.searching),Ns(1),_o("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),Ns(2),_o("ngIf",Fl(10,9,t._showNoEntriesFound$)))},directives:[Cd,Od,Pk,dw,Zw,BM,XO,TI,yM,bL],pipes:[Ud],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Dq.ctorParameters=function(){return[{type:zO,decorators:[{type:nr,args:[zO]}]},{type:sl},{type:lE},{type:Dx,decorators:[{type:ir},{type:nr,args:[Dx]}]},{type:$E},{type:JC,decorators:[{type:ir},{type:nr,args:[JC]}]}]},hq([rc()],Dq.prototype,"placeholderLabel",void 0),hq([rc()],Dq.prototype,"type",void 0),hq([rc()],Dq.prototype,"noEntriesFoundLabel",void 0),hq([rc()],Dq.prototype,"indexAndLengthScreenReaderText",void 0),hq([rc()],Dq.prototype,"clearSearchInput",void 0),hq([rc()],Dq.prototype,"searching",void 0),hq([rc()],Dq.prototype,"disableInitialFocus",void 0),hq([rc()],Dq.prototype,"enableClearOnEscapePressed",void 0),hq([rc()],Dq.prototype,"preventHomeEndKeyPropagation",void 0),hq([rc()],Dq.prototype,"disableScrollToActiveOnOptionsChanged",void 0),hq([rc()],Dq.prototype,"ariaLabel",void 0),hq([rc()],Dq.prototype,"showToggleAllCheckbox",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxChecked",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxIndeterminate",void 0),hq([rc()],Dq.prototype,"toggleAllCheckboxTooltipMessage",void 0),hq([rc()],Dq.prototype,"toogleAllCheckboxTooltipPosition",void 0),hq([rc()],Dq.prototype,"hideClearSearchButton",void 0),hq([rc()],Dq.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),hq([sc()],Dq.prototype,"toggleAll",void 0),hq([Ai("searchSelectInput",{read:Iu,static:!0})],Dq.prototype,"searchSelectInput",void 0),hq([Ai("innerSelectSearch",{read:Iu,static:!0})],Dq.prototype,"innerSelectSearch",void 0),hq([Li(Tq,{static:!1})],Dq.prototype,"clearIcon",void 0),hq([ac("class.mat-select-search-inside-mat-option")],Dq.prototype,"isInsideMatOption",null),Dq=wq=hq([pq(0,nr(zO)),pq(3,ir()),pq(3,nr(Dx)),pq(5,ir()),pq(5,nr(JC))],Dq);var xq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,sS,_M,zM,kL,DI,nI]]}),e}(),Cq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[YP,cq,gI,xq,mk.forChild()]]}),e}(),Mq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,YP]]}),e}(),Lq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Aq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild(),xq]]}),e}(),Oq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd]]}),e}(),Iq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd]]}),e}(),Rq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Pq=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,YP,Cq,Mq,mk.forChild()]]}),e}(),Fq=D(D(D(D({},LF.phaseBugReporting,D(D(D({},kF.Student,{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!0,isIssueDeletable:!0,isIssueTitleEditable:!0,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1})),LF.phaseTeamResponse,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!1,isTutorResponseEditable:!1})),LF.phaseTesterResponse,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!0,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!0,isTesterResponseEditable:!0,isTutorResponseEditable:!1})),LF.phaseModeration,D(D(D({},kF.Student,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!1,isIssueLabelsEditable:!1,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!1}),kF.Tutor,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0}),kF.Admin,{isIssueCreatable:!1,isIssueDeletable:!1,isIssueTitleEditable:!1,isIssueDescriptionEditable:!0,isIssueLabelsEditable:!0,isTeamResponseEditable:!1,isTesterResponseEditable:!1,isTutorResponseEditable:!0})),Yq=function(){var e=function(){return m(function e(t,n){g(this,e),this.userService=t,this.phaseService=n},[{key:"isIssueCreatable",value:function(){return this.askForPermission("User","isIssueCreatable")}},{key:"isIssueDeletable",value:function(){return this.askForPermission("User","isIssueDeletable")}},{key:"isIssueTitleEditable",value:function(){return this.askForPermission("User","isIssueTitleEditable")}},{key:"isIssueDescriptionEditable",value:function(){return this.askForPermission("User","isIssueDescriptionEditable")}},{key:"isIssueLabelsEditable",value:function(){return this.askForPermission("User","isIssueLabelsEditable")}},{key:"isTesterResponseEditable",value:function(){return this.askForPermission("User","isTesterResponseEditable")}},{key:"isTeamResponseEditable",value:function(){return this.askForPermission("User","isTeamResponseEditable")}},{key:"isTutorResponseEditable",value:function(){return this.askForPermission("User","isTutorResponseEditable")}},{key:"isIssueEditable",value:function(){return this.isIssueTitleEditable()||this.isIssueDescriptionEditable()||this.isIssueLabelsEditable()||this.isTeamResponseEditable()||this.isTesterResponseEditable()||this.isTutorResponseEditable()}},{key:"askForPermission",value:function(e,t){switch(e){case"Phase":return Fq[this.phaseService.currentPhase][t];case"User":return Fq[this.phaseService.currentPhase][this.userService.currentUser.role][t];default:return!1}}}])}();return e.\u0275fac=function(t){return new(t||e)($i(SF),$i(Nj))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function jq(e,t){1&e&&(ko(0,"div",2),So(1,"mat-spinner",3),wo()),2&e&&(Ns(1),_o("diameter",47))}function qq(e,t){if(1&e){var n=xo();ko(0,"app-issue-description",13),Ao("changeEditState",function(e){return ln(n),Fo(2).updateDescriptionEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("isEditing",i.isIssueDescriptionEditing)("issue",i.issue)}}function Nq(e,t){if(1&e){var n=xo();ko(0,"app-team-response",14),Ao("updateEditState",function(e){return ln(n),Fo(2).updateTeamResponseEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTeamResponseEditing)}}function Hq(e,t){if(1&e){var n=xo();ko(0,"app-new-team-response",4),Ao("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}2&e&&_o("issue",Fo(2).issue)}function Bq(e,t){1&e&&So(0,"app-parse-error",15),2&e&&_o("phase","Team Response")}function Uq(e,t){if(1&e){var n=xo();ko(0,"app-tester-response",14),Ao("updateEditState",function(e){return ln(n),Fo(2).updateTesterResponseEditState(e)})("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTesterResponseEditing)}}function zq(e,t){1&e&&So(0,"app-parse-error",15),2&e&&_o("phase","Tester Response")}function Vq(e,t){1&e&&So(0,"app-team-accepted")}function Gq(e,t){if(1&e){var n=xo();ko(0,"app-issue-dispute",16),Ao("issueUpdated",function(e){return ln(n),Fo(2).updateIssue(e)})("updateEditState",function(e){return ln(n),Fo(2).updateTutorResponseEditState(e)}),wo()}if(2&e){var i=Fo(2);_o("issue",i.issue)("isEditing",i.isTutorResponseEditing)}}function Wq(e,t){if(1&e){var n=xo();ko(0,"app-issue-label",19),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo()}2&e&&_o("issue",Fo(3).issue)}function Zq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-issue-label",20),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function Qq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-issue-label",21),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function $q(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-assignee-component",22),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)("team",i.issue.teamAssigned)}}function Kq(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),So(2,"app-duplicated-issues-component",23),So(3,"br"),wo()),2&e){var n=Fo(3);Ns(2),_o("issue",n.issue)}}function Jq(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-duplicate-of-component",4),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function Xq(e,t){1&e&&(ko(0,"div",24),au(1," * Need your resolution. An issue cannot have both duplicated issues and duplicated status. "),wo())}function eN(e,t){if(1&e){var n=xo();ko(0,"div"),So(1,"mat-divider"),ko(2,"app-unsure-checkbox",4),Ao("issueUpdated",function(e){return ln(n),Fo(3).updateIssue(e)}),wo(),wo()}if(2&e){var i=Fo(3);Ns(2),_o("issue",i.issue)}}function tN(e,t){if(1&e&&(ko(0,"div"),go(1,Wq,1,1,"app-issue-label",17),go(2,Zq,3,1,"div",1),go(3,Qq,3,1,"div",1),go(4,$q,3,2,"div",1),go(5,Kq,4,1,"div",1),Pl(6,"async"),go(7,Jq,3,1,"div",1),Pl(8,"async"),go(9,Xq,2,0,"div",18),Pl(10,"async"),Pl(11,"async"),go(12,eN,3,1,"div",1),wo()),2&e){var n=Fo(2);Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.SEVERITY_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.TYPE_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.RESPONSE_LABEL)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.ASSIGNEE)),Ns(1),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&0!==Fl(6,8,n.issueService.getDuplicateIssuesFor(n.issue)).length),Ns(2),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&(n.issue.duplicateOf||0===Fl(8,10,n.issueService.getDuplicateIssuesFor(n.issue)).length)),Ns(2),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.DUPLICATE)&&0!==Fl(10,12,n.issueService.getDuplicateIssuesFor(n.issue)).length&&(n.issue.duplicateOf||0===Fl(11,14,n.issueService.getDuplicateIssuesFor(n.issue)).length)),Ns(3),_o("ngIf",n.isComponentVisible(n.issueComponentsEnum.UNSURE_CHECKBOX))}}function nN(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-issue-title",4),Ao("issueUpdated",function(e){return ln(n),Fo().updateIssue(e)}),wo(),So(2,"mat-divider"),ko(3,"div",5),ko(4,"div",6),go(5,qq,1,2,"app-issue-description",7),go(6,Nq,1,2,"app-team-response",8),go(7,Hq,1,1,"app-new-team-response",9),go(8,Bq,1,1,"app-parse-error",10),go(9,Uq,1,2,"app-tester-response",8),go(10,zq,1,1,"app-parse-error",10),go(11,Vq,1,0,"app-team-accepted",1),go(12,Gq,1,2,"app-issue-dispute",11),wo(),ko(13,"div",12),go(14,tN,13,16,"div",1),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("issue",i.issue),Ns(4),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_POST)),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TEAM_RESPONSE)&&i.issue.teamResponse),Ns(1),_o("ngIf",i.hasNoTeamResponse()),Ns(1),_o("ngIf",i.hasTeamResponseParseError()),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.testerResponses&&0!==i.issue.testerResponses.length),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.testerResponseError),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.issue.teamAccepted),Ns(1),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.ISSUE_DISPUTE)),Ns(2),_o("ngIf",i.isComponentVisible(i.issueComponentsEnum.NEW_TEAM_RESPONSE)&&i.issue.teamResponse||i.isComponentVisible(i.issueComponentsEnum.TESTER_RESPONSE)&&i.userService.currentUser.role===i.userRole.Student||i.isComponentVisible(i.issueComponentsEnum.ISSUE_DISPUTE)||!i.isComponentVisible(i.issueComponentsEnum.TEAM_RESPONSE))}}var iN=(function(e){e[e.TESTER_POST=0]="TESTER_POST",e[e.TEAM_RESPONSE=1]="TEAM_RESPONSE",e[e.NEW_TEAM_RESPONSE=2]="NEW_TEAM_RESPONSE",e[e.TESTER_RESPONSE=3]="TESTER_RESPONSE",e[e.ISSUE_DISPUTE=4]="ISSUE_DISPUTE",e[e.SEVERITY_LABEL=5]="SEVERITY_LABEL",e[e.TYPE_LABEL=6]="TYPE_LABEL",e[e.RESPONSE_LABEL=7]="RESPONSE_LABEL",e[e.ASSIGNEE=8]="ASSIGNEE",e[e.DUPLICATE=9]="DUPLICATE",e[e.UNSURE_CHECKBOX=10]="UNSURE_CHECKBOX"}(iN||(iN={})),iN),rN=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.errorHandlingService=t,this.permissions=n,this.userService=i,this.issueService=r,this.phaseService=s,this.router=a,this.isIssueLoading=!0,this.isTutorResponseEditing=!1,this.isIssueDescriptionEditing=!1,this.isTeamResponseEditing=!1,this.isTesterResponseEditing=!1,this.issueComponentsEnum=iN,this.userRole=kF},[{key:"ngOnInit",value:function(){this.getAndPollIssue(this.issueId)}},{key:"ngOnChanges",value:function(e){e.issueId.firstChange||(this.stopPolling(),this.isIssueLoading=!0,this.getAndPollIssue(e.issueId.currentValue))}},{key:"ngOnDestroy",value:function(){this.stopPolling()}},{key:"isComponentVisible",value:function(e){return this.issueComponents.includes(e)}},{key:"isEditing",value:function(){return this.isIssueDescriptionEditing||this.isTutorResponseEditing||this.isTeamResponseEditing}},{key:"updateIssue",value:function(e){this.issue=e,this.issueService.updateLocalStore(e)}},{key:"updateDescriptionEditState",value:function(e){this.isIssueDescriptionEditing=e}},{key:"updateTeamResponseEditState",value:function(e){this.isTeamResponseEditing=e}},{key:"updateTesterResponseEditState",value:function(e){this.isTesterResponseEditing=e}},{key:"updateTutorResponseEditState",value:function(e){this.isTutorResponseEditing=e}},{key:"hasNoTeamResponse",value:function(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&!this.issue.teamResponse&&!this.issue.status}},{key:"hasTeamResponseParseError",value:function(){return this.isComponentVisible(this.issueComponentsEnum.NEW_TEAM_RESPONSE)&&this.permissions.isTeamResponseEditable()&&this.issue.teamResponseError&&!!this.issue.status}},{key:"getAndPollIssue",value:function(e){var t=this;this.issueService.getIssue(e).subscribe(function(n){t.isIssueLoading=!1,t.issue=n,t.pollIssue(e)},function(e){t.router.navigateByUrl(t.phaseService.currentPhase).then(function(){t.errorHandlingService.handleError(new Error("Invalid URL provided!"))})})}},{key:"pollIssue",value:function(e){var t=this;this.issueSubscription=this.issueService.pollIssue(e).subscribe(function(e){var n=e.clone(t.phaseService.currentPhase);t.isIssueLoading||(t.isIssueDescriptionEditing||t.isTeamResponseEditing||!t.issue.teamResponse&&n.teamResponse||t.isTesterResponseEditing||t.isTutorResponseEditing)&&n.retainResponses(t.phaseService.currentPhase,t.issue),t.issue=n,t.isIssueLoading=!1},function(n){t.errorHandlingService.handleError(n,function(){return t.pollIssue(e)})})}},{key:"stopPolling",value:function(){this.issueSubscription&&this.issueSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hF),yo(Yq),yo(SF),yo(Hj),yo(Nj),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-view-issue"]],inputs:{issueId:"issueId",issueComponents:"issueComponents"},features:[Ft],decls:2,vars:2,consts:[["class","centralize",4,"ngIf"],[4,"ngIf"],[1,"centralize"],[3,"diameter"],[3,"issue","issueUpdated"],[1,"row"],[1,"column","left"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated",4,"ngIf"],[3,"issue","isEditing","updateEditState","issueUpdated",4,"ngIf"],[3,"issue","issueUpdated",4,"ngIf"],[3,"phase",4,"ngIf"],[3,"issue","isEditing","issueUpdated","updateEditState",4,"ngIf"],[1,"column","right"],["descriptionTitle","Description of Issue",3,"isEditing","issue","changeEditState","issueUpdated"],[3,"issue","isEditing","updateEditState","issueUpdated"],[3,"phase"],[3,"issue","isEditing","issueUpdated","updateEditState"],["attributeName","severity",3,"issue","issueUpdated",4,"ngIf"],["style","margin-top: 15px; color: red",4,"ngIf"],["attributeName","severity",3,"issue","issueUpdated"],["attributeName","type",3,"issue","issueUpdated"],["attributeName","response",3,"issue","issueUpdated"],[3,"issue","team","issueUpdated"],[3,"issue"],[2,"margin-top","15px","color","red"]],template:function(e,t){1&e&&(go(0,jq,2,1,"div",0),go(1,nN,15,10,"div",1)),2&e&&(_o("ngIf",t.isIssueLoading),Ns(1),_o("ngIf",!t.isIssueLoading))},styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}(),sN=function(){var e=function(){return m(function e(t,n,i){var r=this;g(this,e),this.componentFactoryResolver=t,this.injector=n,this.document=i,this.isLoading=new lg(!1),this.spinnerContainerRef=null,this.spinnerComponentRef=null,this.animationMode="indeterminate",this.spinnerTheme="primary",this.classList=[],this.spinnerFactory=this.componentFactoryResolver.resolveComponentFactory(TI),this.isLoading.pipe(PS()).subscribe(function(e){var t=T(e,2),n=t[0],i=t[1];return r.onIsLoadingChange(n,i)})},[{key:"ngOnDestroy",value:function(){this.isLoading.complete(),this.detachSpinnerFromDom(),this.spinnerContainerRef=null}},{key:"addAnimationMode",value:function(e){return this.animationMode=e,this}},{key:"addSpinnerOptions",value:function(e){return this.options=e,this}},{key:"addViewContainerRef",value:function(e){return void 0===e||(this.spinnerContainerRef=e),this}},{key:"addTheme",value:function(e){return this.spinnerTheme=e,this}},{key:"addCssClasses",value:function(e){var t;return this.classList=[],(t=this.classList).push.apply(t,d(e)),this}},{key:"showLoader",value:function(){this.isLoading.next(!0)}},{key:"hideLoader",value:function(){this.isLoading.next(!1)}},{key:"onIsLoadingChange",value:function(e,t){if(e!==t)return t?this.attachSpinnerToDom():this.detachSpinnerFromDom()}},{key:"attachSpinnerToDom",value:function(){if(null===this.spinnerComponentRef){var e=this.getInjector(),t=this.createSpinner(e);this.isAttachableToDocument()?t.location.nativeElement instanceof Node&&this.document.body.appendChild(t.location.nativeElement):this.spinnerContainerRef.insert(t.hostView),t.changeDetectorRef.detectChanges(),this.spinnerComponentRef=t}}},{key:"detachSpinnerFromDom",value:function(){null!==this.spinnerComponentRef&&(this.isAttachableToDocument()?this.spinnerComponentRef.location.nativeElement instanceof Node&&this.document.body.removeChild(this.spinnerComponentRef.location.nativeElement):this.spinnerContainerRef.remove(),this.spinnerComponentRef.destroy(),this.spinnerComponentRef=null)}},{key:"getInjector",value:function(){return this.isAttachableToDocument()?this.injector:this.spinnerContainerRef.injector}},{key:"isAttachableToDocument",value:function(){return null===this.spinnerContainerRef}},{key:"createSpinner",value:function(e){var t=this.spinnerFactory.create(e);this.options&&(t.instance.diameter=this.options.diameter,t.instance.strokeWidth=this.options.strokeWidth),t.instance.mode=this.animationMode,t.instance.color=this.spinnerTheme;var n,i=t.injector.get(Fu),r=M(this.classList);try{for(r.s();!(n=r.n()).done;){var s=n.value;i.addClass(t.location.nativeElement,s)}}catch(a){r.e(a)}finally{r.f()}return t}}])}();return e.\u0275fac=function(t){return new(t||e)($i(Mu),$i(Ja),$i(ad))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),aN=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.dialogRef=t,this.data=n,this._sanitizer=i,this.labelName=n.header,this.labelDefinitionHtmlTemplate=i.bypassSecurityTrustHtml(n.body)},[{key:"onNoClick",value:function(){this.dialogRef.close(!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh))},e.\u0275cmp=yt({type:e,selectors:[["app-label-definition-popup"]],decls:8,vars:2,consts:[[1,"modalPopup"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),ko(3,"div",2),So(4,"div",3),wo(),ko(5,"div",4),ko(6,"button",5),Ao("click",function(){return t.onNoClick()}),au(7,"Close"),wo(),wo(),wo()),2&e&&(Ns(2),ou(t.labelName),Ns(2),_o("innerHTML",t.labelDefinitionHtmlTemplate,_s))},directives:[eA,tA,nA,yM],styles:[".modalPopup[_ngcontent-%COMP%]{min-width:800px}"]}),e}();function oN(e,t){if(1&e&&(ko(0,"p"),au(1),wo()),2&e){var n=t.$implicit;Ns(1),uu(" ",n," ")}}var uN=function(){var e=function(){return m(function e(t,n){g(this,e),this.dialogRef=t,this.data=n},[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL))},e.\u0275cmp=yt({type:e,selectors:[["app-user-confirmation"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ko(0,"h1",0),au(1,"Warning"),wo(),ko(2,"div",1),go(3,oN,2,1,"p",2),wo(),ko(4,"div",3),ko(5,"button",4),Ao("click",function(){return t.onNoClick()}),au(6),wo(),ko(7,"button",5),au(8),wo(),wo()),2&e&&(Ns(3),_o("ngForOf",t.data.messages),Ns(3),ou(t.data.noMessage),Ns(1),_o("mat-dialog-close",!0),Ns(1),ou(t.data.yesMessage))},directives:[eA,tA,Ld,nA,yM,XL],styles:[""]}),e}(),lN=function(){var e=function(){return m(function e(t){g(this,e),this.dialog=t},[{key:"openUserConfirmationModal",value:function(e,t,n){return this.dialog.open(uN,{data:{messages:e,yesMessage:t,noMessage:n}})}},{key:"openLabelDefinitionDialog",value:function(e,t){return this.dialog.open(aN,{data:{header:e,body:t}})}},{key:"checkIfFieldIsModified",value:function(e,t,n,i){var r=i[t]||"";return e.get(n).value!==r}},{key:"performActionIfModified",value:function(e,t,n){e?t():n()}}])}();return e.\u0275fac=function(t){return new(t||e)($i(KL))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),cN=["loadingSpinnerContainer"];function dN(e,t){if(1&e){var n=xo();ko(0,"button",7),Ao("click",function(){return ln(n),Fo(2).changeToEditMode()}),au(1," Edit "),wo()}}function hN(e,t){1&e&&(ko(0,"button",8),au(1," New Issue "),wo()),2&e&&_o("routerLink","/"+Fo(2).phaseService.currentPhase+"/issues/new")}function pN(e,t){if(1&e&&(ko(0,"div",2),ko(1,"h1",3),au(2),ko(3,"span",4),au(4),wo(),wo(),ko(5,"div",2),go(6,dN,2,0,"button",5),go(7,hN,2,1,"button",6),wo(),wo()),2&e){var n=Fo();Ns(2),uu(" ",n.issue.title," "),Ns(2),uu("#",n.issue.id,""),Ns(2),_o("ngIf",n.permissions.isIssueTitleEditable()),Ns(1),_o("ngIf",n.permissions.isIssueCreatable())}}function fN(e,t){1&e&&(ko(0,"mat-error"),au(1," Title is required. "),wo())}function mN(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot exceed 256 characters. "),wo())}function gN(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo(2);Ns(1),uu(" ",256-(null==n.issueTitleForm.get("title").value?null:n.issueTitleForm.get("title").value.length)," characters remaining. ")}}function vN(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"form",9,10),Ao("ngSubmit",function(){ln(n);var e=vo(2);return Fo().updateTitle(e)}),ko(3,"mat-form-field",11),So(4,"input",12),go(5,fN,2,0,"mat-error",1),go(6,mN,2,0,"mat-error",1),go(7,gN,2,1,"mat-hint",1),wo(),ko(8,"button",13),au(9," Save "),Do(10,null,14),wo(),ko(12,"button",15),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(13," Cancel "),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("formGroup",i.issueTitleForm),Ns(4),_o("ngIf",i.issueTitleForm.get("title").hasError("required")),Ns(1),_o("ngIf",i.issueTitleForm.get("title").hasError("maxlength")),Ns(1),_o("ngIf",(null==i.issueTitleForm.get("title").value?null:i.issueTitleForm.get("title").value.length)>=206),Ns(1),_o("disabled",i.issueTitleForm.invalid||i.isSavePending),Ns(4),_o("disabled",i.isSavePending)}}var yN=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.permissions=r,this.phaseService=s,this.dialogService=a,this.loadingService=o,this.isEditing=!1,this.isSavePending=!1,this.issueUpdated=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"ngOnInit",value:function(){this.issueTitleForm=this.formBuilder.group({title:new Pw("",[Hk.required,Hk.maxLength(256)])}),this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addCssClasses(["mat-progress-spinner"])}},{key:"changeToEditMode",value:function(){this.isEditing=!0,this.issueTitleForm.setValue({title:this.issue.title||""})}},{key:"cancelEditMode",value:function(){this.isEditing=!1}},{key:"updateTitle",value:function(e){var t=this;if(!this.issueTitleForm.invalid){this.showSpinner();var n=this.issue.clone(this.phaseService.currentPhase);n.title=this.issueTitleForm.get("title").value,this.issueService.updateIssue(n).pipe(Kg(function(){t.isEditing=!1})).subscribe(function(n){t.issueUpdated.emit(n),e.resetForm(),t.hideSpinner()},function(e){t.errorHandlingService.handleError(e),t.hideSpinner()})}}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.issueTitleForm,"title","title",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"showSpinner",value:function(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}},{key:"hideSpinner",value:function(){this.loadingService.hideLoader(),this.isSavePending=!1}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Yq),yo(Nj),yo(lN),yo(sN))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-title"]],viewQuery:function(e,t){var n;(1&e&&Kl(cN,5,gl),2&e)&&($l(n=Xl())&&(t.loadingSpinnerContainer=n.first))},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},features:[Du([sN])],decls:2,vars:2,consts:[["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"mat-display-1","title"],[2,"color","#a3aab1"],["mat-stroked-button","","color","primary","class","title-button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","class","title-button",3,"routerLink",4,"ngIf"],["mat-stroked-button","","color","primary",1,"title-button",3,"click"],["mat-stroked-button","","color","primary",1,"title-button",3,"routerLink"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[2,"width","80%"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],["type","submit","mat-stroked-button","","color","primary",1,"title-button",3,"disabled"],["loadingSpinnerContainer",""],["type","button","mat-stroked-button","","color","warn",1,"title-button",3,"disabled","click"]],template:function(e,t){1&e&&(go(0,pN,8,4,"div",0),go(1,vN,14,6,"div",1)),2&e&&(_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[Od,yM,A_,zw,hw,$w,JC,Pk,IL,dw,Jw,eS,nS,jC,UC],styles:[".row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.title[_ngcontent-%COMP%]{margin:0 0 16px;overflow-wrap:anywhere}.title-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin:5px;float:right}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e}(),_N=w(69114);function bN(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kN(e){return e.replace(/\n/g,"
    ")}var wN=function(){return m(function e(){g(this,e)},[{key:"getHtmlString",value:function(){return"<".concat(this.TAG,' style="').concat(this.STYLES.join(";"),'">').concat(bN(this.content),"")}}])}(),SN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="ADDITION",n.TAG="ins",n.STYLES=["background: #d4fcbc","text-decoration: none"],n.content=e,n}return _(t,e),m(t)}(wN),EN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="NO_CHANGE",n.TAG="span",n.STYLES=[],n.content=e,n}return _(t,e),m(t)}(wN),TN=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).TYPE="REMOVAL",n.TAG="del",n.STYLES=["background: #fbb"],n.content=e,n}return _(t,e),m(t)}(wN),DN=function(){return m(function e(t,n){g(this,e),this.changes=[],this.outdatedContent=t,this.updatedContent=n;var i=new _N.diff_match_patch,r=i.diff_main(t,n);i.diff_cleanupSemantic(r);var s,a=M(r);try{for(a.s();!(s=a.n()).done;){var o=s.value;this.changes.push(-1===o[0]?new TN(o[1]):1===o[0]?new SN(o[1]):new EN(o[1]))}}catch(u){a.e(u)}finally{a.f()}},[{key:"getHtmlDiffString",value:function(){var e,t="",n=M(this.changes);try{for(n.s();!(e=n.n()).done;){t+=e.value.getHtmlString()}}catch(i){n.e(i)}finally{n.f()}return kN(t)}},{key:"getHtmlUpdatedString",value:function(){return kN(bN(this.updatedContent))}}])}();function xN(e,t){if(1&e){var n=xo();ko(0,"mat-slide-toggle",11),Ao("change",function(){return ln(n),Fo().handleChangeShowDiff()}),au(1," Show Difference "),wo()}2&e&&_o("checked",Fo().showDiff)}function CN(e,t){1&e&&So(0,"div",13),2&e&&_o("innerHTML",Fo(2).diffHtml,_s)}function MN(e,t){1&e&&So(0,"div",13),2&e&&_o("innerHTML",Fo(2).updatedHtml,_s)}function LN(e,t){if(1&e&&(ko(0,"div",10),go(1,CN,1,1,"div",12),go(2,MN,1,1,"div",12),wo()),2&e){var n=Fo();Ns(1),_o("ngIf",n.showDiff),Ns(1),_o("ngIf",!n.showDiff)}}var AN=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isOnPreview=!1,this.isReady=!1,this.showDiff=!0,this.diffHtml=this.sanitizer.bypassSecurityTrustHtml(n.getHtmlDiffString()),this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(n.getHtmlUpdatedString()),this.isReady=!0},[{key:"close",value:function(){this.dialogRef.close()}},{key:"handleChangeShowDiff",value:function(){this.showDiff=!this.showDiff}},{key:"handleTabChange",value:function(e){this.isOnPreview=1===e.index}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh),yo(Fj),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-conflict-dialog"]],decls:16,vars:4,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["style","display: inline-block; margin-left: 50px","color","primary",3,"checked","change",4,"ngIf"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"full-width"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview Updated Content"],[1,"tab-content"],["color","primary",2,"display","inline-block","margin-left","50px",3,"checked","change"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),go(3,xN,2,1,"mat-slide-toggle",2),ko(4,"button",3),Ao("click",function(){return t.close()}),ko(5,"mat-icon"),au(6,"close"),wo(),wo(),wo(),ko(7,"div",4),ko(8,"div",5),ko(9,"mat-tab-group",6),Ao("selectedTabChange",function(e){return t.handleTabChange(e)}),ko(10,"mat-tab",7),go(11,LN,3,2,"div",8),wo(),ko(12,"mat-tab",9),ko(13,"div",10),ko(14,"markdown"),au(15),wo(),wo(),wo(),wo(),wo(),wo()),2&e&&(Ns(2),ou("The content you are editing has changed"),Ns(1),_o("ngIf",!t.isOnPreview),Ns(8),_o("ngIf",t.isReady),Ns(4),ou(t.data.updatedContent))},directives:[eA,Od,yM,bL,tA,_P,lP,fk,XI],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.full-width[_ngcontent-%COMP%]{min-width:80vh;width:100%}"]}),e}(),ON=function(e){function t(){var e;return g(this,t),e=v(this,t,["Invalid link!"]),Object.setPrototypeOf(y(e),t.prototype),e}return _(t,e),m(t)}(b(Error)),IN=function(){var e=function(){return m(function e(t){g(this,e),this.errorHandlingService=t},[{key:"onClick",value:function(e){var t=e.target;t instanceof HTMLAnchorElement&&t.href.startsWith(t.baseURI)&&(this.errorHandlingService.handleError(new ON),e.preventDefault(),e.stopPropagation())}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(hF))},e.\u0275dir=Et({type:e,selectors:[["","disableInternalLink",""]],hostBindings:function(e,t){1&e&&Ao("click",function(e){return t.onClick(e)})}}),e}(),RN=function(){return m(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;g(this,e),this.historyArray=new Array(t),this.firstEntryIndex=0,this.lastEntryIndex=-1,this.currIndex=-1,this.getState=n,this.isSaved=!1,this.saveRunning=!1,this.intervalTime=i},[{key:"updateBeforeChange",value:function(e){if(-1===this.currIndex)return this.addEntry(null!=e?e:this.getState(),!1);this.createDelayedSave()}},{key:"createDelayedSave",value:function(){var e=this;this.saveRunning||(this.isSaved=!1,this.saveRunning=!0,this.timeout=setTimeout(function(){e.addEntry(e.getState(),!!e.intervalTime)},this.intervalTime))}},{key:"addEntry",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isSaved=t;var n=this.incrementIndex(this.currIndex);n===this.firstEntryIndex&&-1!==this.currIndex&&(this.firstEntryIndex=this.incrementIndex(this.firstEntryIndex)),this.lastEntryIndex=n,this.currIndex=n,this.historyArray[this.currIndex]=e,this.saveRunning=!1}},{key:"incrementIndex",value:function(e){return(e+1)%this.historyArray.length}},{key:"decrementIndex",value:function(e){return(e-1+this.historyArray.length)%this.historyArray.length}},{key:"forceSave",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(null!=e?e:this.getState(),n),this.isSaved=n}},{key:"wrapSave",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];clearTimeout(this.timeout),(!t||!this.isSaved)&&this.addEntry(this.getState(),!1),e(),this.addEntry(this.getState(),!0)}},{key:"undo",value:function(){return this.forceSave(void 0,!0),this.currIndex===this.firstEntryIndex||-1===this.currIndex?null:(this.currIndex=this.decrementIndex(this.currIndex),this.historyArray[this.currIndex])}},{key:"redo",value:function(){return this.forceSave(void 0,!0),this.currIndex===this.lastEntryIndex?null:(this.currIndex=this.incrementIndex(this.currIndex),this.historyArray[this.currIndex])}}],[{key:"isUndo",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&"KeyZ"===e.code&&!e.shiftKey:e.ctrlKey&&"KeyZ"===e.code&&!e.shiftKey}},{key:"isRedo",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey&&e.shiftKey&&"KeyZ"===e.code:e.ctrlKey&&e.shiftKey&&"KeyZ"===e.code||e.ctrlKey&&"KeyY"===e.code}}])}(),PN=["mp4","mov"],FN=["gif","jpeg","jpg","png","docx","gz","log","pdf","pptx","txt","xlsx","zip"].concat(PN),YN="We don't support that file type. Try again with "+FN.join(", ")+".",jN=function(e,t){return"Oops, ".concat(e," is too big. Keep it under ").concat(t,"MiB.")},qN=function(){var e=function(){return m(function e(t){g(this,e),this.githubService=t},[{key:"uploadFile",value:function(e,t){var n,i=this;n=e instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(e)):e;var r=this.getFileExtension(t);if(FN.includes(r.toLowerCase())){n=n.split(",")[1];var s=ZP(),a=function(){return i.githubService.uploadFile("".concat(s,".").concat(r),n)};return a().pipe(Ig(function(e){return 404!==e.status?lb(e):Oh(!1)}),ge(function(e){return e?Oh(e):i.githubService.createBranch().pipe(ge(a))}))}return lb(YN)}},{key:"getFileExtension",value:function(e){return e.split(".").pop()}},{key:"isVideoFile",value:function(e){var t=this.getFileExtension(e);return PN.includes(t.toLowerCase())}},{key:"isSupportedFileType",value:function(e){var t=this.getFileExtension(e);return FN.includes(t.toLowerCase())}}])}();return e.\u0275fac=function(t){return new(t||e)($i(_F))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),NN=["gif","jpeg","jpg","png"];function HN(e,t,n,i){var r=i.nativeElement.selectionEnd,s="[Uploading ".concat(e,"...]"),a=n.value.indexOf(s),o=a+s.length,u=a+t.length,l=r>a-1&&r<=o?u:r ",multiline:!0,surroundWithNewlines:!0},code:{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"},link:{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},image:{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},"unordered-list":{prefix:"- ",multiline:!0,unorderedList:!0},"ordered-list":{prefix:"1. ",multiline:!0,orderedList:!0},"task-list":{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0},mention:{prefix:"@",prefixSpace:!0},ref:{prefix:"#",prefixSpace:!0},strikethrough:{prefix:"~~",suffix:"~~",trimFirst:!0}},$N=function(e){function t(){var e;g(this,t);var n=function(t){var n=ZN.get(e);!n||(t.preventDefault(),SH(e,n))};return(e=v(this,t)).addEventListener("keydown",WN(n)),e.addEventListener("click",n),e}return _(t,e),m(t,[{key:"connectedCallback",value:function(){this.hasAttribute("role")||this.setAttribute("role","button")}},{key:"click",value:function(){var e=ZN.get(this);!e||SH(this,e)}}])}(b(HTMLElement)),KN=function(e){function t(){var e;return g(this,t),e=v(this,t,arguments),BN.add(y(e)),e}return _(t,e),m(t,[{key:"connectedCallback",value:function(){var e=parseInt(this.getAttribute("level")||"3",10);zN(this,BN,"m",UN).call(this,e)}},{key:"attributeChangedCallback",value:function(e,t,n){if("level"===e){var i=parseInt(n||"3",10);zN(this,BN,"m",UN).call(this,i)}}}],[{key:"observedAttributes",get:function(){return["level"]}}])}($N);BN=new WeakSet,UN=function(e){if(!(e<1||e>6)){var t="".concat("#".repeat(e)," ");ZN.set(this,{prefix:t})}},window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=KN,window.customElements.define("md-header",KN));var JN=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"**",suffix:"**",trimFirst:!0})}}])}($N);window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=JN,window.customElements.define("md-bold",JN));var XN=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"_",suffix:"_",trimFirst:!0})}}])}($N);window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=XN,window.customElements.define("md-italic",XN));var eH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"> ",multiline:!0,surroundWithNewlines:!0})}}])}($N);window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=eH,window.customElements.define("md-quote",eH));var tH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"})}}])}($N);window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=tH,window.customElements.define("md-code",tH));var nH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}])}($N);window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=nH,window.customElements.define("md-link",nH));var iH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}])}($N);window.customElements.get("md-image")||(window.MarkdownImageButtonElement=iH,window.customElements.define("md-image",iH));var rH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"- ",multiline:!0,unorderedList:!0})}}])}($N);window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=rH,window.customElements.define("md-unordered-list",rH));var sH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"1. ",multiline:!0,orderedList:!0})}}])}($N);window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=sH,window.customElements.define("md-ordered-list",sH));var aH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0})}}])}($N);window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=aH,window.customElements.define("md-task-list",aH));var oH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"@",prefixSpace:!0})}}])}($N);window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=oH,window.customElements.define("md-mention",oH));var uH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"#",prefixSpace:!0})}}])}($N);window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=uH,window.customElements.define("md-ref",uH));var lH=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){ZN.set(this,{prefix:"~~",suffix:"~~",trimFirst:!0})}}])}($N);function cH(e){var t=e.target,n=e.currentTarget;if(t instanceof Element){var i=t.closest("[data-md-button]");if(i&&i.closest("markdown-toolbar")===n){var r=i.getAttribute("data-md-button"),s=QN[r];!s||(e.preventDefault(),SH(t,s))}}}function dH(e){e.addEventListener("keydown",mH),e.setAttribute("tabindex","0"),e.addEventListener("focus",fH,{once:!0})}function hH(e){e.removeEventListener("keydown",mH),e.removeAttribute("tabindex"),e.removeEventListener("focus",fH)}window.customElements.get("md-strikethrough")||(window.MarkdownStrikethroughButtonElement=lH,window.customElements.define("md-strikethrough",lH));var pH=function(){var e=function(e){function t(){return g(this,t),v(this,t,arguments)}return _(t,e),m(t,[{key:"connectedCallback",value:function(){this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.hasAttribute("data-no-focus")||dH(this),this.addEventListener("keydown",WN(cH)),this.addEventListener("click",cH)}},{key:"attributeChangedCallback",value:function(e,t,n){"data-no-focus"===e&&(null===n?dH(this):hH(this))}},{key:"disconnectedCallback",value:function(){hH(this)}},{key:"field",get:function(){var e=this.getAttribute("for");if(!e)return null;var t,n="getRootNode"in this?this.getRootNode():document;return(n instanceof Document||n instanceof ShadowRoot)&&(t=n.getElementById(e)),t instanceof HTMLTextAreaElement?t:null}}])}(b(HTMLElement));return e.observedAttributes=["data-no-focus"],e}();function fH(e){var t=e.target;if(t instanceof Element){t.removeAttribute("tabindex");var n,i="0",r=M(GN(t));try{for(r.s();!(n=r.n()).done;){var s=n.value;s.setAttribute("tabindex",i),"0"===i&&(s.focus(),i="-1")}}catch(a){r.e(a)}finally{r.f()}}}function mH(e){var t=e.key;if("ArrowRight"===t||"ArrowLeft"===t||"Home"===t||"End"===t){var n=e.currentTarget;if(n instanceof HTMLElement){var i=GN(n),r=i.indexOf(e.target),s=i.length;if(-1!==r){var a=0;"ArrowLeft"===t&&(a=r-1),"ArrowRight"===t&&(a=r+1),"End"===t&&(a=s-1),a<0&&(a=s-1),a>s-1&&(a=0);for(var o=0;o1}function vH(e,t){return Array(t+1).join(e)}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=pH,window.customElements.define("markdown-toolbar",pH));var yH=null;function _H(e){var t,n,i=e.value.slice(0,e.selectionStart),r=e.value.slice(e.selectionEnd),s=i.match(/\n*$/),a=r.match(/^\n*/),o=s?s[0].length:0,u=a?a[0].length:0;return i.match(/\S/)&&o<2&&(t=vH("\n",2-o)),r.match(/\S/)&&u<2&&(n=vH("\n",2-u)),null==t&&(t=""),null==n&&(n=""),{newlinesToAppend:t,newlinesToPrepend:n}}function bH(e){var t=e.split("\n"),n=/^\d+\.\s+/,i=t.every(function(e){return n.test(e)}),r=t;return i&&(r=t.map(function(e){return e.replace(n,"")})),{text:r.join("\n"),processed:i}}function kH(e){var t=e.split("\n"),n=t.every(function(e){return e.startsWith("- ")}),i=t;return n&&(i=t.map(function(e){return e.slice("- ".length,e.length)})),{text:i.join("\n"),processed:n}}function wH(e,t){return t?"- ":"".concat(e+1,". ")}function SH(e,t){var n=e.closest("markdown-toolbar");if(n instanceof pH){var i=Object.assign(Object.assign({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),t),r=n.field;r&&(r.focus(),function(e,t){var n,i=e.value.slice(e.selectionStart,e.selectionEnd);n=t.orderedList||t.unorderedList?function(e,t){var n=e.selectionStart===e.selectionEnd,i=e.selectionStart,r=e.selectionEnd;!function(e){for(var t=e.value.split("\n"),n=0,i=0;i=n&&e.selectionStart=n&&e.selectionEnd0?"".concat(r,"\n"):n,f=gH(h)&&s.length>0?"\n".concat(s):i;if(o){var m=e.value[e.selectionStart-1];0!==e.selectionStart&&null!=m&&!m.match(/\s/)&&(p=" ".concat(p))}h=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){for(var n=t;e[n]&&null!=e[n-1]&&!e[n-1].match(/\s/);)n--;return n}(e.value,e.selectionStart),e.selectionEnd=function(e,t,n){for(var i=t,r=n?/\n/:/\s/;e[i]&&!e[i].match(r);)i++;return i}(e.value,e.selectionEnd,i);else{var r=e.selectionStart-t.length,s=e.selectionEnd+n.length,a=e.value.slice(r,e.selectionStart)===t,o=e.value.slice(e.selectionEnd,s)===n;a&&o&&(e.selectionStart=r,e.selectionEnd=s)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,p,f,t.multiline);var g=e.selectionStart,v=e.selectionEnd,y=a.length>0&&f.indexOf(a)>-1&&h.length>0;if(l){var _=_H(e);p=_.newlinesToAppend+n,f+=_.newlinesToPrepend}if(h.startsWith(p)&&h.endsWith(f)){var b=h.slice(p.length,h.length-f.length);if(c===d){var k=c-p.length;k=Math.max(k,g),g=v=k=Math.min(k,g+b.length)}else v=g+b.length;return{text:b,selectionStart:g,selectionEnd:v}}if(y)return u.length>0&&h.match(u)?{text:p+(f=f.replace(a,h)),selectionStart:g=v=g+p.length,selectionEnd:v}:{text:p+h+f,selectionStart:g=g+p.length+h.length+f.indexOf(a),selectionEnd:v=g+a.length};var w=p+h+f;g=c+p.length,v=d+p.length;var S=h.match(/^\s*|\s*$/g);if(t.trimFirst&&S){var E=S[0]||"",T=S[1]||"";w=E+p+h.trim()+f+T,g+=E.length,v-=T.length}return{text:w,selectionStart:g,selectionEnd:v}}(e,t),function(e,t){var n=t.text,i=t.selectionStart,r=t.selectionEnd,s=e.selectionStart,a=e.value.slice(0,s),o=e.value.slice(e.selectionEnd);if(null===yH||!0===yH){e.contentEditable="true";try{yH=document.execCommand("insertText",!1,n)}catch(u){yH=!1}e.contentEditable="false"}if(yH&&!e.value.slice(0,e.selectionStart).endsWith(n)&&(yH=!1),!yH){try{document.execCommand("ms-beginUndoUnit")}catch(u){}e.value=a+n+o;try{document.execCommand("ms-endUndoUnit")}catch(u){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=i&&null!=r?e.setSelectionRange(i,r):e.setSelectionRange(s,e.selectionEnd)}(e,n)}(r,i))}}var EH=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-markdown-toolbar"]],inputs:{forTextAreaId:"forTextAreaId"},decls:42,vars:1,consts:[["matTooltip","Add bold text","mat-icon-button","","color","accent"],["matTooltip","Add italic text","mat-icon-button","","color","accent"],["matTooltip","Add heading text","mat-icon-button","","color","accent"],["matTooltip","Add a quote","mat-icon-button","","color","accent"],["matTooltip","Add code","mat-icon-button","","color","accent"],["matTooltip","Add a link","mat-icon-button","","color","accent"],["matTooltip","Add a image via link","mat-icon-button","","color","accent"],["matTooltip","Add a bulleted list","mat-icon-button","","color","accent"],["matTooltip","Add a numbered list","mat-icon-button","","color","accent"],["matTooltip","Add a task list","mat-icon-button","","color","accent"]],template:function(e,t){1&e&&(ko(0,"markdown-toolbar"),ko(1,"md-bold"),ko(2,"button",0),ko(3,"mat-icon"),au(4,"format_bold"),wo(),wo(),wo(),ko(5,"md-italic"),ko(6,"button",1),ko(7,"mat-icon"),au(8,"format_italic"),wo(),wo(),wo(),ko(9,"md-header"),ko(10,"button",2),ko(11,"mat-icon"),au(12,"title"),wo(),wo(),wo(),ko(13,"md-quote"),ko(14,"button",3),ko(15,"mat-icon"),au(16,"format_quote"),wo(),wo(),wo(),ko(17,"md-code"),ko(18,"button",4),ko(19,"mat-icon"),au(20,"code"),wo(),wo(),wo(),ko(21,"md-link"),ko(22,"button",5),ko(23,"mat-icon"),au(24,"link"),wo(),wo(),wo(),ko(25,"md-image"),ko(26,"button",6),ko(27,"mat-icon"),au(28,"image"),wo(),wo(),wo(),ko(29,"md-unordered-list"),ko(30,"button",7),ko(31,"mat-icon"),au(32,"format_list_bulleted"),wo(),wo(),wo(),ko(33,"md-ordered-list"),ko(34,"button",8),ko(35,"mat-icon"),au(36,"format_list_numbered"),wo(),wo(),wo(),ko(37,"md-task-list"),ko(38,"md-header"),ko(39,"button",9),ko(40,"mat-icon"),au(41,"task"),wo(),wo(),wo(),wo(),wo()),2&e&&fo("for",t.forTextAreaId)},directives:[yM,XO,bL],styles:[""]}),e}(),TH=["dropArea"],DH=["commentTextArea"],xH=["markdownArea"];function CH(e,t){1&e&&(ko(0,"mat-error"),au(1," Description required. "),wo())}function MH(e,t){if(1&e&&(ko(0,"mat-error"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" Description cannot exceed ",n.maxLength," characters. ")}}function LH(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.maxLength-(null==n.commentField.value?null:n.commentField.value.length)," character(s) remaining. ")}}function AH(e,t){1&e&&(ko(0,"span"),au(1," Attach files by dragging & dropping or select them by clicking here. "),wo())}function OH(e,t){if(1&e&&(ko(0,"span",17),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.uploadErrorMessage," ")}}function IH(e,t){1&e&&So(0,"markdown",18,19),2&e&&_o("data",Fo().commentField.value)}function RH(e,t){1&e&&(ko(0,"div"),au(1,"Nothing to preview."),wo())}var PH=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.uploadService=t,this.errorHandlingService=n,this.logger=i,this.SUPPORTED_FILE_TYPES=FN,this.placeholderText="No details provided.",this.isFormPendingChange=new jl,this.submitButtonTextChange=new jl,this.dragActiveCounter=0,this.maxLength=4e4},[{key:"formatFileUploadingButtonText",value:function(e){return e+" (Waiting for File Upload to finish...)"}},{key:"ngOnInit",value:function(){var e=this;if(void 0!==this.initialDescription&&this.commentField.setValue(this.initialDescription),void 0===this.commentField||void 0===this.commentForm||void 0===this.id)throw new Error("Comment Editor's compulsory properties are not defined.");this.initialSubmitButtonText=this.submitButtonText,this.commentField.setValidators([Hk.maxLength(this.maxLength)]),this.history=new RN(75,function(){return{text:e.commentTextArea.nativeElement.value,selectStart:e.commentTextArea.nativeElement.selectionStart,selectEnd:e.commentTextArea.nativeElement.selectionEnd}},500)}},{key:"onKeyPress",value:function(e){var t=this;if(RN.isUndo(e))return e.preventDefault(),void this.undo();if(RN.isRedo(e))return this.redo(),void e.preventDefault();if(this.isControlKeyPressed(e)&&!e.shiftKey)switch(e.code){case"KeyB":e.preventDefault(),this.history.wrapSave(function(){return t.insertOrRemoveCharsFromHighlightedText("**")});break;case"KeyI":e.preventDefault(),this.history.wrapSave(function(){return t.insertOrRemoveCharsFromHighlightedText("_")});break;default:return}}},{key:"onDragEnter",value:function(e){e.preventDefault(),e.stopPropagation(),this.dragActiveCounter++,this.dropArea.nativeElement.classList.add(this.commentField.disabled?"highlight-drag-box-disabled":"highlight-drag-box")}},{key:"disableCaretMovement",value:function(e){e.preventDefault()}},{key:"enableFileDrop",value:function(e){e.preventDefault()}},{key:"onDrop",value:function(e){var t=this;if(e.preventDefault(),e.stopPropagation(),this.removeHighlightBorderStyle(),!this.commentField.disabled){var n=e.dataTransfer.files;if(!(void 0===n||n.length<=0)){this.commentTextArea.nativeElement.focus();for(var i=function(e){setTimeout(function(){t.logger.info("CommentEditorComponent: File ".concat(e+1," of ").concat(n.length,". Begin uploading ").concat(n[e].name,".")),t.readAndUploadFile(n[e])},250*e)},r=0;r0&&(this.readAndUploadFile(n[0]),t.value="")}},{key:"updateParentFormsSubmittability",value:function(e,t){this.isFormPendingChange.emit(e),this.submitButtonTextChange.emit(t)}},{key:"readAndUploadFile",value:function(e){var t=this;this.uploadErrorMessage=null;var n=new FileReader,i=e.name,r=function(e,t,n){var i,r=t.value,s=e.split(".").pop();i=NN.includes(s.toLowerCase())?"![Uploading ".concat(e,"...]\n"):"[Uploading ".concat(e,"...]\n");var a=n.nativeElement.selectionEnd,o=r.indexOf("\n",a),u=a+i.length;if(-1===o)t.setValue(""===t.value?i:"".concat(t.value,"\n").concat(i));else{var l=r.slice(0,o+1),c=r.slice(o);t.setValue("".concat(l+i+c))}return n.nativeElement.setSelectionRange(u,u),i}(i,this.commentField,this.commentTextArea);if(e.size>=11534336)this.handleUploadError(jN("file",10),r);else if(this.uploadService.isVideoFile(i)&&e.size>=6291456)this.handleUploadError(jN("video",5),r);else if(this.uploadService.isSupportedFileType(i)){this.lastUploadingTime=(new Date).getTime().toString();var s=this.lastUploadingTime;this.updateParentFormsSubmittability(!0,this.formatFileUploadingButtonText(this.initialSubmitButtonText)),n.onload=function(){t.uploadService.uploadFile(n.result,i).subscribe(function(e){t.uploadService.isVideoFile(i)?function(e,t,n,i){HN(e,'
    video:').concat(t,"
    "),n,i)}(i,e.data.content.download_url,t.commentField,t.commentTextArea):function(e,t,n,i){HN(e,"[".concat(e,"](").concat(t,")"),n,i)}(i,e.data.content.download_url,t.commentField,t.commentTextArea),t.history.forceSave()},function(e){t.handleUploadError(e,r),s===t.lastUploadingTime&&t.updateParentFormsSubmittability(!1,t.initialSubmitButtonText)},function(){s===t.lastUploadingTime&&t.updateParentFormsSubmittability(!1,t.initialSubmitButtonText)})},n.readAsDataURL(e)}else this.handleUploadError(YN,r)}},{key:"onPaste",value:function(e){this.history.forceSave(null,!0,!1);var t,n=null,i=M(e.clipboardData.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(0===r.type.indexOf("image")){n=r.getAsFile(),e.stopPropagation();break}}}catch(s){i.e(s)}finally{i.f()}n&&this.readAndUploadFile(n)}},{key:"handleBeforeInputChange",value:function(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.updateBeforeChange()}}},{key:"handleInputChange",value:function(e){switch(e.inputType){case"historyUndo":case"historyRedo":e.preventDefault();break;case"insertFromPaste":break;default:this.history.createDelayedSave()}}},{key:"undo",value:function(){var e=this.history.undo();null!==e&&(this.commentField.setValue(e.text),this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}},{key:"redo",value:function(){var e=this.history.redo();null!==e&&(this.commentTextArea.nativeElement.value=e.text,this.commentTextArea.nativeElement.setSelectionRange(e.selectStart,e.selectEnd))}},{key:"isInErrorState",get:function(){return!!this.uploadErrorMessage}},{key:"handleUploadError",value:function(e,t){e instanceof tp?(this.errorHandlingService.handleError(e),this.uploadErrorMessage="Something went wrong while uploading your file. Please try again."):this.uploadErrorMessage=e,this.commentField.setValue(this.commentField.value.replace(t,"")),this.history.forceSave()}},{key:"removeHighlightBorderStyle",value:function(){this.dragActiveCounter--,0===this.dragActiveCounter&&(this.dropArea.nativeElement.classList.remove("highlight-drag-box"),this.dropArea.nativeElement.classList.remove("highlight-drag-box-disabled"))}},{key:"isControlKeyPressed",value:function(e){return 0===navigator.platform.indexOf("Mac")?e.metaKey:e.ctrlKey}},{key:"insertOrRemoveCharsFromHighlightedText",value:function(e){var t=this.commentTextArea.nativeElement.selectionStart,n=this.commentTextArea.nativeElement.selectionEnd,i=this.commentTextArea.nativeElement.value,r=i.slice(t,n),s=r.trim(),a=r.trimRight().length-s.length,o=r.trimLeft().length-s.length;this.hasCharsBeforeAndAfterHighlight(t,n,i,e)?this.removeCharsBeforeAndAfterHighlightedText(t,n,i,r,e):this.hasCharsInTrimmedHighlight(r,e)?this.removeCharsFromHighlightedText(t,n,i,s,e,a,o):this.insertCharsToHighlightedText(t,n,i,s,e,a,o)}},{key:"hasCharsBeforeAndAfterHighlight",value:function(e,t,n,i){var r=n.slice(e-i.length,e)===i,s=n.slice(t,t+i.length)===i;return r&&s}},{key:"hasCharsInTrimmedHighlight",value:function(e,t){var n=e.trim(),i=n.slice(0,t.length)===t,r=n.slice(-t.length)===t;return i&&r}},{key:"removeCharsBeforeAndAfterHighlightedText",value:function(e,t,n,i,r){this.commentField.setValue(n.slice(0,e-r.length)+i+n.slice(t+r.length)),this.commentTextArea.nativeElement.setSelectionRange(e-r.length,t-r.length)}},{key:"removeCharsFromHighlightedText",value:function(e,t,n,i,r,s,a){this.commentField.setValue(n.slice(0,e)+" ".repeat(s)+i.slice(r.length,-r.length)+" ".repeat(a)+n.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+s,t-2*r.length-a)}},{key:"insertCharsToHighlightedText",value:function(e,t,n,i,r,s,a){this.commentField.setValue(n.slice(0,e)+" ".repeat(s)+r+i+r+" ".repeat(a)+n.slice(t)),this.commentTextArea.nativeElement.setSelectionRange(e+r.length+s,t+r.length-a)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(qN),yo(hF),yo(cF))},e.\u0275cmp=yt({type:e,selectors:[["app-comment-editor"]],viewQuery:function(e,t){var n;(1&e&&(Kl(TH,7),Kl(DH,7),Kl(xH,5)),2&e)&&($l(n=Xl())&&(t.dropArea=n.first),$l(n=Xl())&&(t.commentTextArea=n.first),$l(n=Xl())&&(t.markdownArea=n.first))},inputs:{commentField:"commentField",commentForm:"commentForm",id:"id",initialDescription:"initialDescription",isFormPending:"isFormPending",submitButtonText:"submitButtonText"},outputs:{isFormPendingChange:"isFormPendingChange",submitButtonTextChange:"submitButtonTextChange"},decls:23,vars:15,consts:[[2,"min-height","350px",3,"formGroup"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Write"],[1,"tab-content",3,"dragleave","dragenter","drop","dragover"],["dropArea",""],[3,"forTextAreaId"],["appearance","outline",2,"width","100%"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","10","cdkAutosizeMaxRows","20",1,"text-input-area",3,"id","formControlName","placeholder","maxlength","paste","keydown","beforeinput","input","dragover"],["commentTextArea","","autosize","cdkTextareaAutosize"],[4,"ngIf"],[1,"drag-and-drop"],["class","error",4,"ngIf"],["type","file",1,"file",3,"disabled","accept","change"],["fileInput",""],["label","Preview"],[1,"tab-content",2,"min-height","228px"],["disableInternalLink","",3,"data",4,"ngIf"],[1,"error"],["disableInternalLink","",3,"data"],["markdownArea",""]],template:function(e,t){if(1&e){var n=xo();ko(0,"form",0),ko(1,"mat-tab-group",1),Ao("selectedTabChange",function(){ln(n);var e=vo(9);return t.commentField.setValue(e.value)}),ko(2,"mat-tab",2),ko(3,"div",3,4),Ao("dragleave",function(e){return t.onDragExit(e)})("dragenter",function(e){return t.onDragEnter(e)})("drop",function(e){return t.onDrop(e)})("dragover",function(e){return t.enableFileDrop(e)}),So(5,"app-markdown-toolbar",5),ko(6,"mat-form-field",6),So(7,"mat-label"),ko(8,"textarea",7,8),Ao("paste",function(e){return t.onPaste(e)})("keydown",function(e){return t.onKeyPress(e)})("beforeinput",function(e){return t.handleBeforeInputChange(e)})("input",function(e){return t.handleInputChange(e)})("dragover",function(e){return t.disableCaretMovement(e)}),wo(),go(11,CH,2,0,"mat-error",9),go(12,MH,2,1,"mat-error",9),go(13,LH,2,1,"mat-hint",9),ko(14,"div",10),go(15,AH,2,0,"span",9),go(16,OH,2,1,"span",11),ko(17,"input",12,13),Ao("change",function(e){ln(n);var i=vo(18);return t.onFileInputUpload(e,i)}),wo(),wo(),wo(),wo(),wo(),ko(19,"mat-tab",14),ko(20,"div",15),go(21,IH,2,1,"markdown",16),go(22,RH,2,0,"div",9),wo(),wo(),wo(),wo()}2&e&&(_o("formGroup",t.commentForm),Ns(5),_o("forTextAreaId",t.id),Ns(3),No("id",t.id),No("formControlName",t.id),No("placeholder",t.placeholderText),No("maxlength",t.maxLength),Ns(3),_o("ngIf",t.commentField.errors&&t.commentField.errors.required&&t.commentField.touched),Ns(1),_o("ngIf",t.commentField.errors&&t.commentField.errors.maxLength),Ns(1),_o("ngIf",(null==t.commentField.value?null:t.commentField.value.length)>=t.maxLength-50),Ns(2),_o("ngIf",!t.isInErrorState),Ns(1),_o("ngIf",t.isInErrorState),Ns(1),_o("disabled",t.commentField.disabled)("accept",t.SUPPORTED_FILE_TYPES),Ns(4),_o("ngIf",""!==t.commentField.value),Ns(1),_o("ngIf",""===t.commentField.value))},directives:[zw,hw,$w,_P,lP,EH,JC,zC,IL,xL,Pk,dw,Jw,nS,Od,jC,UC,fk,IN],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px}.highlight-drag-box[_ngcontent-%COMP%]{border-style:dashed;border-color:#98fb98;border-width:2px}.highlight-drag-box-disabled[_ngcontent-%COMP%]{border-style:dashed;border-color:#fb2a5c;border-width:2px}.drag-and-drop[_ngcontent-%COMP%]{color:#586069;font-size:13px;line-height:16px;position:relative;border-top-style:dashed;border-top-color:#3f51b5;border-top-width:2px;margin-top:5px;padding-top:5px}.error[_ngcontent-%COMP%]{color:#b22222}.file[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}"]}),e}(),FH=["loadingSpinnerContainer"];function YH(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){return ln(n),Fo().changeToEditMode()}),au(1," Edit "),wo()}}function jH(e,t){if(1&e&&(ko(0,"div",9),So(1,"markdown",10),wo()),2&e){var n=Fo();Ns(1),_o("data",n.issue.description)}}function qH(e,t){if(1&e){var n=xo();ko(0,"button",17),Ao("click",function(){return ln(n),Fo(2).viewChanges()}),au(1," View Updated Description "),wo()}2&e&&_o("disabled",Fo(2).isSavePending)}function NH(e,t){if(1&e&&(ko(0,"button",18),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.issueDescriptionForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function HH(e,t){if(1&e&&(ko(0,"button",19),ko(1,"mat-button-content"),au(2),Do(3,null,20),wo(),wo()),2&e){var n=Fo(2);_o("disabled",n.issueDescriptionForm.invalid||n.isSavePending),Ns(2),uu(" ",n.submitButtonText," ")}}function BH(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-comment-editor",11),Ao("isFormPendingChange",function(e){return ln(n),Fo().isSavePending=e})("submitButtonTextChange",function(e){return ln(n),Fo().submitButtonText=e}),wo(),ko(2,"div",12),go(3,qH,2,1,"button",13),ko(4,"button",14),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(5," Cancel "),wo(),go(6,NH,2,2,"button",15),go(7,HH,5,2,"button",16),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("id","description")("commentField",i.issueDescriptionForm.get("description"))("commentForm",i.issueDescriptionForm)("isFormPending",i.isSavePending)("submitButtonText",i.submitButtonText),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("disabled",i.isSavePending),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("ngIf",!i.conflict)}}var UH=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.dialog=r,this.phaseService=s,this.permissions=a,this.dialogService=o,this.loadingService=u,this.isSavePending=!1,this.issueUpdated=new jl,this.changeEditState=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"showSpinner",value:function(){this.loadingService.addViewContainerRef(this.loadingSpinnerContainer).showLoader(),this.isSavePending=!0}},{key:"hideSpinner",value:function(){this.loadingService.hideLoader(),this.isSavePending=!1}},{key:"ngOnInit",value:function(){this.issueDescriptionForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save",this.loadingService.addAnimationMode("indeterminate").addSpinnerOptions({diameter:15,strokeWidth:2}).addTheme("warn").addCssClasses(["mat-progress-spinner"])}},{key:"changeToEditMode",value:function(){this.changeEditState.emit(!0),this.issueDescriptionForm.setValue({description:this.issue.description||""})}},{key:"updateDescription",value:function(e){var t=this;this.issueDescriptionForm.invalid||(this.showSpinner(),this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(e){return e.description===t.issue.description}),ge(function(e){return e||"Overwrite"===t.submitButtonText?t.issueService.updateIssue(t.getUpdatedIssue()):(t.conflict=new DN(t.issue.description,t.issueService.issues[t.issue.id].description),t.submitButtonText="Overwrite",t.viewChanges(),lb("The content you are editing has changed. Please verify the changes and try again."))})).subscribe(function(n){t.issueUpdated.emit(n),t.resetToDefault(),e.resetForm(),t.hideSpinner()},function(e){t.errorHandlingService.handleError(e),t.hideSpinner()}))}},{key:"viewChanges",value:function(){this.dialog.open(AN,{data:this.conflict,autoFocus:!1})}},{key:"resetToDefault",value:function(){this.submitButtonText="Save",this.conflict=void 0,this.changeEditState.emit(!1)}},{key:"cancelEditMode",value:function(){var e=this;this.issueService.getIssue(this.issue.id).subscribe(function(t){e.issueUpdated.emit(t),e.resetToDefault()})}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.issueDescriptionForm,"description","description",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);return e.description=yj.updateDescription(this.issueDescriptionForm.get("description").value),e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(KL),yo(Nj),yo(Yq),yo(lN),yo(sN))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-description"]],viewQuery:function(e,t){var n;(1&e&&Kl(FH,5,gl),2&e)&&($l(n=Xl())&&(t.loadingSpinnerContainer=n.first))},inputs:{issue:"issue",descriptionTitle:"descriptionTitle",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",changeEditState:"changeEditState"},features:[Du([sN])],decls:13,vars:6,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action additional-editor-style","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action","additional-editor-style",3,"disabled"],["loadingSpinnerContainer",""]],template:function(e,t){if(1&e){var n=xo();ko(0,"h3",0),au(1),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.updateDescription(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"span"),ko(7,"strong"),au(8," Tester "),wo(),au(9),wo(),go(10,YH,2,0,"button",5),wo(),go(11,jH,2,1,"div",6),go(12,BH,8,9,"div",7),wo(),wo()}2&e&&(Ns(1),ou(t.descriptionTitle),Ns(1),_o("formGroup",t.issueDescriptionForm),Ns(7),uu(" posted on ",t.issue.created_at,". "),Ns(1),_o("ngIf",t.permissions.isIssueDescriptionEditable()&&!t.isEditing),Ns(1),_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[zw,hw,$w,Od,yM,fk,IN,PH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}[_nghost-%COMP%] .mat-progress-spinner{color:#00000080;display:inline-block;vertical-align:middle;margin-left:5px}"]}),e}();function zH(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){return ln(n),Fo().changeToEditMode()}),au(1,"Edit"),wo()}}function VH(e,t){if(1&e&&(ko(0,"div",9),So(1,"markdown",10),wo()),2&e){var n=Fo();Ns(1),_o("data",n.issue.teamResponse)}}function GH(e,t){if(1&e){var n=xo();ko(0,"button",17),Ao("click",function(){return ln(n),Fo(2).viewChanges()}),au(1," View Updated Response "),wo()}2&e&&_o("disabled",Fo(2).isSavePending)}function WH(e,t){if(1&e&&(ko(0,"button",18),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.responseForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function ZH(e,t){if(1&e&&(ko(0,"button",19),au(1),wo()),2&e){var n=Fo(2);_o("disabled",n.responseForm.invalid||n.isSavePending),Ns(1),uu(" ",n.submitButtonText," ")}}function QH(e,t){if(1&e){var n=xo();ko(0,"div"),ko(1,"app-comment-editor",11),Ao("isFormPendingChange",function(e){return ln(n),Fo().isSavePending=e})("submitButtonTextChange",function(e){return ln(n),Fo().submitButtonText=e}),wo(),ko(2,"div",12),go(3,GH,2,1,"button",13),go(4,WH,2,2,"button",14),go(5,ZH,2,2,"button",15),ko(6,"button",16),Ao("click",function(){return ln(n),Fo().openCancelDialogIfModified()}),au(7," Cancel "),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(1),_o("id","description")("commentField",i.responseForm.get("description"))("commentForm",i.responseForm)("isFormPending",i.isSavePending)("submitButtonText",i.submitButtonText),Ns(2),_o("ngIf",i.conflict),Ns(1),_o("ngIf",i.conflict),Ns(1),_o("ngIf",!i.conflict),Ns(1),_o("disabled",i.isSavePending)}}var $H=function(){var e=function(){return m(function e(t,n,i,r,s,a,o){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.permissions=r,this.dialog=s,this.phaseService=a,this.dialogService=o,this.isSavePending=!1,this.issueUpdated=new jl,this.updateEditState=new jl,this.cancelEditModalMessages=["Do you wish to cancel?","Your changes will be discarded."],this.yesButtonModalMessage="Cancel",this.noButtonModalMessage="Continue editing"},[{key:"ngOnInit",value:function(){this.responseForm=this.formBuilder.group({description:[""]}),this.submitButtonText="Save"}},{key:"changeToEditMode",value:function(){this.updateEditState.emit(!0),this.responseForm.setValue({description:this.issue.teamResponse||""})}},{key:"updateResponse",value:function(e){var t=this;if(!this.responseForm.invalid){this.isSavePending=!0;var n=this.getUpdatedIssue(),i=Object.assign(Object.assign({},n.issueComment),{description:n.createGithubTeamResponse()});this.isSafeToUpdate().pipe(ge(function(e){return e||"Overwrite"===t.submitButtonText?t.issueService.updateIssueWithComment(n,i):t.isUpdatingDeletedResponse()?t.issueService.createTeamResponse(n):(t.conflict=new DN(t.issue.teamResponse,t.issueService.issues[t.issue.id].teamResponse),t.submitButtonText="Overwrite",t.viewChanges(),lb("The content you are editing has changed. Please verify the changes and try again."))}),Kg(function(){return t.isSavePending=!1})).subscribe(function(n){t.issueUpdated.emit(n),t.resetToDefault(),e.resetForm()},function(e){t.errorHandlingService.handleError(e)})}}},{key:"isSafeToUpdate",value:function(){var e=this;return this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(t){return t.teamResponse===e.issue.teamResponse}))}},{key:"isUpdatingDeletedResponse",value:function(){return this.issue.teamResponse&&!this.issueService.issues[this.issue.id].teamResponse}},{key:"canEditIssue",value:function(){return this.permissions.isTeamResponseEditable()}},{key:"resetToDefault",value:function(){this.submitButtonText="Save",this.conflict=void 0,this.updateEditState.emit(!1)}},{key:"viewChanges",value:function(){this.dialog.open(AN,{data:this.conflict,autoFocus:!1})}},{key:"cancelEditMode",value:function(){var e=this;this.issueService.getIssue(this.issue.id).subscribe(function(t){e.issueUpdated.emit(t),e.resetToDefault()})}},{key:"openCancelDialogIfModified",value:function(){var e=this,t=this.dialogService.checkIfFieldIsModified(this.responseForm,"teamResponse","description",this.issue);this.dialogService.performActionIfModified(t,function(){return e.openCancelDialog()},function(){return e.cancelEditMode()})}},{key:"openCancelDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.cancelEditModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(t){t&&e.cancelEditMode()})}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);return e.teamResponse=yj.updateTeamResponse(this.responseForm.get("description").value),e.status||(e.status=""===e.teamResponse?kj.Incomplete:kj.Done),e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Yq),yo(KL),yo(Nj),yo(lN))},e.\u0275cmp=yt({type:e,selectors:[["app-team-response"]],inputs:{issue:"issue",isEditing:"isEditing"},outputs:{issueUpdated:"issueUpdated",updateEditState:"updateEditState"},decls:13,vars:4,consts:[[1,"mat-title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["style","float: right","mat-button","",3,"click",4,"ngIf"],["class","comment",4,"ngIf"],[4,"ngIf"],["mat-button","",2,"float","right",3,"click"],[1,"comment"],["disableInternalLink","",3,"data"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["class","editor-action","type","submit","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["type","button","mat-stroked-button","","color","warn",1,"editor-action",3,"disabled","click"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"]],template:function(e,t){if(1&e){var n=xo();ko(0,"h3",0),au(1,"Team's Response"),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.updateResponse(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"span"),ko(7,"strong"),au(8," Team "),wo(),au(9," responded. "),wo(),go(10,zH,2,0,"button",5),wo(),go(11,VH,2,1,"div",6),go(12,QH,8,9,"div",7),wo(),wo()}2&e&&(Ns(2),_o("formGroup",t.responseForm),Ns(8),_o("ngIf",t.canEditIssue()&&!t.isEditing),Ns(1),_o("ngIf",!t.isEditing),Ns(1),_o("ngIf",t.isEditing))},directives:[zw,hw,$w,Od,yM,fk,IN,PH],styles:["span[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}"]}),e}(),KH=(function(e){e.ID="id",e.TITLE="title",e.TEAM_ASSIGNED="teamAssigned",e.TYPE="type",e.SEVERITY="severity",e.RESPONSE="response",e.TESTER_DISAGREE="testerDisagree",e.ASSIGNEE="assignees",e.DUPLICATED_ISSUES="duplicatedIssues",e.TODO="Todo Remaining",e.ACTIONS="actions"}(KH||(KH={})),KH);function JH(e,t,n,i){var r=e.toLowerCase();return i.slice().filter(function(e){var i,s=M(t);try{for(s.s();!(i=s.n()).done;){var a=i.value;switch(a){case KH.ASSIGNEE:if(eB(e.assignees,r))return!0;break;case KH.DUPLICATED_ISSUES:if(tB(n,e.id,r))return!0;break;default:if(nB(e,a,r))return!0}}}catch(o){s.e(o)}finally{s.f()}return!1})}function XH(e,t){return-1!==e.indexOf(t)}function eB(e,t){return e.some(function(e){return XH(e.toLowerCase(),t)})}function tB(e,t,n){return function(e,t){return 0!==e.filter(function(e){return"#".concat(String(e.id)).includes(t)}).length}(e.issues$.getValue().filter(function(e){return e.duplicateOf===t}),n)}function nB(e,t,n){return XH(String(e[t]).toLowerCase(),n)}function iB(e,t){if(1&e){var n=xo();ko(0,"button",6),Ao("click",function(){return ln(n),Fo().openSelector()}),ko(1,"mat-icon",7),au(2," edit "),wo(),wo()}}function rB(e,t){if(1&e&&(ko(0,"mat-option",8),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),ou(n)}}function sB(e,t){1&e&&(ko(0,"p",9),au(1,"-"),wo())}function aB(e,t){if(1&e&&(ko(0,"mat-list-item",12),au(1),wo()),2&e){var n=t.$implicit;Ns(1),ou(n)}}function oB(e,t){if(1&e&&(ko(0,"mat-list",10),go(1,aB,2,1,"mat-list-item",11),wo()),2&e){var n=Fo();Ns(1),_o("ngForOf",n.issue.assignees)}}var uB=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.permissions=r,this.isInEditMode=!1,this.isEditable=!0,this.issueUpdated=new jl},[{key:"ngOnInit",value:function(){this.teamMembers=this.team.teamMembers.map(function(e){return e.loginId}),this.assignees=this.issue.assignees.map(function(e){return e})}},{key:"openSelector",value:function(){this.isInEditMode=!0,this.assigneeSelection.open()}},{key:"handleEditMode",value:function(e){e||(this.isInEditMode=!1)}},{key:"updateAssignee",value:function(){var e=this,t=this.issue.clone(this.phaseService.currentPhase),n=t.assignees;t.assignees=this.assignees,this.issueService.updateIssue(t).subscribe(function(t){e.issueUpdated.emit(t),e.issueService.getDuplicateIssuesFor(e.issue).pipe(Gg()).subscribe(function(t){t.forEach(function(t){var n=t.clone(e.phaseService.currentPhase);n.assignees=e.assignees,e.issueService.updateIssue(n)})})},function(t){e.errorHandlingService.handleError(t),e.assignees=n})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-assignee-component"]],viewQuery:function(e,t){var n;(1&e&&Kl(zO,7),2&e)&&($l(n=Xl())&&(t.assigneeSelection=n.first))},inputs:{issue:"issue",team:"team",isEditable:"isEditable"},outputs:{issueUpdated:"issueUpdated"},decls:9,vars:7,consts:[[1,"mat-title"],["style","float: right","mat-icon-button","",3,"click",4,"ngIf"],["placeholder","-","multiple","",1,"no-arrow",3,"ngModel","openedChange","closed","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["style","padding-top: 0","dense","",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"value"],[2,"margin-top","5px"],["dense","",2,"padding-top","0"],["style","font-size: 1em",4,"ngFor","ngForOf"],[2,"font-size","1em"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"span",0),au(2," Assignees "),wo(),go(3,iB,3,0,"button",1),ko(4,"mat-select",2),Ao("openedChange",function(e){return t.handleEditMode(e)})("closed",function(){return t.updateAssignee()})("ngModelChange",function(e){return t.assignees=e}),So(5,"mat-select-trigger"),go(6,rB,2,2,"mat-option",3),wo(),go(7,sB,2,0,"p",4),go(8,oB,2,1,"mat-list",5),wo()),2&e&&(Ns(3),_o("ngIf",t.permissions.isIssueLabelsEditable()&&t.isEditable&&!t.issue.duplicateOf),Ns(1),Zo("display",t.isInEditMode?"block":"none"),_o("ngModel",t.assignees),Ns(2),_o("ngForOf",t.teamMembers),Ns(1),_o("ngIf",0===t.issue.assignees.length),Ns(1),_o("ngIf",t.issue.assignees.length>0))},directives:[Od,zO,dw,Uw,BO,Ld,yM,bL,Dx,tO,rO],styles:[".no-arrow .mat-select-arrow{visibility:hidden}mat-list-item div.mat-list-item-content{padding-left:0}\n"],encapsulation:2}),e}();function lB(e,t){if(1&e&&(ko(0,"div",9),So(1,"div",12),wo()),2&e){var n=Fo();Ns(1),_o("innerHTML",n.updatedHtml,_s)}}function cB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Type "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.type))),Ns(1),uu(" ",n.data.type||"-"," ")}}function dB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Severity "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.severity))),Ns(1),uu(" ",n.data.severity||"-"," ")}}function hB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"span",13),au(3," Response "),wo(),ko(4,"p",14),au(5),wo(),wo()),2&e){var n=Fo();Ns(4),_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel(n.data.response))),Ns(1),uu(" ",n.data.response||"-"," ")}}function pB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),So(2,"app-assignee-component",15),wo()),2&e){var n=Fo();Ns(2),_o("issue",n.data)("team",n.data.teamAssigned)("isEditable",!1)}}function fB(e,t){if(1&e&&(ko(0,"div"),So(1,"mat-divider"),ko(2,"div"),ko(3,"span",13),au(4,"A Duplicate Of:"),wo(),ko(5,"p",16),au(6),Pl(7,"async"),wo(),wo(),wo()),2&e){var n=Fo();Ns(6),uu(" ","#"+n.data.duplicateOf+": "+Fl(7,1,n.issueService.getIssue(n.data.duplicateOf)).title," ")}}var mB=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isOnPreview=!1,this.isReady=!1,this.updatedHtml=this.sanitizer.bypassSecurityTrustHtml(kN(bN(n.teamResponse))),this.isReady=!0},[{key:"close",value:function(){this.dialogRef.close()}},{key:"handleTabChange",value:function(e){this.isOnPreview=1===e.index}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(zL),yo(GL),yo(Eh),yo(Fj),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-conflict-dialog"]],decls:21,vars:8,consts:[[2,"display","flex","margin-bottom","20px","align-items","center"],["mat-dialog-title","",2,"margin","0"],["mat-icon-button","","color","default",2,"margin","0 0 0 auto",3,"click"],["mat-dialog-content","",2,"display","flex"],[1,"column","left"],["animationDuration","0ms",1,"mat-elevation-z1",3,"selectedTabChange"],["label","Updated Markdown Text"],["class","tab-content",4,"ngIf"],["label","Preview"],[1,"tab-content"],[1,"column","right"],[4,"ngIf"],[3,"innerHTML"],[1,"mat-title"],[3,"ngStyle"],[3,"issue","team","isEditable"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"h1",1),au(2),wo(),ko(3,"button",2),Ao("click",function(){return t.close()}),ko(4,"mat-icon"),au(5,"close"),wo(),wo(),wo(),ko(6,"div",3),ko(7,"div",4),ko(8,"mat-tab-group",5),Ao("selectedTabChange",function(e){return t.handleTabChange(e)}),ko(9,"mat-tab",6),go(10,lB,2,1,"div",7),wo(),ko(11,"mat-tab",8),ko(12,"div",9),ko(13,"markdown"),au(14),wo(),wo(),wo(),wo(),wo(),ko(15,"div",10),go(16,cB,6,2,"div",11),go(17,dB,6,2,"div",11),go(18,hB,6,2,"div",11),go(19,pB,3,3,"div",11),go(20,fB,8,3,"div",11),wo(),wo()),2&e&&(Ns(2),ou("A new response was submitted by another user"),Ns(8),_o("ngIf",t.isReady),Ns(4),ou(t.data.teamResponse),Ns(2),_o("ngIf",t.data.type),Ns(1),_o("ngIf",t.data.severity),Ns(1),_o("ngIf",t.data.response),Ns(1),_o("ngIf",t.data.assignees),Ns(1),_o("ngIf",t.data.duplicateOf))},directives:[eA,yM,bL,tA,_P,lP,Od,fk,sA,qd,uB],pipes:[Ud],styles:[".tab-content[_ngcontent-%COMP%]{padding:10px;min-height:300px;max-height:55vh}.column.left[_ngcontent-%COMP%]{min-width:60vh;width:100%}.column.right[_ngcontent-%COMP%]{max-width:15%;min-width:20vh;width:100%}.column[_ngcontent-%COMP%]{padding:10px}"]}),e}();function gB(e,t){if(1&e){var n=xo();ko(0,"button",9),Ao("click",function(){ln(n);var e=Fo().$implicit;return Fo().openModalPopup(e)}),ko(1,"mat-icon",10),au(2,"info"),wo(),wo()}}var vB=function(){return{background:"transparent"}},yB=function(e){return{color:e}};function _B(e,t){if(1&e&&(ko(0,"div",5),ko(1,"mat-option",6),ko(2,"mat-icon",7),au(3,"stop"),wo(),ko(4,"span"),au(5),wo(),wo(),go(6,gB,3,0,"button",8),wo()),2&e){var n=t.$implicit,i=Fo();Ns(1),_o("value",n.labelValue)("ngStyle",Ll(5,vB)),Ns(1),_o("ngStyle",Al(6,yB,"#"+n.labelColor)),Ns(3),uu(" ",n.labelValue,""),Ns(1),_o("ngIf",i.hasLabelDefinition(n))}}function bB(e,t){if(1&e&&(ko(0,"mat-error"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",n.labelService.getLabelTitle(n.attributeName)," required. ")}}var kB=function(){var e=function(){return m(function e(t,n){g(this,e),this.labelService=t,this.dialogService=n},[{key:"ngOnInit",value:function(){this.selectedColor=this.labelService.getColorOfLabel(this.attributeName,this.initialValue),this.labelList=this.labelService.getLabelList(this.attributeName),this.dropdownControl=this.dropdownForm.get(this.attributeName)}},{key:"setSelectedLabelColor",value:function(e,t){this.selectedColor=this.labelService.getColorOfLabel(e,t)}},{key:"openModalPopup",value:function(e){this.dialogService.openLabelDefinitionDialog(e.getFormattedName(),this.labelService.getLabelDefinition(e.labelValue,e.labelCategory))}},{key:"hasLabelDefinition",value:function(e){return null!==this.labelService.getLabelDefinition(e.labelValue,e.labelCategory)}},{key:"dropdownTextColor",get:function(){return this.labelService.isDarkColor(this.selectedColor)?"white-text":"black-text"}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Fj),yo(lN))},e.\u0275cmp=yt({type:e,selectors:[["app-label-dropdown"]],inputs:{attributeName:"attributeName",initialValue:"initialValue",dropdownForm:"dropdownForm"},decls:7,vars:8,consts:[[3,"formGroup"],[2,"width","100%"],["required","","disableOptionCentering","",3,"ngClass","formControlName","placeholder","ngStyle","selectionChange"],["mat-menu-item","","class","labelLine",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",1,"labelLine"],[3,"value","ngStyle"],[3,"ngStyle"],["class","infoPopup",3,"click",4,"ngIf"],[1,"infoPopup",3,"click"],[2,"font-size","20px"]],template:function(e,t){1&e&&(ko(0,"form",0),ko(1,"mat-form-field",1),ko(2,"mat-select",2),Ao("selectionChange",function(e){return t.setSelectedLabelColor(t.attributeName,e.value)}),ko(3,"mat-select-trigger"),au(4),wo(),go(5,_B,7,8,"div",3),wo(),go(6,bB,2,1,"mat-error",4),wo(),wo()),2&e&&(_o("formGroup",t.dropdownForm),Ns(2),No("formControlName",t.attributeName),No("placeholder",t.labelService.getLabelTitle(t.attributeName)),_o("ngClass",t.dropdownTextColor)("ngStyle",t.labelService.setLabelStyle(t.selectedColor,"inline-block")),Ns(2),uu(" ",t.dropdownControl.value," "),Ns(1),_o("ngForOf",t.labelList),Ns(1),_o("ngIf",t.dropdownControl.errors&&t.dropdownControl.errors.required&&t.dropdownControl.touched))},directives:[zw,hw,$w,JC,zO,eS,Cd,dw,Jw,qd,BO,Ld,Od,fO,Dx,bL,jC],styles:[".white-text .mat-select-value-text{color:#fff!important} .black-text .mat-select-value-text{color:#000!important}.infoPopup[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;text-align:center}.labelLine[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 20%}"]}),e}();function wB(e,t){1&e&&(ko(0,"mat-icon",5),au(1,"cancel"),wo())}var SB=function(e){return[e]};function EB(e,t){if(1&e){var n=xo();ko(0,"mat-chip",2),Ao("removed",function(){var e=ln(n).$implicit;return Fo().removeDuplicateStatus(e)}),ko(1,"a",3),au(2),wo(),go(3,wB,2,0,"mat-icon",4),wo()}if(2&e){var i=t.$implicit,r=Fo();_o("matTooltip",i.title),Ns(1),_o("routerLink",Al(4,SB,"../"+i.id)),Ns(1),uu(" #",i.id," "),Ns(1),_o("ngIf",r.permissions.isTeamResponseEditable()||r.permissions.isTutorResponseEditable())}}var TB=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.permissions=r},[{key:"ngOnInit",value:function(){this.duplicatedIssues=this.issueService.getDuplicateIssuesFor(this.issue)}},{key:"removeDuplicateStatus",value:function(e){var t=this,n=this.getUpdatedIssueWithRemovedDuplicate(e);this.issueService.updateIssueWithComment(n,n.issueComment).subscribe(function(e){return t.issueService.updateLocalStore(e)},function(e){return t.errorHandlingService.handleError(e)})}},{key:"getUpdatedIssueWithRemovedDuplicate",value:function(e){var t=e.clone(this.phaseService.currentPhase);return t.duplicated=!1,t.duplicateOf=null,t.issueComment.description=t.createGithubTeamResponse(),t}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-duplicated-issues-component"]],inputs:{issue:"issue"},decls:6,vars:3,consts:[[1,"mat-title"],["style","cursor: pointer","matTooltipPosition","above",3,"matTooltip","removed",4,"ngFor","ngForOf"],["matTooltipPosition","above",2,"cursor","pointer",3,"matTooltip","removed"],[1,"no-underline","link-grey-dark",3,"routerLink"],["matChipRemove","",4,"ngIf"],["matChipRemove",""]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"span",0),au(2," Duplicated Issues "),wo(),ko(3,"mat-chip-list"),go(4,EB,4,6,"mat-chip",1),Pl(5,"async"),wo(),wo()),2&e&&(Ns(4),_o("ngForOf",Fl(5,1,t.duplicatedIssues)))},directives:[nL,Ld,$M,XO,O_,Od,bL,KM],pipes:[Ud],styles:[""],encapsulation:2}),e}();function DB(e,t){if(1&e&&(ko(0,"span",30),au(1),wo()),2&e){var n=Fo().$implicit,i=Fo(2);Ns(1),uu(" (",i.getDisabledDupOptionErrorText(n),") ")}}function xB(e,t){if(1&e&&(ko(0,"mat-option",26),ko(1,"span",27),au(2),wo(),ko(3,"span",28),au(4),wo(),go(5,DB,2,1,"span",29),wo()),2&e){var n=t.$implicit,i=Fo(2);_o("disabled",i.dupIssueOptionIsDisabled(n))("value",n.id),Ns(2),uu(" #",n.id,": "),Ns(2),ou(n.title),Ns(1),_o("ngIf",i.dupIssueOptionIsDisabled(n))}}function CB(e,t){1&e&&(ko(0,"mat-error"),au(1," Need to specify the duplicated issue. "),wo())}function MB(e,t){if(1&e){var n=xo();ko(0,"div",6),ko(1,"div"),ko(2,"mat-checkbox",21),Ao("change",function(e){return ln(n),Fo().handleChangeOfDuplicateCheckbox(e)}),au(3," A Duplicate Of: "),wo(),ko(4,"mat-form-field",22),ko(5,"mat-select",23),ko(6,"mat-option"),So(7,"ngx-mat-select-search",24),wo(),go(8,xB,6,5,"mat-option",25),Pl(9,"async"),wo(),go(10,CB,2,0,"mat-error",13),wo(),wo(),wo()}if(2&e){var i=Fo();Ns(4),Zo("visibility",i.duplicated.value?"visible":"hidden"),Ns(3),_o("formControl",i.searchFilterCtrl),Ns(1),_o("ngForOf",Fl(9,5,i.filteredDuplicateIssueList)),Ns(2),_o("ngIf",i.duplicateOf.errors&&i.duplicateOf.errors.required&&i.duplicateOf.touched)}}function LB(e,t){if(1&e&&(ko(0,"div",6),So(1,"app-duplicated-issues-component",31),wo()),2&e){var n=Fo();Ns(1),_o("issue",n.issue)}}function AB(e,t){if(1&e&&(ko(0,"mat-option",32),au(1),wo()),2&e){var n=t.$implicit;_o("value",n),Ns(1),ou(n)}}function OB(e,t){1&e&&(ko(0,"mat-error"),au(1," Assignee(s) required. "),wo())}function IB(e,t){if(1&e){var n=xo();ko(0,"button",33),Ao("click",function(){return ln(n),Fo().viewUpdatedResponse()}),au(1," View Updated Response "),wo()}2&e&&_o("disabled",Fo().isFormPending)}function RB(e,t){if(1&e&&(ko(0,"button",34),au(1),wo()),2&e){var n=Fo();_o("disabled",n.newTeamResponseForm.invalid||n.isFormPending),Ns(1),uu(" ",n.submitButtonText," ")}}function PB(e,t){if(1&e&&(ko(0,"button",35),au(1),wo()),2&e){var n=Fo();_o("disabled",n.newTeamResponseForm.invalid||n.isFormPending),Ns(1),uu(" ",n.submitButtonText," ")}}function FB(e,t){if(1&e){var n=xo();ko(0,"button",36),Ao("click",function(){return ln(n),Fo().refresh()}),au(1," Cancel "),wo()}2&e&&_o("disabled",Fo().isFormPending)}var YB=function(){var e=function(){return m(function e(t,n,i,r,s,a){g(this,e),this.issueService=t,this.formBuilder=n,this.labelService=i,this.errorHandlingService=r,this.dialog=s,this.phaseService=a,this.searchFilterCtrl=new Pw,this.filteredDuplicateIssueList=new qS(1),this.isFormPending=!1,this.issueUpdated=new jl,this._onDestroy=new ee},[{key:"ngOnInit",value:function(){var e=this;this.teamMembers=this.issue.teamAssigned.teamMembers.map(function(e){return e.loginId}),this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Gg()).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)}),this.searchFilterCtrl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){return e.filterIssues()}),this.newTeamResponseForm=this.formBuilder.group({description:[""],severity:[this.issue.severity,Hk.required],type:[this.issue.type,Hk.required],response:[this.issue.response,Hk.required],assignees:[this.issue.assignees.map(function(e){return e.toLowerCase()})],duplicated:[!1],duplicateOf:[""]}),this.duplicated.valueChanges.subscribe(function(t){t?(e.duplicateOf.setValidators(Hk.required),e.responseTag.setValidators(null)):(e.duplicateOf.setValidators(null),e.responseTag.setValidators(Hk.required)),e.duplicateOf.updateValueAndValidity(),e.responseTag.updateValueAndValidity()}),this.submitButtonText="Submit"}},{key:"filterIssues",value:function(){var e=this;this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)})}},{key:"changeFilter",value:function(e,t){var n=this;return e.pipe(Gg(),ie(function(e){return JH(t,[KH.ID,KH.TITLE],n.issueService,e)}))}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"submitNewTeamResponse",value:function(e){var t=this;if(!this.newTeamResponseForm.invalid){this.isFormPending=!0;var n=this.getUpdatedIssue();this.isSafeToSubmit().pipe(ge(function(e){var i=n.createGithubTeamResponse();return e?t.issueService.createTeamResponse(n):"Overwrite"===t.submitButtonText?t.issueService.updateIssueWithComment(n,{id:t.issueService.issues[t.issue.id].issueComment.id,description:i}):(t.conflict=new DN(" ",t.issueService.issues[t.issue.id].teamResponse),t.submitButtonText="Overwrite",t.viewUpdatedResponse(),lb("A response has been submitted. Please verify the changes and try again."))}),Kg(function(){return t.isFormPending=!1})).subscribe(function(n){t.issueUpdated.emit(n),e.resetForm()},function(e){t.errorHandlingService.handleError(e)})}}},{key:"isSafeToSubmit",value:function(){return this.issueService.getLatestIssue(this.issue.id).pipe(ie(function(e){return!e.teamResponse}))}},{key:"getUpdatedIssue",value:function(){var e=this.issue.clone(this.phaseService.currentPhase);if(e.duplicated=this.duplicated.value,e.duplicateOf=this.duplicateOf.value,e.duplicated){var t=this.issueService.issues[e.duplicateOf];e.severity=t.severity,e.type=t.type,e.assignees=t.assignees,e.response=t.response}else e.severity=this.severity.value,e.type=this.type.value,e.assignees=this.assignees.value,e.response=this.responseTag.value;return e.status=kj.Done,e.teamResponse=yj.updateTeamResponse(this.description.value),e}},{key:"dupIssueOptionIsDisabled",value:function(e){return e.duplicated||!!e.duplicateOf}},{key:"getDisabledDupOptionErrorText",value:function(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}},{key:"handleChangeOfDuplicateCheckbox",value:function(e){e.checked?(this.responseTag.setValue(""),this.assignees.setValue([]),this.responseTag.markAsUntouched()):(this.duplicateOf.setValue(""),this.duplicateOf.markAsUntouched())}},{key:"viewUpdatedResponse",value:function(){this.dialog.open(mB,{data:this.issueService.issues[this.issue.id],autoFocus:!1})}},{key:"refresh",value:function(){this.issueUpdated.emit(this.issueService.issues[this.issue.id])}},{key:"getDupIssueList",value:function(){var e=this;return this.issueService.issues$.pipe(ie(function(t){return t.filter(function(t){return e.issue.id!==t.id})}))}},{key:"description",get:function(){return this.newTeamResponseForm.get("description")}},{key:"severity",get:function(){return this.newTeamResponseForm.get("severity")}},{key:"type",get:function(){return this.newTeamResponseForm.get("type")}},{key:"assignees",get:function(){return this.newTeamResponseForm.get("assignees")}},{key:"responseTag",get:function(){return this.newTeamResponseForm.get("response")}},{key:"duplicated",get:function(){return this.newTeamResponseForm.get("duplicated")}},{key:"duplicateOf",get:function(){return this.newTeamResponseForm.get("duplicateOf")}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(Fj),yo(hF),yo(KL),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-new-team-response"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:29,vars:26,consts:[[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"timeline-comment"],[1,"timeline-header"],["class","container",4,"ngIf","ngIfElse"],["displayDuplicates",""],[1,"container"],[1,"left-half"],["attributeName","severity",3,"initialValue","dropdownForm"],[1,"right-half"],["attributeName","type",3,"initialValue","dropdownForm"],["placeholder","Assignees","formControlName","assignees","multiple",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["attributeName","response",3,"initialValue","dropdownForm"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],[1,"editor-actions"],["class","editor-action","type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["class","editor-action","type","submit","mat-raised-button","","color","warn",3,"disabled",4,"ngIf"],["type","submit","class","editor-action","mat-stroked-button","","color","primary",3,"disabled",4,"ngIf"],["class","editor-action","type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",3,"disabled","click",4,"ngIf"],["formControlName","duplicated",2,"display","inline-block","width","20%",3,"change"],[2,"display","inline-block","width","50%"],["formControlName","duplicateOf","placeholder","Duplicate of"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"disabled","value",4,"ngFor","ngForOf"],[3,"disabled","value"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","color: #f44336",4,"ngIf"],[1,"mat-caption",2,"color","#f44336"],[3,"issue"],[3,"value"],["type","button","mat-raised-button","","color","primary",1,"editor-action",3,"disabled","click"],["type","submit","mat-raised-button","","color","warn",1,"editor-action",3,"disabled"],["type","submit","mat-stroked-button","","color","primary",1,"editor-action",3,"disabled"],["type","button","mat-stroked-button","","color","warn","matTooltip","Updated response will overwrite your changes",1,"editor-action",3,"disabled","click"]],template:function(e,t){if(1&e){var n=xo();ko(0,"form",0,1),Ao("ngSubmit",function(){ln(n);var e=vo(1);return t.submitNewTeamResponse(e)}),ko(2,"div",2),ko(3,"div",3),ko(4,"span"),au(5," Post your team's response here. "),wo(),wo(),ko(6,"div"),go(7,MB,11,7,"div",4),Pl(8,"async"),go(9,LB,2,1,"ng-template",null,5,ic),ko(11,"div",6),ko(12,"div",7),So(13,"app-label-dropdown",8),wo(),ko(14,"div",9),So(15,"app-label-dropdown",10),wo(),wo(),ko(16,"div",6),ko(17,"mat-form-field",7),ko(18,"mat-select",11),go(19,AB,2,2,"mat-option",12),wo(),go(20,OB,2,0,"mat-error",13),wo(),ko(21,"div",9),So(22,"app-label-dropdown",14),wo(),wo(),ko(23,"app-comment-editor",15),Ao("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),wo(),ko(24,"div",16),go(25,IB,2,1,"button",17),go(26,RB,2,2,"button",18),go(27,PB,2,2,"button",19),go(28,FB,2,1,"button",20),wo(),wo(),wo(),wo()}if(2&e){var i=vo(10);_o("formGroup",t.newTeamResponseForm),Ns(7),_o("ngIf",0===Fl(8,24,t.issueService.getDuplicateIssuesFor(t.issue)).length)("ngIfElse",i),Ns(4),Zo("display",t.duplicated.value?"none":"grid"),Ns(2),_o("initialValue",t.issue.severity)("dropdownForm",t.newTeamResponseForm),Ns(2),_o("initialValue",t.issue.type)("dropdownForm",t.newTeamResponseForm),Ns(1),Zo("display",t.duplicated.value?"none":"grid"),Ns(3),_o("ngForOf",t.teamMembers),Ns(1),_o("ngIf",t.assignees.errors&&t.assignees.errors.required&&t.assignees.touched),Ns(2),_o("initialValue",t.issue.response)("dropdownForm",t.newTeamResponseForm),Ns(1),_o("id","description")("commentField",t.newTeamResponseForm.get("description"))("commentForm",t.newTeamResponseForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),Ns(2),_o("ngIf",t.conflict),Ns(1),_o("ngIf",t.conflict),Ns(1),_o("ngIf",!t.conflict),Ns(1),_o("ngIf",t.conflict)}},directives:[zw,hw,$w,Od,kB,JC,zO,dw,Jw,Ld,PH,BM,Dx,Dq,Zw,jC,TB,yM,XO],pipes:[Ud],styles:[".left-half[_ngcontent-%COMP%]{grid-column:1;padding-right:5px}.right-half[_ngcontent-%COMP%]{grid-column:2;padding-left:5px}.container[_ngcontent-%COMP%]{padding:10px 20px 0;display:grid}"]}),e}(),jB=function(){var e=function(){return m(function e(){g(this,e)},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-parse-error"]],inputs:{phase:"phase"},decls:7,vars:2,consts:[[1,"timeline-comment"],[1,"timeline-header"],[1,"comment"]],template:function(e,t){1&e&&(ko(0,"div",0),ko(1,"div",1),ko(2,"span"),ko(3,"strong"),au(4),wo(),wo(),wo(),ko(5,"div",2),au(6),wo(),wo()),2&e&&(Ns(4),uu("Error in parsing ",t.phase,""),Ns(2),uu("No valid ",t.phase," was found. Please contact the teaching team for assistance."))},styles:[".timeline-header[_ngcontent-%COMP%]{background-color:#f7d2d2;border-bottom:1px solid #ebc0c0;border-top-left-radius:3px;border-top-right-radius:3px;color:#586069;height:35px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between}.timeline-comment[_ngcontent-%COMP%]{overflow:auto;border:1px solid #ebc0c0;background-color:#fff;border-radius:3px;margin-bottom:30px;white-space:pre-line}.comment[_ngcontent-%COMP%]{padding:15px}"]}),e}();function qB(e,t){1&e&&(ko(0,"mat-chip",19),au(1," No Changes "),wo())}function NB(e,t){if(1&e&&(ko(0,"div",20),ko(1,"mat-checkbox",21),au(2," I disagree "),wo(),wo()),2&e){var n=Fo().index,i=Fo();Ns(1),_o("disabled",!0)("checked",i.data.updatedResponses[n].isDisagree())}}function HB(e,t){1&e&&(ko(0,"div",22),ko(1,"i",23),au(2,"add_box"),wo(),ko(3,"ins",24),au(4," I disagree "),wo(),wo())}function BB(e,t){1&e&&(ko(0,"div",22),ko(1,"i",25),au(2,"indeterminate_check_box"),wo(),ko(3,"del",26),au(4,"I disagree"),wo(),wo())}function UB(e,t){if(1&e&&So(0,"div",28),2&e){var n=Fo(2).index;_o("innerHTML",Fo().diffHtmls[n],_s)}}function zB(e,t){if(1&e&&So(0,"div",28),2&e){var n=Fo(2).index;_o("innerHTML",Fo().updatedHtmls[n],_s)}}function VB(e,t){if(1&e&&(ko(0,"div",18),go(1,UB,1,1,"div",27),go(2,zB,1,1,"div",27),wo()),2&e){var n=Fo(2);Ns(1),_o("ngIf",n.showDiff),Ns(1),_o("ngIf",!n.showDiff)}}function GB(e,t){if(1&e&&(ko(0,"mat-expansion-panel",7),ko(1,"mat-expansion-panel-header"),ko(2,"mat-panel-title",8),ko(3,"div",9),au(4,"?"),wo(),So(5,"markdown",10),wo(),ko(6,"mat-panel-description"),ko(7,"mat-chip-list"),go(8,qB,2,0,"mat-chip",11),wo(),wo(),wo(),So(9,"br"),So(10,"markdown",10),So(11,"br"),go(12,NB,3,2,"div",12),go(13,HB,5,0,"div",13),go(14,BB,5,0,"div",13),ko(15,"mat-tab-group",14),ko(16,"mat-tab",15),go(17,VB,3,2,"div",16),wo(),ko(18,"mat-tab",17),ko(19,"div",18),ko(20,"markdown"),au(21),wo(),wo(),wo(),wo(),wo()),2&e){var n=t.$implicit,i=t.index,r=Fo();_o("expanded",r.panelOpenStates[i]),Ns(5),_o("data",r.data.updatedResponses[i].getTitleInMarkDown()),Ns(3),_o("ngIf",0===r.data.outdatedResponses[i].compareTo(r.data.updatedResponses[i])),Ns(2),_o("data",r.data.updatedResponses[i].description),Ns(2),_o("ngIf",r.data.updatedResponses[i].isDisagree()===r.data.outdatedResponses[i].isDisagree()||!r.showDiff),Ns(1),_o("ngIf",!r.data.outdatedResponses[i].isDisagree()&&r.data.updatedResponses[i].isDisagree()&&r.showDiff),Ns(1),_o("ngIf",r.data.outdatedResponses[i].isDisagree()&&!r.data.updatedResponses[i].isDisagree()&&r.showDiff),Ns(3),_o("ngIf",r.isReady),Ns(4),ou(n.updatedContent)}}var WB=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.dialogRef=t,this.data=n,this.sanitizer=i,this.labelService=r,this.issueService=s,this.isReady=!1,this.showDiff=!0,this.conflicts=[],this.diffHtmls=[],this.updatedHtmls=[],this.panelOpenStates=[];for(var a=0;at}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"ngOnInit",value:function(){var e=this;this.duplicatedIssueList=this.getDupIssueList(),this.duplicatedIssueList.pipe(Gg()).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)}),this.searchFilterCtrl.valueChanges.pipe(OS(this._onDestroy)).subscribe(function(t){return e.filterIssues()})}},{key:"filterIssues",value:function(){var e=this;this.changeFilter(this.duplicatedIssueList,this.searchFilterCtrl.value).subscribe(function(t){return e.filteredDuplicateIssueList.next(t)})}},{key:"updateDuplicateStatus",value:function(e){var t=this,n=this.getUpdatedIssue(e);this.issueService.updateIssueWithComment(n,n.issueComment).subscribe(function(e){return t.issueUpdated.emit(e)},function(e){return t.errorHandlingService.handleError(e)})}},{key:"dupIssueOptionIsDisabled",value:function(e){return e.duplicated||!!e.duplicateOf}},{key:"getDisabledDupOptionErrorText",value:function(e){return this.dupIssueOptionIsDisabled(e)?"Duplicate of #"+e.duplicateOf:""}},{key:"handleCheckboxChange",value:function(e){e.checked?this.openSelection():(this.isEditing=!1,this.duplicateOfSelection.close(),this.duplicateOfSelection.value=null,this.updateDuplicateStatus(null))}},{key:"openSelection",value:function(){this.isEditing=!0,this.duplicateOfSelection.open()}},{key:"handleSelectionOpenChange",value:function(e){e||(this.isEditing=!1,this.duplicatedCheckbox.checked=this.duplicateOfSelection.value)}},{key:"getUpdatedIssue",value:function(e){var t=this.issue.clone(this.phaseService.currentPhase);if(t.duplicated=!!e,t.duplicateOf=e?e.value:null,e){var n=this.issueService.issues[t.duplicateOf];t.severity=n.severity,t.type=n.type,t.assignees=n.assignees,t.response=n.response}return t.issueComment.description=t.createGithubTeamResponse(),t}},{key:"changeFilter",value:function(e,t){var n=this;return e.pipe(Gg(),ie(function(e){return JH(t,[KH.ID,KH.TITLE],n.issueService,e)}))}},{key:"getDupIssueList",value:function(){var e=this;return this.issueService.issues$.pipe(ie(function(t){return t.filter(function(t){return e.issue.id!==t.id&&e.issue.teamAssigned.id===t.teamAssigned.id})}))}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(Yq),yo(hF),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-duplicate-of-component"]],viewQuery:function(e,t){var n;(1&e&&(Kl(zO,7),Kl(BM,7)),2&e)&&($l(n=Xl())&&(t.duplicateOfSelection=n.first),$l(n=Xl())&&(t.duplicatedCheckbox=n.first))},inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:14,vars:12,consts:[["labelPosition","after",3,"disabled","checked","change"],[1,"mat-title"],["style","float: right","mat-icon-button","",3,"visibility","click",4,"ngIf"],["placeholder","-",1,"no-arrow",2,"width","100%",3,"value","selectionChange","openedChange"],["placeholderLabel","Search issues","noEntriesFoundLabel","No issues found",3,"formControl"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value",4,"ngFor","ngForOf"],["style","margin-top: 5px",4,"ngIf"],["mat-icon-button","",2,"float","right",3,"click"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],[3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","value"],[1,"duplicate-dropdown-issuedetails",3,"ngStyle"],[1,"mat-body-strong"],[1,"mat-body"],["class","mat-caption","style","display: inline-block; color: #f44336",4,"ngIf"],[1,"mat-caption",2,"display","inline-block","color","#f44336"],[2,"margin-top","5px"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-checkbox",0),Ao("change",function(e){return t.handleCheckboxChange(e)}),ko(2,"span",1),au(3,"A Duplicate Of:"),wo(),wo(),go(4,xU,3,2,"button",2),ko(5,"mat-select",3),Ao("selectionChange",function(e){return t.updateDuplicateStatus(e)})("openedChange",function(e){return t.handleSelectionOpenChange(e)}),ko(6,"mat-option"),So(7,"ngx-mat-select-search",4),wo(),So(8,"mat-select-trigger"),go(9,LU,7,11,"mat-option",5),Pl(10,"async"),wo(),ko(11,"div"),go(12,AU,3,3,"span",6),go(13,OU,2,0,"span",6),wo(),wo()),2&e&&(Ns(1),_o("disabled",!t.permissions.isTeamResponseEditable()&&!t.permissions.isTutorResponseEditable())("checked",t.issue.duplicated),Ns(3),_o("ngIf",t.permissions.isIssueLabelsEditable()),Ns(1),Zo("display",t.isEditing?"block":"none"),_o("value",t.issue.duplicateOf),Ns(2),_o("formControl",t.searchFilterCtrl),Ns(2),_o("ngForOf",Fl(10,10,t.filteredDuplicateIssueList)),Ns(3),_o("ngIf",t.issue.duplicated),Ns(1),_o("ngIf",!t.issue.duplicated))},directives:[BM,Od,zO,Dx,Dq,dw,Zw,BO,Ld,yM,bL,XO,qd],pipes:[Ud],styles:[".mat-checkbox-disabled .mat-checkbox-label{color:#000}.duplicate-dropdown-issuedetails{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom!important}\n"],encapsulation:2}),e}(),RU=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.errorHandlingService=n,this.phaseService=i,this.issueUpdated=new jl},[{key:"ngOnInit",value:function(){}},{key:"handleChangeOfUnsureCheckbox",value:function(e){var t=this,n=!1;e.checked&&(n=!0);var i=this.issue.clone(this.phaseService.currentPhase);i.unsure=n,this.issueService.updateIssue(i).subscribe(function(e){t.issueUpdated.emit(e)},function(e){t.errorHandlingService.handleError(e)})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(hF),yo(Nj))},e.\u0275cmp=yt({type:e,selectors:[["app-unsure-checkbox"]],inputs:{issue:"issue"},outputs:{issueUpdated:"issueUpdated"},decls:3,vars:1,consts:[["labelPosition","before",3,"checked","change"],[1,"mat-title"]],template:function(e,t){1&e&&(ko(0,"mat-checkbox",0),Ao("change",function(e){return t.handleChangeOfUnsureCheckbox(e)}),ko(1,"span",1),au(2," Unsure "),wo(),wo()),2&e&&_o("checked",t.issue.unsure)},directives:[BM],styles:[".mat-checkbox-disabled[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{color:#000}"]}),e}(),PU=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,cq,Aq,Rq,Oq,Lq,Pq,YP,Cq,Mq,mk.forChild(),Iq]]}),e}();!function(e,t,n){var i=e.\u0275cmp;i.directiveDefs=function(){return t.map(_t)},i.pipeDefs=function(){return n.map(bt)}}(rN,[Od,TI,yN,sA,UH,$H,YB,jB,oU,uU,yU,DU,uB,TB,IU,RU],[Ud]);var FU=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.location=t,this.router=n,this.dialogService=i,this.modalDialogMessages=["Do you wish to leave the page?","You have unsaved changes that will be discarded."],this.yesButtonDialogMessage="Yes, I wish to leave",this.noButtonDialogMessage="No, I don't wish to leave"},[{key:"openDialog",value:function(){return this.dialogService.openUserConfirmationModal(this.modalDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed()}},{key:"canDeactivate",value:function(e,t,n,i){if(e.canDeactivate&&!e.canDeactivate()&&"/"!==i.url){var r=this.router.createUrlTree([],t).toString();return this.location.go(r),this.openDialog()}return Oh(!0)}}])}();return e.\u0275fac=function(t){return new(t||e)($i(kd),$i(M_),$i(lN))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),YU=function(){var e=function(){return m(function e(t){g(this,e),this.route=t,this.issueComponents=[iN.TESTER_POST,iN.SEVERITY_LABEL,iN.TYPE_LABEL]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}();function jU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title required. "),wo())}function qU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot contain only whitespaces. "),wo())}function NU(e,t){1&e&&(ko(0,"mat-error"),au(1," Title cannot exceed 256 characters. "),wo())}function HU(e,t){if(1&e&&(ko(0,"mat-hint"),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" ",256-(null==n.title.value?null:n.title.value.length)," characters remaining. ")}}var BU=function(){var e=function(){return m(function e(t,n,i,r,s){g(this,e),this.issueService=t,this.formBuilder=n,this.errorHandlingService=i,this.labelService=r,this.router=s,this.isFormPending=!1},[{key:"ngOnInit",value:function(){this.newIssueForm=this.formBuilder.group({title:["",[Hk.required,Hk.maxLength(256),function(e){return e.value&&""===e.value.trim()?{whitespace:!0}:null}]],description:[""],severity:["",Hk.required],type:["",Hk.required]}),this.submitButtonText="Submit"}},{key:"submitNewIssue",value:function(e){var t=this;this.newIssueForm.invalid||(this.isFormPending=!0,this.issueService.createIssue(this.title.value,yj.updateDescription(this.description.value),this.severity.value,this.type.value).pipe(Kg(function(){return t.isFormPending=!1})).subscribe(function(n){t.issueService.updateLocalStore(n),t.router.navigateByUrl("phaseBugReporting/issues/".concat(n.id)),e.resetForm()},function(e){t.errorHandlingService.handleError(e)}))}},{key:"canDeactivate",value:function(){return!(this.isAttributeEditing(this.title)||this.isAttributeEditing(this.description)||this.isAttributeEditing(this.severity)||this.isAttributeEditing(this.type))}},{key:"isAttributeEditing",value:function(e){return null!==e.value&&""!==e.value}},{key:"title",get:function(){return this.newIssueForm.get("title")}},{key:"description",get:function(){return this.newIssueForm.get("description")}},{key:"severity",get:function(){return this.newIssueForm.get("severity")}},{key:"type",get:function(){return this.newIssueForm.get("type")}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(aS),yo(hF),yo(Fj),yo(M_))},e.\u0275cmp=yt({type:e,selectors:[["app-new-issue"]],decls:22,vars:14,consts:[[1,"mat-display-1","title"],[3,"formGroup","ngSubmit"],["myForm","ngForm"],[1,"form"],[1,"row"],[1,"column","left"],["id","title","formControlName","title","matInput","","placeholder","Title","required","","maxlength","256"],[4,"ngIf"],[2,"margin","10px 0 10px 0"],[3,"id","commentField","commentForm","isFormPending","submitButtonText","isFormPendingChange","submitButtonTextChange"],["type","submit","mat-stroked-button","","color","primary",1,"submit-new-bug-report",2,"float","right",3,"disabled"],[1,"column","right"],[1,"severity-dropdown"],["initialValue","","attributeName","severity",3,"dropdownForm"],[1,"bug-dropdown"],["initialValue","","attributeName","type",3,"dropdownForm"]],template:function(e,t){if(1&e){var n=xo();ko(0,"h1",0),au(1,"New Issue"),wo(),ko(2,"form",1,2),Ao("ngSubmit",function(){ln(n);var e=vo(3);return t.submitNewIssue(e)}),ko(4,"div",3),ko(5,"div",4),ko(6,"div",5),ko(7,"mat-form-field"),So(8,"input",6),go(9,jU,2,0,"mat-error",7),go(10,qU,2,0,"mat-error",7),go(11,NU,2,0,"mat-error",7),go(12,HU,2,1,"mat-hint",7),wo(),ko(13,"div",8),ko(14,"app-comment-editor",9),Ao("isFormPendingChange",function(e){return t.isFormPending=e})("submitButtonTextChange",function(e){return t.submitButtonText=e}),wo(),wo(),ko(15,"button",10),au(16),wo(),wo(),ko(17,"div",11),ko(18,"div",12),So(19,"app-label-dropdown",13),wo(),ko(20,"div",14),So(21,"app-label-dropdown",15),wo(),wo(),wo(),wo(),wo()}2&e&&(Ns(2),_o("formGroup",t.newIssueForm),Ns(7),_o("ngIf",t.title.errors&&t.title.errors.required&&(t.title.touched||t.title.dirty)),Ns(1),_o("ngIf",t.title.errors&&t.title.errors.whitespace),Ns(1),_o("ngIf",t.title.errors&&t.title.errors.maxlength),Ns(1),_o("ngIf",(null==t.title.value?null:t.title.value.length)>=206),Ns(2),_o("id","description")("commentField",t.description)("commentForm",t.newIssueForm)("isFormPending",t.isFormPending)("submitButtonText",t.submitButtonText),Ns(1),_o("disabled",!t.newIssueForm.valid||t.isFormPending),Ns(1),uu(" ",t.submitButtonText," "),Ns(3),_o("dropdownForm",t.newIssueForm),Ns(2),_o("dropdownForm",t.newIssueForm))},directives:[zw,hw,$w,JC,Pk,IL,dw,Jw,eS,nS,Od,PH,yM,kB,jC,UC],styles:[".form[_ngcontent-%COMP%]{width:80%;margin:0 auto}mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:75%}.right[_ngcontent-%COMP%]{width:25%}"]}),e}(),UU=function(){var e=m(function e(t,n){g(this,e),this.snackBarRef=t,this.data=n});return e.\u0275fac=function(t){return new(t||e)(yo(oR),yo(rR))},e.\u0275cmp=yt({type:e,selectors:[["app-undo-action"]],decls:4,vars:1,consts:[[2,"display","inline-block","max-width","300px"],["mat-button","","color","accent",2,"float","right","margin-top","8px",3,"click"]],template:function(e,t){1&e&&(ko(0,"p",0),au(1),wo(),ko(2,"button",1),Ao("click",function(){return t.snackBarRef.dismissWithAction()}),au(3," Undo "),wo()),2&e&&(Ns(1),uu(" ",t.data.message," "))},directives:[yM],encapsulation:2}),e}();function zU(e,t,n){return n.splice(e*t,t)}function VU(e,t){return String(e||"").toUpperCase()0),Ns(1),_o("ngIf",!i.isTodoListChecked(n)),Ns(1),_o("ngIf",n.issueDisputes.length>0),Ns(1),_o("ngIf",0===n.issueDisputes.length)}}function Az(e,t){1&e&&(ko(0,"mat-header-cell",34),au(1,"Response"),wo())}function Oz(e,t){if(1&e&&(ko(0,"span",24),Ao("click",function(e){return e.stopPropagation()}),au(1," Disagree "),wo()),2&e){var n=Fo(2);_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel("response","Rejected")))}}function Iz(e,t){if(1&e&&(ko(0,"span",24),Ao("click",function(e){return e.stopPropagation()}),au(1," Agree "),wo()),2&e){var n=Fo(2);_o("ngStyle",n.labelService.setLabelStyle(n.labelService.getColorOfLabel("response","Accepted")))}}function Rz(e,t){if(1&e&&(ko(0,"mat-cell"),go(1,Oz,2,1,"span",26),go(2,Iz,2,1,"span",26),wo()),2&e){var n=t.$implicit;Ns(1),_o("ngIf",n.testerDisagree),Ns(1),_o("ngIf",!n.testerDisagree)}}function Pz(e,t){1&e&&(ko(0,"mat-header-cell"),au(1," Actions "),wo())}function Fz(e,t){if(1&e){var n=xo();ko(0,"button",54),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().viewIssueInBrowser(t.id,e)}),ko(1,"mat-icon"),au(2,"open_in_new"),wo(),wo()}}function Yz(e,t){if(1&e){var n=xo();ko(0,"button",55),Ao("click",function(){ln(n);var e=Fo().$implicit;return Fo().logIssueRespondRouting(e.id)}),ko(1,"mat-icon"),au(2,"feedback"),wo(),wo()}2&e&&_o("routerLink","issues/"+Fo().$implicit.id)}function jz(e,t){1&e&&(ko(0,"button",57),ko(1,"mat-icon"),au(2,"edit"),wo(),wo())}function qz(e,t){if(1&e&&go(0,jz,3,0,"button",56),2&e){var n=Fo(2);_o("ngIf",n.permissions.isIssueEditable()&&n.isActionVisible(n.action_buttons.FIX_ISSUE))}}function Nz(e,t){if(1&e){var n=xo();ko(0,"button",58),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().markAsResponded(t,e)}),ko(1,"mat-icon"),au(2,"check_circle"),wo(),wo()}}function Hz(e,t){if(1&e){var n=xo();ko(0,"button",59),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().markAsPending(t,e)}),ko(1,"mat-icon"),au(2,"cancel"),wo(),wo()}}function Bz(e,t){if(1&e){var n=xo();ko(0,"button",60),Ao("click",function(e){ln(n);var t=Fo().$implicit;return Fo().openDeleteDialog(t.id,e),e.stopPropagation()}),ko(1,"mat-icon"),au(2,"delete_outline"),wo(),wo()}}function Uz(e,t){1&e&&So(0,"mat-spinner",61),2&e&&_o("diameter",25)}function zz(e,t){if(1&e&&(ko(0,"mat-cell"),go(1,Fz,3,0,"button",47),go(2,Yz,3,1,"button",48),go(3,qz,1,1,"ng-template",null,49,ic),go(5,Nz,3,0,"button",50),go(6,Hz,3,0,"button",51),go(7,Bz,3,0,"button",52),go(8,Uz,1,1,"mat-spinner",53),wo()),2&e){var n=t.$implicit,i=vo(4),r=Fo();Ns(1),_o("ngIf",r.isActionVisible(r.action_buttons.VIEW_IN_WEB)),Ns(1),_o("ngIf",r.isResponseEditable()&&!n.status&&r.isActionVisible(r.action_buttons.RESPOND_TO_ISSUE))("ngIfElse",i),Ns(3),_o("ngIf",r.isResponseEditable()&&n.status&&r.isActionVisible(r.action_buttons.MARK_AS_RESPONDED)),Ns(1),_o("ngIf",("Student"===r.userService.currentUser.role||"Admin"===r.userService.currentUser.role)&&r.isActionVisible(r.action_buttons.MARK_AS_PENDING)),Ns(1),_o("ngIf",r.permissions.isIssueDeletable()&&!r.issuesPendingDeletion[n.id]&&r.isActionVisible(r.action_buttons.DELETE_ISSUE)),Ns(1),_o("ngIf",r.issuesPendingDeletion[n.id]&&r.isActionVisible(r.action_buttons.DELETE_ISSUE))}}function Vz(e,t){1&e&&So(0,"mat-header-row")}function Gz(e,t){if(1&e){var n=xo();ko(0,"mat-row",62),Ao("click",function(){var e=ln(n).$implicit;return Fo().logIssueEditRouting(e.id)}),wo()}2&e&&_o("routerLink","issues/"+t.$implicit.id)}function Wz(e,t){1&e&&(ko(0,"mat-card",63),So(1,"mat-progress-spinner",64),wo())}var Zz=function(){return[10,20,50]},Qz=(function(e){e[e.VIEW_IN_WEB=0]="VIEW_IN_WEB",e[e.MARK_AS_RESPONDED=1]="MARK_AS_RESPONDED",e[e.MARK_AS_PENDING=2]="MARK_AS_PENDING",e[e.RESPOND_TO_ISSUE=3]="RESPOND_TO_ISSUE",e[e.FIX_ISSUE=4]="FIX_ISSUE",e[e.DELETE_ISSUE=5]="DELETE_ISSUE"}(Qz||(Qz={})),Qz),$z=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null;g(this,e),this.userService=t,this.permissions=n,this.labelService=i,this.githubService=r,this.issueService=s,this.issueTableSettingsService=a,this.phaseService=o,this.errorHandlingService=u,this.logger=l,this.dialogService=c,this.snackBar=d,this.snackBarAutoCloseTime=3e3,this.filters=void 0,this.action_buttons=Qz,this.deleteIssueModalMessages=["Do you wish to delete this issue?","This action is irreversible!"],this.yesButtonModalMessage="Yes, I wish to delete this issue",this.noButtonModalMessage="No, I don't wish to delete this issue"},[{key:"ngOnInit",value:function(){this.issues=new WU(this.issueService,this.sort,this.paginator,this.headers,this.filters),this.issuesPendingDeletion={},this.tableSettings=this.issueTableSettingsService.getTableSettings(this.table_name)}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.issues.loadIssues()})}},{key:"sortChange",value:function(e){this.tableSettings.sortActiveId=e.active,this.tableSettings.sortDirection=e.direction,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}},{key:"pageChange",value:function(e){this.tableSettings.pageSize=e.pageSize,this.tableSettings.pageIndex=e.pageIndex,this.issueTableSettingsService.setTableSettings(this.table_name,this.tableSettings)}},{key:"isActionVisible",value:function(e){return this.actions.includes(e)}},{key:"markAsResponded",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Marking Issue ".concat(e.id," as Responded"));var i=e.clone(this.phaseService.currentPhase);i.status=kj.Done,this.issueService.updateIssue(i).subscribe(function(e){n.issueService.updateLocalStore(e)},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation()}},{key:"isResponseEditable",value:function(){return this.permissions.isTeamResponseEditable()||this.permissions.isTesterResponseEditable()}},{key:"markAsPending",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Marking Issue ".concat(e.id," as Pending"));var i=e.clone(this.phaseService.currentPhase);i.status=kj.Incomplete,this.issueService.updateIssue(i).subscribe(function(e){n.issueService.updateLocalStore(e)},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation()}},{key:"logIssueRespondRouting",value:function(e){this.logger.info("IssueTablesComponent: Proceeding to Respond to Issue ".concat(e))}},{key:"logIssueEditRouting",value:function(e){this.logger.info("IssueTablesComponent: Proceeding to Edit Issue ".concat(e))}},{key:"todoFinished",value:function(e){return e.issueDisputes.length-e.numOfUnresolvedDisputes()}},{key:"isTodoListChecked",value:function(e){return e.issueDisputes&&0===e.numOfUnresolvedDisputes()}},{key:"viewIssueInBrowser",value:function(e,t){this.logger.info("IssueTablesComponent: Opening Issue ".concat(e," on Github")),this.githubService.viewIssueInBrowser(e,t)}},{key:"deleteIssue",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Deleting Issue ".concat(e)),this.issuesPendingDeletion=Object.assign(Object.assign({},this.issuesPendingDeletion),D({},e,!0)),this.issueService.deleteIssue(e).pipe(Kg(function(){var t=(0,QP._T)(n.issuesPendingDeletion,["symbol"==typeof e?e:e+""]);n.issuesPendingDeletion=t})).subscribe(function(e){},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation();this.snackBar.openFromComponent(UU,{data:{message:"Deleted issue ".concat(e)},duration:this.snackBarAutoCloseTime}).onAction().subscribe(function(){n.undeleteIssue(e,t)})}},{key:"undeleteIssue",value:function(e,t){var n=this;this.logger.info("IssueTablesComponent: Undeleting Issue ".concat(e)),this.issueService.undeleteIssue(e).subscribe(function(e){},function(e){n.errorHandlingService.handleError(e)}),t.stopPropagation(),this.snackBar.open("Restored issue ".concat(e),"",{duration:this.snackBarAutoCloseTime})}},{key:"openDeleteDialog",value:function(e,t){var n=this;this.dialogService.openUserConfirmationModal(this.deleteIssueModalMessages,this.yesButtonModalMessage,this.noButtonModalMessage).afterClosed().subscribe(function(i){i&&(n.logger.info("IssueTablesComponent: Deleting issue ".concat(e)),n.deleteIssue(e,t))})}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(SF),yo(Yq),yo(Fj),yo(_F),yo(Hj),yo(QU),yo(Nj),yo(hF),yo(cF),yo(lN),yo(pR))},e.\u0275cmp=yt({type:e,selectors:[["app-issue-tables"]],viewQuery:function(e,t){var n;(1&e&&(Kl(_R,7),Kl(fI,7)),2&e)&&($l(n=Xl())&&(t.sort=n.first),$l(n=Xl())&&(t.paginator=n.first))},inputs:{headers:"headers",actions:"actions",filters:"filters",table_name:"table_name"},decls:38,vars:14,consts:[["matSort","",1,"mat-elevation-z8",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","title"],["matColumnDef","teamAssigned",4,"ngIf"],["matColumnDef","type"],["matColumnDef","severity"],["matColumnDef","response"],["matColumnDef","assignees"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","duplicatedIssues"],[4,"matHeaderCellDef"],["matColumnDef","Todo Remaining"],["matColumnDef","testerDisagree"],["matColumnDef","actions"],[4,"matHeaderRowDef"],["style","cursor: pointer",3,"routerLink","click",4,"matRowDef","matRowDefColumns"],["style","display: flex; justify-content: center; align-items: center",4,"ngIf"],[3,"paginatorLocalStorage","pageSize","pageSizeOptions","pageIndex","page"],["mat-sort-header",""],[2,"cursor","default",3,"click"],[1,"no-underline","link-grey-dark","title-wrap",3,"routerLink"],["matColumnDef","teamAssigned"],[3,"ngStyle","click"],["style","display: inline; padding: 1px 2px",3,"click",4,"ngIf"],[3,"ngStyle","click",4,"ngIf"],[2,"display","inline","padding","1px 2px",3,"click"],[1,"arrow-right"],["style","display: inline; margin: 3px",3,"click",4,"ngIf"],[2,"display","inline","margin","3px",3,"click"],["style","margin-left: 10%",4,"ngIf"],[2,"margin-left","10%"],["matTooltip","Should not be empty","matTooltipPosition","above","color","warn"],["mat-header-cell","","mat-sort-header",""],["style","cursor: default",3,"click",4,"ngIf"],["style","margin-left: 5%",4,"ngIf"],[2,"margin-left","5%"],["matTooltip","We strongly recommend assigning all issues to someone","matTooltipPosition","above",2,"color","#ffab40"],[4,"ngIf"],["style","display: inline-block; margin-left: 5px",4,"ngFor","ngForOf"],[2,"display","inline-block","margin-left","5px"],["matTooltipPosition","above",2,"font-size","12px","cursor","pointer",3,"routerLink","matTooltip"],["role","progressbar","style","width: 100%","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",3,"value","max",4,"ngIf"],["color","green"],["color","red"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",2,"width","100%",3,"value","max"],["mat-button","","matTooltip","View this issue on GitHub","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Respond to this issue",3,"routerLink","click",4,"ngIf","ngIfElse"],["tryEditIssue",""],["mat-button","","color","primary","style","transform: scale(0.8)","matTooltip","Mark this issue as Responded",3,"click",4,"ngIf"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","","style","transform: scale(0.8)",3,"click",4,"ngIf"],["mat-button","","color","warn","matTooltip","Delete this issue","style","transform: scale(0.8)",3,"click",4,"ngIf"],["color","warn","style","display: inline; padding-right: 30px; margin-left: 5px",3,"diameter",4,"ngIf"],["mat-button","","matTooltip","View this issue on GitHub",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","accent","matTooltip","Respond to this issue",2,"transform","scale(0.8)",3,"routerLink","click"],["mat-button","","color","accent","style","transform: scale(0.8)","matTooltip","Edit this issue",4,"ngIf"],["mat-button","","color","accent","matTooltip","Edit this issue",2,"transform","scale(0.8)"],["mat-button","","color","primary","matTooltip","Mark this issue as Responded",2,"transform","scale(0.8)",3,"click"],["color","primary","matTooltip","Mark this issue as Pending","mat-button","",2,"transform","scale(0.8)",3,"click"],["mat-button","","color","warn","matTooltip","Delete this issue",2,"transform","scale(0.8)",3,"click"],["color","warn",2,"display","inline","padding-right","30px","margin-left","5px",3,"diameter"],[2,"cursor","pointer",3,"routerLink","click"],[2,"display","flex","justify-content","center","align-items","center"],["color","primary","mode","indeterminate","diameter","50","strokeWidth","5"]],template:function(e,t){1&e&&(ko(0,"mat-table",0),Ao("matSortChange",function(e){return t.sortChange(e)}),Eo(1,1),go(2,KU,2,0,"mat-header-cell",2),go(3,JU,3,1,"mat-cell",3),To(),Eo(4,4),go(5,XU,2,0,"mat-header-cell",2),go(6,ez,3,2,"mat-cell",3),To(),go(7,iz,3,0,"ng-container",5),Eo(8,6),go(9,rz,2,0,"mat-header-cell",2),go(10,oz,5,4,"mat-cell",3),To(),Eo(11,7),go(12,uz,2,0,"mat-header-cell",2),go(13,dz,5,4,"mat-cell",3),To(),Eo(14,8),go(15,hz,2,0,"mat-header-cell",2),go(16,mz,3,2,"mat-cell",3),To(),Eo(17,9),go(18,gz,2,0,"mat-header-cell",10),go(19,_z,3,2,"mat-cell",3),To(),Eo(20,11),go(21,bz,2,0,"mat-header-cell",12),go(22,Ez,5,6,"mat-cell",3),To(),Eo(23,13),go(24,Tz,2,0,"mat-header-cell",2),go(25,Lz,5,4,"mat-cell",3),To(),Eo(26,14),go(27,Az,2,0,"mat-header-cell",10),go(28,Rz,3,2,"mat-cell",3),To(),Eo(29,15),go(30,Pz,2,0,"mat-header-cell",12),go(31,zz,9,7,"mat-cell",3),To(),go(32,Vz,1,0,"mat-header-row",16),au(33,"> "),go(34,Gz,1,1,"mat-row",17),wo(),go(35,Wz,2,0,"mat-card",18),Pl(36,"async"),ko(37,"mat-paginator",19),Ao("page",function(e){return t.pageChange(e)}),wo()),2&e&&(_o("dataSource",t.issues)("matSortActive",t.tableSettings.sortActiveId)("matSortDirection",t.tableSettings.sortDirection),Ns(7),_o("ngIf","Student"!==t.userService.currentUser.role),Ns(25),_o("matHeaderRowDef",t.headers),Ns(2),_o("matRowDefColumns",t.headers),Ns(1),_o("ngIf",Fl(36,11,t.issues.isLoading$)),Ns(2),_o("paginatorLocalStorage",t.table_name)("pageSize",t.tableSettings.pageSize)("pageSizeOptions",Ll(13,Zz))("pageIndex",t.tableSettings.pageIndex))},directives:[MR,_R,OR,AR,LR,Od,PR,FR,fI,$U,IR,TR,RR,O_,qd,bL,XO,Ld,nL,$M,A_,yM,TI,YR,jR,MM,EI],pipes:[Ud],styles:[".mat-table[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-width:1000px}.mat-paginator[_ngcontent-%COMP%]{min-width:1000px}.mat-column-id[_ngcontent-%COMP%]{flex:0 1 5%}.mat-column-type[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-responseTag[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-assignees[_ngcontent-%COMP%]{word-wrap:normal}.mat-column-actions[_ngcontent-%COMP%]{overflow-x:auto;text-align:center!important}.mat-header-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-row[_ngcontent-%COMP%]{grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;min-width:100%}.mat-icon.arrow-right[_ngcontent-%COMP%]{cursor:default;vertical-align:middle}.mat-cell.mat-column-type[_ngcontent-%COMP%]{flex-wrap:wrap}.mat-cell.mat-column-actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{min-width:32px}.mat-column-type[_ngcontent-%COMP%]{flex-basis:12px}.title-wrap[_ngcontent-%COMP%]{overflow-wrap:anywhere}"]}),e}();function Kz(e,t){1&e&&(ko(0,"button",8),au(1," New Issue "),wo())}var Jz=[{path:"phaseBugReporting",component:function(){var e=function(){return m(function e(t,n){g(this,e),this.permissions=t,this.userService=n,this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.DELETE_ISSUE,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Yq),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-bug-reporting"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:13,vars:4,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],[1,"grid-flush-right"],["mat-stroked-button","","class","create-new-bug-report-button","color","primary","routerLink","issues/new",4,"ngIf"],["table_name","tableBugReporting",3,"headers","actions"],["mat-stroked-button","","color","primary","routerLink","issues/new",1,"create-new-bug-report-button"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),ko(9,"mat-grid-tile"),ko(10,"div",5),go(11,Kz,2,0,"button",6),wo(),wo(),wo(),So(12,"app-issue-tables",7),wo()),2&e&&(Ns(5),uu(" ","Student"===t.userService.currentUser.role?"Issues you posted":"All Issues"," "),Ns(6),_o("ngIf",t.permissions.isIssueCreatable()),Ns(1),_o("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[GA,jA,JC,IL,Od,$z,yM,A_],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:20%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:35%}.mat-column-type[_ngcontent-%COMP%]{width:25%}.mat-column-severity[_ngcontent-%COMP%]{width:23%}"]}),e}(),canActivate:[lq]},{path:"phaseBugReporting/issues/new",component:BU,canActivate:[lq],canDeactivate:[FU]},{path:"phaseBugReporting/issues/:issue_id",component:YU,canActivate:[lq],canDeactivate:[FU]}],Xz=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(Jz)],z_]}),e}(),eV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[Xz,YP,Cq,cq,PU,mk.forChild(),dq,Mq]]}),e}(),tV=function(){var e=function(){return m(function e(t,n,i,r){g(this,e),this.route=t,this.userService=n,this.permissions=i,this.issueService=r,this.issueComponents=[iN.TESTER_POST,iN.TEAM_RESPONSE,iN.ISSUE_DISPUTE,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.RESPONSE_LABEL,iN.DUPLICATE,iN.UNSURE_CHECKBOX]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy),yo(SF),yo(Yq),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}();function nV(e,t){1&e&&(ko(0,"button",11),ko(1,"mat-icon",12),au(2," settings "),wo(),wo()),2&e&&(Fo(),_o("matMenuTriggerFor",vo(6)))}function iV(e,t){if(1&e){var n=xo();ko(0,"button",13),Ao("click",function(){var e=ln(n).$implicit;return Fo().updateDisplayedTeam(e)}),ko(1,"span"),au(2),wo(),wo()}if(2&e){var i=t.$implicit;_o("disabled",i===Fo().teamFilter),Ns(2),uu(" ",i," ")}}var rV=[{path:"phaseModeration",component:function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.userService=n,this.dataService=i,this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.TODO,KH.ACTIONS],this.teamFilter="All Teams",this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.issueService.setIssueTeamFilter(this.teamFilter)}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}},{key:"teamList",get:function(){var e=this.dataService.getTeams();switch(Sj[LF.phaseModeration][this.userService.currentUser.role]){case wj.FilterByTeamAssigned:return["All Teams"].concat(d(this.userService.currentUser.allocatedTeams.map(function(e){return e.id})));case wj.NoFilter:return["All Teams"].concat(d(e))}}},{key:"updateDisplayedTeam",value:function(e){this.teamFilter=e,this.table.issues.teamFilter=this.teamFilter}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF),yo(wF))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-moderation"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:18,vars:5,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableModeration",3,"headers","actions"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"div",0),ko(2,"span",1),au(3),wo(),go(4,nV,3,1,"button",2),ko(5,"mat-menu",null,3),go(7,iV,3,2,"button",4),wo(),wo(),ko(8,"mat-grid-list",5),ko(9,"mat-grid-tile"),ko(10,"div",6),ko(11,"h1",7),au(12,"Issues Submitted by Students"),wo(),wo(),wo(),So(13,"br"),ko(14,"mat-grid-tile"),ko(15,"mat-form-field",8),ko(16,"input",9),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(17,"app-issue-tables",10),wo()),2&e&&(Ns(3),uu(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),Ns(1),_o("ngIf",t.teamList),Ns(3),_o("ngForOf",t.teamList),Ns(10),_o("headers",t.displayedColumns)("actions",t.actionButtons))},directives:[Od,yO,Ld,GA,jA,JC,IL,$z,yM,SO,bL,fO],styles:[".mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-Todo-Remaining[_ngcontent-%COMP%]{width:20%}.mat-column-actions[_ngcontent-%COMP%]{width:10%;text-align:center}"]}),e}(),canActivate:[lq]},{path:"phaseModeration/issues/:issue_id",component:tV,canActivate:[lq],canDeactivate:[FU]}],sV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(rV)],z_]}),e}(),aV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[sV,YP,Cq,cq,PU,mk.forChild(),dq]]}),e}(),oV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.route=n,this.permissions=i,this.issueComponents=[iN.TESTER_POST,iN.TEAM_RESPONSE,iN.NEW_TEAM_RESPONSE,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.RESPONSE_LABEL,iN.ASSIGNEE,iN.DUPLICATE]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(uy),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[".row[_ngcontent-%COMP%]{display:flex}.column[_ngcontent-%COMP%]{padding:10px;height:100%}.left[_ngcontent-%COMP%]{width:85%}.right[_ngcontent-%COMP%]{width:15%}"]}),e}(),uV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.permissions=n,this.userService=i,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.RESPOND_TO_ISSUE,Qz.MARK_AS_RESPONDED,Qz.FIX_ISSUE],this.displayedColumns=i.currentUser.role!==kF.Student?[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){return function(t){return!e.issueService.hasTeamResponse(t.id)||!t.status||t.status===kj.Incomplete}(t)&&function(e){return!e.duplicateOf}(t)&&function(e){return!e.status||!e.teamResponseError}(t)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(Yq),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-pending"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Pending Response"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:26%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:10%}.mat-column-type[_ngcontent-%COMP%]{width:12%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-duplicateOf[_ngcontent-%COMP%]{width:12%}"]}),e}(),lV=function(){var e=function(){return m(function e(t,n){g(this,e),this.issueService=t,this.userService=n,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.MARK_AS_PENDING,Qz.FIX_ISSUE],this.displayedColumns=n.currentUser.role===kF.Student?[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){return n=t,e.issueService.hasTeamResponse(n.id)&&!t.duplicateOf&&t.status===kj.Done;var n}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-responded"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Responded"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:11%}.mat-column-severity[_ngcontent-%COMP%]{width:6%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:6%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:13%;text-align:center}.grid-flush-right[_ngcontent-%COMP%]{position:absolute;right:5px}"]}),e}(),cV=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.issueService=t,this.userService=n,this.permissions=i,this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE],this.displayedColumns=n.currentUser.role===kF.Student?[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]:[KH.ID,KH.TITLE,KH.TEAM_ASSIGNED,KH.TYPE,KH.SEVERITY,KH.RESPONSE,KH.ASSIGNEE,KH.DUPLICATED_ISSUES,KH.ACTIONS]},[{key:"ngOnChanges",value:function(e){e.teamFilter.isFirstChange()||(this.table.issues.teamFilter=e.teamFilter.currentValue)}},{key:"ngOnInit",value:function(){var e=this;this.filter=function(t){var n,i=(n=t,e.issueService.hasTeamResponse(n.id)&&!!t.duplicateOf&&function(t){return!!e.issueService.issues$.getValue().filter(function(e){return e.duplicateOf===t.id}).length}(t)),r=!!t.status&&function(e){return!!e.teamResponseError}(t);return i||r}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(Hj),yo(SF),yo(Yq))},e.\u0275cmp=yt({type:e,selectors:[["app-issues-faulty"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},inputs:{teamFilter:"teamFilter"},features:[Ft],decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTeamResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Faulty Issues"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-id[_ngcontent-%COMP%]{width:5%}.mat-column-title[_ngcontent-%COMP%]{width:20%}.mat-column-type[_ngcontent-%COMP%]{width:15%}.mat-column-severity[_ngcontent-%COMP%]{width:10%}.mat-column-responseTag[_ngcontent-%COMP%]{width:10%}.mat-column-assignees[_ngcontent-%COMP%]{width:10%}.mat-column-teamAssigned[_ngcontent-%COMP%]{width:7%}.mat-column-duplicatedIssues[_ngcontent-%COMP%]{width:10%}.mat-column-actions[_ngcontent-%COMP%]{width:15%;text-align:center}"]}),e}();function dV(e,t){1&e&&(ko(0,"button",6),ko(1,"mat-icon",7),au(2," settings "),wo(),wo()),2&e&&(Fo(),_o("matMenuTriggerFor",vo(6)))}function hV(e,t){if(1&e){var n=xo();ko(0,"button",8),Ao("click",function(){var e=ln(n).$implicit;return Fo().updateDisplayedTeam(e)}),ko(1,"span"),au(2),wo(),wo()}if(2&e){var i=t.$implicit;_o("disabled",i===Fo().teamFilter),Ns(2),uu(" ",i," ")}}var pV=[{path:"phaseTeamResponse",component:function(){var e=function(){return m(function e(t,n,i){g(this,e),this.userService=t,this.dataService=n,this.issueService=i,this.teamFilter="All Teams"},[{key:"ngOnInit",value:function(){this.issueService.setIssueTeamFilter(this.teamFilter)}},{key:"teamList",get:function(){var e=this.dataService.getTeams();switch(Sj[LF.phaseTeamResponse][this.userService.currentUser.role]){case wj.FilterByTeamAssigned:return["All Teams"].concat(d(this.userService.currentUser.allocatedTeams.map(function(e){return e.id})));case wj.NoFilter:return["All Teams"].concat(d(e))}}},{key:"updateDisplayedTeam",value:function(e){this.teamFilter=e}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(SF),yo(wF),yo(Hj))},e.\u0275cmp=yt({type:e,selectors:[["app-phase-team-response"]],decls:11,vars:6,consts:[[2,"text-align","center","margin-bottom","20px"],[1,"mat-display-1"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["teamMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],[3,"teamFilter"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"font-size","20px","margin-bottom","7px","color","#586069"],["mat-menu-item","",3,"disabled","click"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"div",0),ko(2,"span",1),au(3),wo(),go(4,dV,3,1,"button",2),ko(5,"mat-menu",null,3),go(7,hV,3,2,"button",4),wo(),wo(),So(8,"app-issues-pending",5),So(9,"app-issues-responded",5),So(10,"app-issues-faulty",5),wo()),2&e&&(Ns(3),uu(" ",t.teamList?t.teamFilter:t.userService.currentUser.team.id," "),Ns(1),_o("ngIf",t.teamList),Ns(3),_o("ngForOf",t.teamList),Ns(1),_o("teamFilter",t.teamFilter),Ns(1),_o("teamFilter",t.teamFilter),Ns(1),_o("teamFilter",t.teamFilter))},directives:[Od,yO,Ld,uV,lV,cV,yM,SO,bL,fO],styles:[".container[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;text-align:center}.title[_ngcontent-%COMP%]{color:#000;margin:0;padding:30px 20px}.mat-column-actions[_ngcontent-%COMP%]{width:80px;text-align:center}.mat-column-id[_ngcontent-%COMP%]{width:10%}.mat-column-title[_ngcontent-%COMP%]{width:40%}.mat-column-type[_ngcontent-%COMP%]{width:30%}.mat-column-severity[_ngcontent-%COMP%]{width:12%}"]}),e}(),canActivate:[lq]},{path:"phaseTeamResponse/issues/:issue_id",component:oV,canActivate:[lq],canDeactivate:[FU]}],fV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(pV)],z_]}),e}(),mV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[fV,YP,Cq,cq,PU,mk.forChild(),dq]]}),e}(),gV=function(){var e=function(){return m(function e(t){g(this,e),this.route=t,this.issueComponents=[iN.TESTER_POST,iN.SEVERITY_LABEL,iN.TYPE_LABEL,iN.TEAM_RESPONSE,iN.TESTER_RESPONSE]},[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.issueId=+t.issue_id})}},{key:"canDeactivate",value:function(){return!this.viewIssue.isEditing()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(uy))},e.\u0275cmp=yt({type:e,selectors:[["app-issue"]],viewQuery:function(e,t){var n;(1&e&&Kl(rN,7),2&e)&&($l(n=Xl())&&(t.viewIssue=n.first))},decls:2,vars:2,consts:[[3,"issueId","issueComponents"]],template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-view-issue",0),wo()),2&e&&(Ns(1),_o("issueId",t.issueId)("issueComponents",t.issueComponents))},directives:[rN],styles:[""]}),e}(),vV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.RESPOND_TO_ISSUE,Qz.MARK_AS_RESPONDED,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return function(e){return!e.status||e.status===kj.Incomplete}(e)&&function(e){return!!e.issueComment}(e)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-pending"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponsePending",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Pending Response"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),yV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.TESTER_DISAGREE,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.MARK_AS_PENDING,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return function(e){return e.status===kj.Done}(e)&&function(e){return!!e.issueComment}(e)}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-responded"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseResponded",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Issues Responded"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),_V=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB,Qz.FIX_ISSUE]},[{key:"ngOnInit",value:function(){this.filter=function(e){return e.testerResponseError}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-faulty"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0px"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseFaulty",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Faulty Issues"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),bV=function(){var e=function(){return m(function e(){g(this,e),this.displayedColumns=[KH.ID,KH.TITLE,KH.TYPE,KH.SEVERITY,KH.ACTIONS],this.actionButtons=[Qz.VIEW_IN_WEB]},[{key:"ngOnInit",value:function(){this.filter=function(e){return e.teamAccepted}}},{key:"applyFilter",value:function(e){this.table.issues.filter=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-issue-accepted"]],viewQuery:function(e,t){var n;(1&e&&Kl($z,7),2&e)&&($l(n=Xl())&&(t.table=n.first))},decls:10,vars:3,consts:[["cols","3","rowHeight","80px"],[1,"grid-flush-left"],[1,"mat-headline",2,"margin","0"],[1,"full-grid-width"],["matInput","","placeholder","Search",3,"keyup"],["table_name","tableTesterResponseAccepted",3,"headers","actions","filters"]],template:function(e,t){1&e&&(ko(0,"div"),ko(1,"mat-grid-list",0),ko(2,"mat-grid-tile"),ko(3,"div",1),ko(4,"h1",2),au(5,"Accepted by Dev Team (No Action Required)"),wo(),wo(),wo(),ko(6,"mat-grid-tile"),ko(7,"mat-form-field",3),ko(8,"input",4),Ao("keyup",function(e){return t.applyFilter(e.target.value)}),wo(),wo(),wo(),wo(),So(9,"app-issue-tables",5),wo()),2&e&&(Ns(9),_o("headers",t.displayedColumns)("actions",t.actionButtons)("filters",t.filter))},directives:[GA,jA,JC,IL,$z],styles:[""]}),e}(),kV=[{path:"phaseTesterResponse",component:function(){var e=function(){return m(function e(){g(this,e)},[{key:"ngOnInit",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=yt({type:e,selectors:[["app-phase-tester-response"]],decls:5,vars:0,template:function(e,t){1&e&&(ko(0,"div"),So(1,"app-issue-pending"),So(2,"app-issue-responded"),So(3,"app-issue-faulty"),So(4,"app-issue-accepted"),wo())},directives:[vV,yV,_V,bV],styles:[""]}),e}(),canActivate:[lq]},{path:"phaseTesterResponse/issues/:issue_id",component:gV,canActivate:[lq],canDeactivate:[FU]}],wV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forChild(kV)],z_]}),e}(),SV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[zd,wV,YP,PU,dq,mk.forChild()]]}),e}(),EV=[{path:"",loadChildren:function(){return uq}},{path:"phaseBugReporting",loadChildren:function(){return eV},canLoad:[lq]},{path:"phaseTeamResponse",loadChildren:function(){return mV},canLoad:[lq]},{path:"phaseTesterResponse",loadChildren:function(){return SV},canLoad:[lq]},{path:"phaseModeration",loadChildren:function(){return aV},canLoad:[lq]},{path:"**",redirectTo:""}],TV=function(){var e=m(function e(){g(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=Ue({imports:[[z_.forRoot(EV)],z_]}),e}();function DV(e,t){if(1&e){var n=xo();ko(0,"button",12),Ao("click",function(){return ln(n),Fo().goBack()}),ko(1,"mat-icon"),au(2,"arrow_back_ios"),wo(),wo()}}function xV(e,t){if(1&e&&(ko(0,"span",13),au(1),wo()),2&e){var n=Fo();Ns(1),uu(" (",n.getPhaseDescription(n.phaseService.currentPhase),") ")}}var CV=function(e){return{color:"green",visibility:e}};function MV(e,t){if(1&e){var n=xo();ko(0,"button",18),Ao("click",function(){var e=ln(n).$implicit;return Fo(2).routeToSelectedPhase(e)}),ko(1,"span"),ko(2,"mat-icon",19),au(3,"done"),wo(),au(4),wo(),wo()}if(2&e){var i=t.$implicit,r=Fo(2);Ns(2),_o("ngStyle",Al(2,CV,r.phaseService.currentPhase===i?"visible":"hidden")),Ns(2),uu(" ",r.getPhaseDescription(i)," ")}}function LV(e,t){if(1&e&&(ko(0,"div"),ko(1,"button",14),ko(2,"mat-icon",15),au(3,"expand_more"),wo(),wo(),ko(4,"mat-menu",null,16),go(6,MV,5,4,"button",17),wo(),wo()),2&e){var n=vo(5),i=Fo();Ns(1),_o("matMenuTriggerFor",n),Ns(5),_o("ngForOf",i.phaseService.sessionData.openPhases)}}function AV(e,t){if(1&e){var n=xo();ko(0,"button",20),Ao("click",function(){return ln(n),Fo().viewBrowser()}),ko(1,"mat-icon"),au(2,"open_in_new"),wo(),wo()}}function OV(e,t){if(1&e){var n=xo();ko(0,"button",21),Ao("click",function(){return ln(n),Fo().reload()}),au(1," Sync "),ko(2,"mat-icon"),au(3,"refresh"),wo(),wo()}}function IV(e,t){1&e&&(ko(0,"div",22),ko(1,"span",23),au(2,"Sync"),wo(),So(3,"mat-spinner",24),wo()),2&e&&(Ns(3),_o("diameter",20))}function RV(e,t){if(1&e){var n=xo();ko(0,"button",25),Ao("click",function(e){return ln(n),Fo().openLogOutDialog(),e.stopPropagation()}),au(1),ko(2,"mat-icon",26),au(3,"exit_to_app"),wo(),wo()}if(2&e){var i=Fo();Ns(1),uu(" (",i.userService.currentUser.loginId,") ")}}var PV=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c,d,h){var p=this;g(this,e),this.router=t,this.auth=n,this.phaseService=i,this.userService=r,this.logger=s,this.location=a,this.githubEventService=o,this.issueService=u,this.errorHandlingService=l,this.githubService=c,this.dialogService=d,this.issueTableSettingsService=h,this.isReloadButtonDisabled=!1,this.ISSUE_FILTER="/issues?q=is:issue+is:open",this.TUTORIAL_LABEL="+label:tutorial.",this.TEAM_LABEL="+label:team.",this.EXCLUDE_DUPLICATE="+-label:duplicate",this.logOutDialogMessages=["Do you wish to log out?"],this.yesButtonDialogMessage="Yes, I wish to log out",this.noButtonDialogMessage="No, I don't wish to log out",t.events.pipe(Rh(function(e){return e instanceof sv}),PS()).subscribe(function(e){p.prevUrl=e[0].urlAfterRedirects})},[{key:"ngOnInit",value:function(){}},{key:"routeToSelectedPhase",value:function(e){this.phaseService.currentPhase!==LF[e]&&(this.phaseService.currentPhase=LF[e],this.githubService.storePhaseDetails(this.phaseService.getPhaseOwner(this.phaseService.currentPhase),this.phaseService.sessionData[e]),this.githubService.reset(),this.issueService.reset(!1),this.reload(),this.issueTableSettingsService.clearTableSettings(),this.router.navigateByUrl(this.phaseService.currentPhase))}},{key:"isBackButtonShown",value:function(){return"/".concat(this.phaseService.currentPhase)!==this.router.url&&"/"!==this.router.url&&!this.router.url.startsWith("/?code")}},{key:"isReloadButtonShown",value:function(){return"/phaseBugReporting/issues/new"!==this.router.url}},{key:"isOpenUrlButtonShown",value:function(){return this.phaseService.currentPhase===LF.phaseBugReporting||this.userService.currentUser.role===kF.Student||"All Teams"!==this.issueService.getIssueTeamFilter()||this.router.url.includes("/issues")}},{key:"getVersion",value:function(){return HP.version}},{key:"getPhaseDescription",value:function(e){return qj[e]}},{key:"goBack",value:function(){this.prevUrl==="/".concat(this.phaseService.currentPhase,"/issues/new")?this.router.navigate(["/phaseBugReporting"]):this.location.back()}},{key:"viewBrowser",value:function(){var e,t=this.router.url.substring(1),n=t.indexOf("/");e=n<0?this.ISSUE_FILTER.concat(this.getTeamFilterString()):t.substring(n),window.open("https://github.com/".concat(this.githubService.getRepoURL()).concat(e))}},{key:"openIssueTracker",value:function(){window.open("https://github.com/CATcher-org/CATcher/issues")}},{key:"getTeamFilterString",value:function(){if(this.phaseService.currentPhase===LF.phaseBugReporting||this.phaseService.currentPhase===LF.phaseTesterResponse)return"";this.userService.currentUser.team&&this.issueService.setIssueTeamFilter(this.userService.currentUser.team.id);var e=this.issueService.getIssueTeamFilter().split("-"),t=this.TUTORIAL_LABEL.concat("".concat(e[0],"-").concat(e[1])).concat(this.TEAM_LABEL).concat(e[2]);return this.phaseService.currentPhase===LF.phaseModeration?t:this.EXCLUDE_DUPLICATE.concat(t)}},{key:"reload",value:function(){var e=this;this.isReloadButtonDisabled=!0,this.githubEventService.reloadPage().subscribe(function(e){return e},function(t){e.errorHandlingService.handleError(t,function(){return e.githubEventService.reloadPage()})}),setTimeout(function(){e.isReloadButtonDisabled=!1},3e3)}},{key:"logOut",value:function(){this.auth.logOut()}},{key:"openLogOutDialog",value:function(){var e=this;this.dialogService.openUserConfirmationModal(this.logOutDialogMessages,this.yesButtonDialogMessage,this.noButtonDialogMessage).afterClosed().subscribe(function(t){t&&(e.logger.info("HeaderComponent: Logging out from ".concat(e.userService.currentUser.loginId)),e.logOut())})}},{key:"exportLogFile",value:function(){this.logger.exportLogFile()}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(M_),yo(zj),yo(Nj),yo(SF),yo(cF),yo(kd),yo(Bj),yo(Hj),yo(hF),yo(_F),yo(lN),yo(QU))},e.\u0275cmp=yt({type:e,selectors:[["app-layout-header"]],decls:17,vars:9,consts:[["color","primary",2,"position","sticky","position","-webkit-sticky","top","0","z-index","1000"],["mat-icon-button","","class","mat-toolbar mat-primary back-button","style","transform: scale(0.9)",3,"click",4,"ngIf"],[1,"mat-toolbar","mat-primary",2,"text-decoration","none",3,"routerLink"],["id","phase-descriptor","style","margin-left: 10px",4,"ngIf"],[4,"ngIf"],[2,"flex","1 1 auto"],["mat-button","","matTooltip","Download CATcher Log",3,"click"],["mat-button","","matTooltip","Give feedback about CATcher",3,"click"],["mat-button","","matTooltip","View current page on GitHub",3,"click",4,"ngIf"],["mat-button","","matTooltip","Synchronize with Github data",3,"click",4,"ngIf"],["class","sync-spinner",4,"ngIf"],["mat-button","","matTooltip","Log out",3,"click",4,"ngIf"],["mat-icon-button","",1,"mat-toolbar","mat-primary","back-button",2,"transform","scale(0.9)",3,"click"],["id","phase-descriptor",2,"margin-left","10px"],["mat-button","",3,"matMenuTriggerFor"],[2,"color","white"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"ngStyle"],["mat-button","","matTooltip","View current page on GitHub",3,"click"],["mat-button","","matTooltip","Synchronize with Github data",3,"click"],[1,"sync-spinner"],[2,"font-size","14px","margin-right","7px"],[1,"white-spinner",3,"diameter"],["mat-button","","matTooltip","Log out",3,"click"],[2,"margin-left","2px"]],template:function(e,t){1&e&&(ko(0,"mat-toolbar",0),go(1,DV,3,0,"button",1),ko(2,"a",2),au(3),wo(),go(4,xV,2,1,"span",3),go(5,LV,7,2,"div",4),So(6,"span",5),ko(7,"button",6),Ao("click",function(){return t.exportLogFile()}),ko(8,"mat-icon"),au(9,"receipt"),wo(),wo(),ko(10,"button",7),Ao("click",function(){return t.openIssueTracker()}),ko(11,"mat-icon"),au(12,"mail"),wo(),wo(),go(13,AV,3,0,"button",8),go(14,OV,4,0,"button",9),go(15,IV,4,1,"div",10),go(16,RV,4,1,"button",11),wo()),2&e&&(Ns(1),_o("ngIf",t.isBackButtonShown()),Ns(1),_o("routerLink",t.phaseService.currentPhase),Ns(1),uu("CATcher v",t.getVersion(),""),Ns(1),_o("ngIf",t.auth.isAuthenticated()),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.phaseService.sessionData.openPhases.length>1),Ns(8),_o("ngIf",t.auth.isAuthenticated()&&t.isOpenUrlButtonShown()),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&!t.isReloadButtonDisabled),Ns(1),_o("ngIf",t.auth.isAuthenticated()&&t.isReloadButtonShown()&&t.isReloadButtonDisabled),Ns(1),_o("ngIf",t.auth.isAuthenticated()))},directives:[AP,Od,O_,yM,XO,bL,SO,yO,Ld,fO,qd,TI],encapsulation:2}),e}(),FV=function(){var e=function(){return m(function e(t,n){g(this,e),this.errorHandlingService=n,this.NOT_CONNECTED_ERROR=new Error("You are not connected to the internet."),t.info("AppComponent: AppConfig",HP),t.info("AppComponent: Mode web")},[{key:"ngAfterViewInit",value:function(){this.addListenerForNetworkOffline()}},{key:"addListenerForNetworkOffline",value:function(){var e=this;window.addEventListener("offline",function(t){e.errorHandlingService.handleError(e.NOT_CONNECTED_ERROR)},!1)}}])}();return e.\u0275fac=function(t){return new(t||e)(yo(cF),yo(hF))},e.\u0275cmp=yt({type:e,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"container"]],template:function(e,t){1&e&&(So(0,"app-layout-header"),ko(1,"div",0),So(2,"router-outlet"),wo())},directives:[PV,R_],styles:[".container[_ngcontent-%COMP%]{padding:30px;min-height:87.9vh}"]}),e}(),YV=(function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.AwaitingAuthentication=1]="AwaitingAuthentication",e[e.ConfirmOAuthUser=2]="ConfirmOAuthUser",e[e.Authenticated=3]="Authenticated"}(YV||(YV={})),YV),jV=function(){var e=function(){return m(function e(t,n,i,r,s,a,o,u,l,c){g(this,e),this.router=t,this.ngZone=n,this.githubService=i,this.userService=r,this.issueService=s,this.phaseService=a,this.dataService=o,this.githubEventService=u,this.titleService=l,this.logger=c,this.authStateSource=new lg(YV.NotAuthenticated),this.currentAuthState=this.authStateSource.asObservable(),this.accessToken=new lg(void 0)},[{key:"storeOAuthAccessToken",value:function(e){this.githubService.storeOAuthAccessToken(e),this.accessToken.next(e)}},{key:"reset",value:function(){var e=this;this.accessToken.next(void 0),this.changeAuthState(YV.NotAuthenticated),this.ngZone.run(function(){return e.router.navigate([""])})}},{key:"logOut",value:function(){this.githubService.reset(),this.userService.reset(),this.issueService.reset(!0),this.phaseService.reset(),this.dataService.reset(),this.githubEventService.reset(),this.logger.reset(),this.setLandingPageTitle(),this.issueService.setIssueTeamFilter("All Teams"),this.reset()}},{key:"isAuthenticated",value:function(){return this.authStateSource.getValue()===YV.Authenticated}},{key:"changeAuthState",value:function(e){if(e===YV.Authenticated){var t="".concat(Date.now(),"-").concat(ZP());this.issueService.setSessionId(t),this.logger.info("MockAuthService: Successfully authenticated with session: ".concat(t))}this.authStateSource.next(e)}},{key:"setTitleWithPhaseDetail",value:function(){var e=w(4147),t="".concat(e.name," ").concat(e.version," - ").concat(this.phaseService.getPhaseDetail());this.titleService.setTitle(t)}},{key:"setLandingPageTitle",value:function(){var e=w(4147);this.titleService.setTitle("".concat(e.name," ").concat(e.version))}},{key:"startOAuthProcess",value:function(){this.accessToken.next("FabricatedToken")}},{key:"navigateToLandingPage",value:function(){this.router.navigateByUrl(this.phaseService.currentPhase)}},{key:"clearNext",value:function(){}},{key:"getNext",value:function(){}},{key:"storeNext",value:function(e){}}])}();return e.\u0275fac=function(t){return new(t||e)($i(M_),$i(Cc),$i(_F),$i(SF),$i(Hj),$i(Nj),$i(wF),$i(Bj),$i(Ah),$i(cF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function qV(e,t,n,i,r,s,a,o,u,l){return HP.test?new jV(e,t,n,i,r,s,a,o,u,l):(console.log(l),new zj(e,t,n,i,r,s,a,o,u,l))}var NV=Object.assign({},Object.assign(Object.assign({},Object.assign(Object.assign({},jP),{version:qP.version,production:!1,test:!1,clientId:"0cbc5e651d8b01e36687",origin:"http://localhost:4200"})),{test:!0,role:"student",username:"CAT-Tester",team:"CS2103T-W12-3"})),HV=w(60837).Octokit,BV=(new HV,function(){var e=function(){return m(function e(){g(this,e),this.numIssuesCreated=0},[{key:"storeOAuthAccessToken",value:function(e){new HV({auth:function(){return"Token ".concat(e)}})}},{key:"storeOrganizationDetails",value:function(e,t){e,t}},{key:"storePhaseDetails",value:function(e,t){t,e}},{key:"isRepositoryPresent",value:function(e,t){return Oh(!0)}},{key:"createIssue",value:function(e,t,n){var i=n.map(function(e){return new eF({name:e})}),r={number:this.numIssuesCreated,title:e,body:t,labels:i};return this.numIssuesCreated++,Oh(new tF(r))}},{key:"fetchAllLabels",value:function(){return Oh(Fj.getRequiredLabelsAsArray(!0).map(function(e){return{name:e.labelCategory?"".concat(e.labelCategory,".").concat(e.labelValue):"".concat(e.labelValue),color:"".concat(e.labelColor)}}))}},{key:"fetchEventsForRepo",value:function(){return Oh([])}},{key:"fetchDataFile",value:function(){return Oh({data:"role,name,team\n".concat(NV.role,",").concat(NV.username,",").concat(NV.team,"\n")})}},{key:"fetchLatestRelease",value:function(){var e=w(4147);return Oh({html_url:"www.github.com/CATcher-org/releases/v".concat(e.version),tag_name:"v".concat(e.version)})}},{key:"fetchSettingsFile",value:function(){return Oh(D(D(D(D({openPhases:[LF.phaseBugReporting,LF.phaseTeamResponse,LF.phaseTesterResponse,LF.phaseModeration]},LF.phaseBugReporting,"undefined"),LF.phaseTeamResponse,"undefined"),LF.phaseTesterResponse,"undefined"),LF.phaseModeration,"undefined"))}},{key:"fetchAuthenticatedUser",value:function(){return Oh({login:NV.username,name:NV.username})}},{key:"getProfilesData",value:function(){var e=[{profileName:"CATcher",repoName:"CATcher-org/public_data"}],t={json:function(){return Promise.resolve({profiles:e})}};return Promise.resolve(t)}},{key:"reset",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e}());function UV(e,t,n){return HP.test?new BV:new _F(e,t,n)}new bF({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:kF.Student},{loginId:"003-samuel",role:kF.Student},{loginId:"damithc",role:kF.Student},{loginId:"ptvrajsk",role:kF.Student}]}),new bF({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:kF.Student}]});var zV=(new Map([["CS2103T-W12-3",new bF({id:"CS2103T-W12-3",teamMembers:[{loginId:"JunWei96",role:kF.Student},{loginId:"003-samuel",role:kF.Student},{loginId:"damithc",role:kF.Student},{loginId:"ptvrajsk",role:kF.Student}]})],["CS2103T-W12-4",new bF({id:"CS2103T-W12-4",teamMembers:[{loginId:"RonakLakhotia",role:kF.Student}]})]]),{body:"# Team's Response\n\n ## Duplicate status (if any):\n--",created_at:"2020-02-16T18:31:38Z",id:586737495,issue_url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/comments/586737495",user:{login:"testathorStudent",id:46639862,avatar_url:"https://avatars3.githubusercontent.com/u/46639862?v=4",url:"https://api.github.com/users/testathorStudent"}}),VV={body:"# Tutor Moderation\n\n## :question: Issue Type\n\n- [x] Done\n\ntest\n\n
    \n## :question: Issue Severity\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
    \n## :question: Not Related Question\n\n- [ ] Done\n\n[replace this with your explanation]\n\n
    \n",created_at:"2020-08-15T06:39:24Z",id:674357972,issue_url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/26",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-evaluation/issues/comments/674357972",user:{login:"testathorTutor",id:46640218,avatar_url:"https://avatars2.githubusercontent.com/u/46640218?v=4",url:"https://api.github.com/users/testathorTutor"}},GV={color:"9900cc",name:"type.FunctionalityBug",id:1226647550,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FunctionalityBug"},WV={id:1462485994,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.FeatureFlaw",name:"type.FeatureFlaw",color:"d966ff"},ZV={id:1226647431,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/type.DocumentationBug",name:"type.DocumentationBug",color:"d966ff"},QV={id:1226646828,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Low",name:"severity.Low",color:"ffcccc"},$V={id:1226646649,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.High",name:"severity.High",color:"ff6666"},KV={color:"ff9999",name:"severity.Medium",id:1226647149,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/severity.Medium"},JV={url:"https://api.github.com/repos/CATcher-org/pe-results/labels/tutorial.CS2103T-W12",name:"tutorial.CS2103T-W12",color:"c2e0c6",id:1226649736},XV={id:1226649835,url:"https://api.github.com/repos/CATcher-org/pe-results/labels/team.3",name:"team.3",color:"d4c5f9"},eG={login:"anubh-v",avatar_url:"https://avatars1.githubusercontent.com/u/35621759?v=4",url:"https://api.github.com/users/anubh-v"},tG={login:"geshuming",avatar_url:"https://avatars0.githubusercontent.com/u/43642522?v=4",url:"https://api.github.com/users/geshuming"},nG={login:"geshuming",id:43642522,url:"https://api.github.com/users/geshuming"},iG="# Issue Description\n{original issue description}\n# Team's Response\n{team's response}\n # Disputes\n\n## :question: Issue Type\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n## :question: Issue Severity\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n## :question: Not Related Question\n\n### Team says:\r\n{the team's action that is being disputed}\r\n\r\n### Tester says:\r\n{tester's objection}\n\n
    \n\n",rG=(new tF({id:"574085971",number:92,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"App starts to lag when given large amount of input",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/92",user:eG}),new tF({id:"384830567",number:130,assignees:[],comments:[],body:"",created_at:"2020-03-02T16:19:02Z",labels:[XV,JV,WV,QV],state:vk.Open,title:"App is sometimes slow",updated_at:"2020-03-13T13:37:32Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"573957398",number:32,assignees:[],comments:[],body:"",created_at:"2010-03-12T19:12:02Z",labels:[XV,JV,ZV,$V],state:vk.Open,title:"Too many typos",updated_at:"2012-03-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"573957399",number:33,assignees:[],comments:[],body:"",created_at:"2010-04-12T19:12:02Z",labels:[XV,JV,ZV,$V],state:vk.Open,title:"Too many typos 2",updated_at:"2012-04-12T19:12:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/130",user:eG}),new tF({id:"551732011",number:91,assignees:[{login:"anubh-v",id:35621759,url:"https://api.github.com/users/anubh-v"},nG],body:"Screen freezes every few minutes",created_at:"2020-01-18T07:01:45Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"Screen freezes",updated_at:"2020-03-02T12:50:02Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/91",user:eG,comments:[zV]}),function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(2020,1,1),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return new Date(e.getTime()+Math.random()*(e.getTime()-t.getTime())).toISOString()}(),t=Math.round(1e3*Math.random()),n=[QV,KV,$V],i=[GV,WV,ZV];return new tF({id:Math.floor(1e9*Math.random()).toString(),number:t,assignees:[],comments:[],body:"Issue No.: ".concat(t,"\nSample Content."),created_at:e,labels:[XV,JV,i[t%3],n[t%3]],state:vk.Open,title:"Random Issue: ".concat(t),updated_at:e,url:"https://api.github.com/repos/CATcher-org/pe-results/issues/".concat(t),user:eG})});new tF({id:"574674360",number:26,assignees:[nG],body:iG,created_at:"2020-03-03T13:38:32Z",labels:[XV,JV,GV,KV],state:vk.Open,title:"Basic Issue, Three Disputes, Unsure",updated_at:"2020-08-15T06:39:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]}),new tF({id:"239538360",number:93,assignees:[nG],body:iG,created_at:"2020-10-14T10:28:32Z",labels:[XV,JV,WV,$V],state:vk.Open,title:"Redundant buggy feature",updated_at:"2020-11-25T13:19:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]}),new tF({id:"384756360",number:6,assignees:[nG],body:iG,created_at:"2020-03-26T09:08:12Z",labels:[XV,JV,ZV,QV],state:vk.Open,title:"Documentation bug, too many typos",updated_at:"2020-11-10T16:59:40Z",url:"https://api.github.com/repos/CATcher-org/pe-results/issues/26",user:tG,comments:[VV]});var sG=function(){var e=function(){return m(function e(t,n,i){g(this,e),this.githubService=t,this.phaseService=n,this.dataService=i,this.issueTeamFilter="All Teams",this.isLoading=new lg(!1),this.issues$=new lg(new Array)},[{key:"startPollIssues",value:function(){var e=this;void 0===this.issuesPollSubscription&&(0===this.issues$.getValue().length&&this.isLoading.next(!0),this.issuesPollSubscription=Oh(this.reloadAllIssues()).subscribe(function(t){return e.isLoading.next(!1)}))}},{key:"stopPollIssues",value:function(){this.issuesPollSubscription&&(this.issuesPollSubscription.unsubscribe(),this.issuesPollSubscription=void 0)}},{key:"pollIssue",value:function(e){return Oh(this.issues[e])}},{key:"reloadAllIssues",value:function(){return this.initializeData()}},{key:"getIssue",value:function(e){return void 0===this.issues?this.getLatestIssue(e):Oh(this.issues[e])}},{key:"getLatestIssue",value:function(e){var t=this;return this.githubService.fetchIssueGraphql(e).pipe(ie(function(n){return t.createAndSaveIssueModel(n),t.issues[e]}),Ig(function(n){return Oh(t.issues[e])}))}},{key:"createIssue",value:function(e,t,n,i){var r=this,s=[this.createLabel("severity",n),this.createLabel("type",i)],a=new Map([["session",this.sessionId]]),o=CF.embedDataIntoString(t,a);return this.githubService.createIssue(e,o,s).pipe(ie(function(e){return r.createIssueModel(e)}))}},{key:"updateIssue",value:function(e){var t=this,n=this.phaseService.currentPhase===LF.phaseModeration?[]:e.assignees;return this.githubService.updateIssue(e.id,e.title,this.createGithubIssueDescription(e),this.createLabelsForIssue(e),n).pipe(ie(function(n){return n.comments=e.githubComments,t.createIssueModel(n)}))}},{key:"updateIssueWithComment",value:function(e,t){var n=this;return this.githubService.updateIssueComment(t).pipe(ge(function(t){return e.githubComments=[t].concat(d(e.githubComments.filter(function(e){return e.id!==t.id}))),n.updateIssue(e)}))}},{key:"updateTesterResponse",value:function(e,t){var n=this.issues[e.id].testerResponses?this.githubService.updateIssueComment(t):this.githubService.createIssueComment(e.id,t.description),i=e.clone(this.phaseService.currentPhase);return i.status=kj.Done,Ck([n,this.updateIssue(i)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateTesterResponse(n),i}))}},{key:"updateTutorResponse",value:function(e,t){return Ck([this.githubService.updateIssueComment(t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createTeamResponse",value:function(e){var t=this,n=e.createGithubTeamResponse();return this.githubService.createIssueComment(e.id,n).pipe(ge(function(n){return e.githubComments=[n].concat(d(e.githubComments.filter(function(e){return e.id!==n.id}))),t.updateIssue(e)}))}},{key:"createTutorResponse",value:function(e,t){return Ck([this.githubService.createIssueComment(e.id,t),this.updateIssue(e)]).pipe(ie(function(e){var t=T(e,2),n=t[0],i=t[1];return i.updateDispute(n),i}))}},{key:"createGithubIssueDescription",value:function(e){return this.phaseService.currentPhase===LF.phaseModeration?"# Issue Description\n".concat(e.createGithubIssueDescription(),"\n# Team's Response\n").concat(e.teamResponse,"\n # Disputes\n\n").concat(this.getIssueDisputeString(e.issueDisputes),"\n"):e.createGithubIssueDescription()}},{key:"getIssueDisputeString",value:function(e){var t,n="",i=M(e);try{for(i.s();!(t=i.n()).done;){n+=t.value.toString()}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"deleteIssue",value:function(e){var t=this;return this.githubService.closeIssue(e).pipe(ie(function(e){var n=t.createIssueModel(e);return t.deleteFromLocalStore(n),n}))}},{key:"deleteFromLocalStore",value:function(e){var t=e.id,n=(0,QP._T)(this.issues,["symbol"==typeof t?t:t+""]);this.issues=n,this.issues$.next(Object.values(this.issues))}},{key:"updateLocalStore",value:function(e){this.issues=Object.assign(Object.assign({},this.issues),D({},e.id,e)),this.issues$.next(Object.values(this.issues))}},{key:"hasTeamResponse",value:function(e){return!!this.issues[e].teamResponse}},{key:"getDuplicateIssuesFor",value:function(e){return this.issues$.pipe(ie(function(t){return t.filter(function(t){return t.duplicateOf===e.id})}))}},{key:"reset",value:function(){this.issues=void 0,this.sessionId=void 0,this.issues$.next(new Array),this.stopPollIssues(),this.isLoading.complete(),this.isLoading=new lg(!1)}},{key:"initializeData",value:function(){if(null!=this.issues)return Oh(Object.values(this.issues));var e=[];if(this.phaseService.currentPhase===LF.phaseBugReporting)for(var t=0;t<10;t++)e.push(rG());for(var n=0,i=e;n0&&t.push(this.createLabel("pending",e.pending)),e.unsure&&t.push("unsure"),t}},{key:"createLabel",value:function(e,t){return"".concat(e,".").concat(t)}},{key:"extractTeamIdFromGithubIssue",value:function(e){return e.findLabel(eF.LABELS.tutorial).concat("-").concat(e.findLabel(eF.LABELS.team))}},{key:"createIssueModel",value:function(e){switch(this.phaseService.currentPhase){case LF.phaseBugReporting:return yj.createPhaseBugReportingIssue(e);case LF.phaseTeamResponse:return yj.createPhaseTeamResponseIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));case LF.phaseTesterResponse:return yj.createPhaseTesterResponseIssue(e);case LF.phaseModeration:return yj.createPhaseModerationIssue(e,this.dataService.getTeam(this.extractTeamIdFromGithubIssue(e)));default:return}}},{key:"setIssueTeamFilter",value:function(e){e&&(this.issueTeamFilter=e)}},{key:"setSessionId",value:function(e){this.sessionId=e}},{key:"getIssueTeamFilter",value:function(){return this.issueTeamFilter}}])}();return e.POLL_INTERVAL=5e3,e.\u0275fac=function(t){return new(t||e)($i(_F),$i(Nj),$i(wF))},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function aG(e,t,n,i,r){return HP.test?new sG(e,n,i):new Hj(e,t,n,i,r)}function oG(){var e=new nk,t=e.link;return e.link=function(n,i,r){return t.call(e,n,i,r).replace(/^
    ':' '},{renderer:e,gfm:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!1}}var uG=w(94989),lG=w(66795),cG=w.n(lG),dG=function(){function e(e){var t=e.batchInterval,n=e.batchMax,i=e.batchHandler,r=e.batchKey;this.queuedRequests=new Map,this.batchInterval=t,this.batchMax=n||0,this.batchHandler=i,this.batchKey=r||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=(0,eb.pi)({},e),i=!1,r=this.batchKey(e.operation);return n.observable||(n.observable=new nb.y$(function(e){t.queuedRequests.has(r)||t.queuedRequests.set(r,[]),i||(t.queuedRequests.get(r).push(n),i=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(r).length&&t.scheduleQueueConsumption(r),t.queuedRequests.get(r).length===t.batchMax&&t.consumeQueue(r)})),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var i=n.map(function(e){return e.operation}),r=n.map(function(e){return e.forward}),s=[],a=[],o=[],u=[];n.forEach(function(e,t){s.push(e.observable),a.push(e.next),o.push(e.error),u.push(e.complete)});var l=this.batchHandler(i,r)||nb.y$.of(),c=function(e){o.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return l.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,c(t)}e.forEach(function(e,t){a[t]&&a[t].forEach(function(t){return t(e)})})},error:c,complete:function(){u.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),s}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";setTimeout(function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)},this.batchInterval)},e}();!function(e){function t(t){var n=e.call(this)||this,i=t||{},r=i.batchInterval,s=i.batchMax,a=i.batchHandler,o=i.batchKey;return n.batcher=new dG({batchInterval:void 0===r?10:r,batchMax:void 0===s?0:s,batchHandler:void 0===a?function(){return null}:a,batchKey:void 0===o?function(){return""}:o}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}(0,eb.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})}}(tb.i0);var hG=function(e){function t(e,n){var i;return g(this,t),(i=v(this,t)).httpClient=e,i.options=n,i.print=uG.S,i.options.operationPrinter&&(i.print=i.options.operationPrinter),i.requester=function(e){return new X_.y$(function(t){var n=e.getContext(),r=function(e,t){return function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]>7==0?1:(224&n)>>5==6?2:(240&n)>>4==14?3:(240&n)>>4==15?4:1},l=function(e,t,n){var i=Uint8Array.from({length:t},function(t,i){return n.getUint8(e+i)});return a.decode(i)},c=function(e){for(var t,n=0,i=0;i>=8,i++;n++}return n},h=function(){return(e=h||(h={})).STRING="string",e.ARRAY_BUFFER="arrayBuffer",e.TYPED_ARRAY="typedArray",e.DATA_VIEW="dataView",h;var e}(),p=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var r=s.encode(e);t=new DataView(r.buffer),n=h.STRING}else if(e instanceof ArrayBuffer)t=new DataView(e),n=h.ARRAY_BUFFER;else if(function(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array}(e))t=new DataView(e.buffer),n=h.TYPED_ARRAY;else{if(!(e instanceof DataView))throw new Error("Cannot process input. Must be a string, ArrayBuffer, TypedArray, or DataView. but got "+typeof e);t=e,n=h.DATA_VIEW}return{dataView:t,inputType:n,isError:!1,error:null,result:null,data:i,index:0}},f=function(e,t){return N(q({},e),{isError:!0,error:t})},v=function(e,t){return N(q({},e),{result:t})},y=function(e,t){return N(q({},e),{data:t})},_=function(e,t,n){return N(q({},e),{result:t,index:n})},b=function(){function e(t){g(this,e),this.p=t}return m(e,[{key:"run",value:function(e){var t=p(e),n=this.p(t);return n.isError?{isError:!0,error:n.error,index:n.index,data:n.data}:{isError:!1,result:n.result,index:n.index,data:n.data}}},{key:"fork",value:function(e,t,n){var i=p(e),r=this.p(i);return r.isError?t(r.error,r):n(r.result,r)}},{key:"map",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?i:v(i,t(i.result))})}},{key:"chain",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?i:t(i.result).p(i)})}},{key:"ap",value:function(t){var n=this.p;return new e(function(e){if(e.isError)return e;var i=n(e);if(i.isError)return i;var r=t.p(i);return r.isError?r:v(r,r.result(i.result))})}},{key:"errorMap",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError?f(i,t({isError:!0,error:i.error,index:i.index,data:i.data})):i})}},{key:"errorChain",value:function(t){var n=this.p;return new e(function(e){var i=n(e);if(i.isError){var r=i.error,s=i.index,a=i.data;return t({isError:!0,error:r,index:s,data:a}).p(N(q({},i),{isError:!1}))}return i})}},{key:"mapFromData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError&&i.error?i:v(i,t({isError:!1,result:i.result,data:i.data,index:i.index}))})}},{key:"chainFromData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return i.isError&&i.error?i:t({result:i.result,data:i.data}).p(i)})}},{key:"mapData",value:function(t){var n=this.p;return new e(function(e){var i=n(e);return y(i,t(i.data))})}}],[{key:"of",value:function(t){return new e(function(e){return v(e,t)})}}])}(),k=/[0-9]/,w=/[a-zA-Z]/,S=/ParseError.+Expecting/,E=new b(function(e){return e.isError?e:v(e,e.data)});function D(e){return new b(function(t){return t.isError?t:y(t,e)})}function x(e){return new b(function(t){return t.isError?t:y(t,e(t.data))})}function C(e){return function(t){return D(t).chain(function(){return e})}}function L(e){return new b(function(t){var n,i=t,r=M(e);try{for(r.s();!(n=r.n()).done;){i=n.value.p(i)}}catch(s){r.e(s)}finally{r.f()}return i})}function A(e){return new b(function(t){return L(d(e).reverse()).p(t)})}function O(e){return new b(function(t){return e(t),t})}function I(e){return function(t){return e.run(t)}}function R(e){return new b(function(t){return t.isError?t:e(t.result).p(t)})}function P(e){return new b(function(t){return t.isError?t:f(t,e)})}var F=b.of;function Y(e){return new b(function(t){if(t.isError)return t;var n=e.p(t);return v(N(q({},n),{isError:!1}),{isError:n.isError,value:n.isError?n.error:n.result})})}function j(e){return new b(function(t){for(var n,i=e(),r=t;;){var s=i.next(n),a=s.value;if(s.done)return v(r,a);if(!(a&&a instanceof b))throw new Error("[coroutine] yielded values must be Parsers, got ".concat(s.value,"."));if((r=a.p(r)).isError)return r;n=r.result}})}function H(e){if("number"!=typeof e||e<=0)throw new TypeError("exactly must be called with a number > 0, but got ".concat(e));return function(t){return new b(function(n){if(n.isError)return n;for(var i=[],r=n,s=0;s=i.dataView.byteLength)break}return v(i,n)})},U=function(e){return new b(function(t){if(t.isError)return t;var n=B(e).p(t);return n.result.length?n:f(t,"ParseError 'many1' (position ".concat(t.index,"): Expecting to match at least one value"))})};function z(e){return new b(function(t){return t.isError?t:v(t,e(t.result))})}function V(e){return new b(function(t){return t.isError?f(t,e(t.error,t.index,t.data)):t})}var G=function(e){if(!e||1!==c(e))throw new TypeError("char must be called with a single character, but got ".concat(e));return new b(function(t){if(t.isError)return t;var n=t.index,i=t.dataView;if(n 1, but got ".concat(e));var t=s.encode(e);return new b(function(n){var i=n.index,r=n.dataView;if(r.byteLength-i=1){var a=r.match(e);return a?_(t,a[0],i+s.encode(a[0]).byteLength):f(t,"ParseError (position ".concat(i,"): Expecting string matching '").concat(e,"', got '").concat(r.slice(0,5),"...'"))}return f(t,"ParseError (position ".concat(i,"): Expecting string matching '").concat(e,"', but got end of input."))})}var K=new b(function(e){if(e.isError)return e;var t=e.dataView,n=e.index;if(t.byteLength>n){var i=u(n,t);if(n+i<=t.byteLength){var r=l(n,i,t);return t.byteLength&&r&&k.test(r)?_(e,r,n+i):f(e,"ParseError (position ".concat(n,"): Expecting digit, got '").concat(r,"'"))}}return f(e,"ParseError (position ".concat(n,"): Expecting digit, but got end of input."))}),J=$(/^[0-9]+/).errorMap(function(e){var t=e.index;return"ParseError (position ".concat(t,"): Expecting digits")}),X=new b(function(e){if(e.isError)return e;var t=e.index,n=e.dataView;if(n.byteLength>t){var i=u(t,n);if(t+i<=n.byteLength){var r=l(t,i,n);return n.byteLength&&r&&w.test(r)?_(e,r,t+i):f(e,"ParseError (position ".concat(t,"): Expecting letter, got '").concat(r,"'"))}}return f(e,"ParseError (position ".concat(t,"): Expecting letter, but got end of input."))}),ee=$(/^[a-zA-Z]+/).errorMap(function(e){var t=e.index;return"ParseError (position ".concat(t,"): Expecting letters")});function te(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index;if(n.byteLength>i){var r=u(i,n);if(i+r<=n.byteLength){var s=l(i,r,n);return e.includes(s)?_(t,s,i+r):f(t,"ParseError (position ".concat(i,'): Expecting any of the string "').concat(e,'", got ').concat(s))}}return f(t,"ParseError (position ".concat(i,'): Expecting any of the string "').concat(e,'", but got end of input.'))})}function ne(e){return new b(function(t){if(t.isError)return t;var n,i={},r=t,s=M(e);try{for(s.s();!(n=s.n()).done;){var a=T(n.value,2),o=a[0],u=a[1].p(r);if(u.isError)return u;r=u,i[o]=u.result}}catch(l){s.e(l)}finally{s.f()}return v(r,i)})}function ie(e){return new b(function(t){if(t.isError)return t;for(var n=e.length,i=new Array(n),r=t,s=0;si.index)&&(i=s)}}catch(a){r.e(a)}finally{r.f()}return i})}function oe(e){return function(t){return function(n){return ie([e,n,t]).map(function(e){var t=T(e,2);t[0];return t[1]})}}}function ue(e){return new b(function(t){if(t.isError)return t;for(var n=[],i=t;e.p(i).isError;){var r=i,s=r.index,a=r.dataView;if(a.byteLength<=s)return f(i,"ParseError 'everythingUntil' (position ".concat(i.index,"): Unexpected end of input."));var o=a.getUint8(s);o&&(n.push(o),i=_(i,o,s+1))}return v(i,n)})}var le=function(e){return ue(e).map(function(e){return a.decode(Uint8Array.from(e))})},ce=function(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index,r=e.p(t);return r.isError?_(t,n.getUint8(i),i+1):f(t,"ParseError 'anythingExcept' (position ".concat(i,"): Matched '").concat(r.result,"' from the exception parser"))})},de=function(e){return new b(function(t){if(t.isError)return t;var n=t.dataView,i=t.index,r=e.p(t);if(r.isError){if(i0?f(e,"ParseError 'startOfInput' (position ".concat(t,"): Expected start of input'")):e}),ge=new b(function(e){if(e.isError)return e;var t=e.dataView,n=e.index,i=e.inputType;if(n!==t.byteLength){var r=i===h.STRING?String.fromCharCode(t.getUint8(n)):"0x".concat(t.getUint8(n).toString(16).padStart(2,"0"));return f(e,"ParseError 'endOfInput' (position ".concat(n,"): Expected end of input but got '").concat(r,"'"))}return v(e,null)}),ve=$(/^\s+/).errorMap(function(e){var t=e.index;return"ParseError 'many1' (position ".concat(t,"): Expecting to match at least one value")}),ye=pe(ve).map(function(e){return e||""});function _e(e){return new b(function(t){return e().p(t)})}function be(e){return function(t){return e.chain(function(){return t})}}var ke=function(e){return function(t){return e.chain(function(e){return t.map(function(){return e})})}};function we(e){return!0===e.isError?Promise.reject({error:e.error,index:e.index,data:e.data}):Promise.resolve(e.result)}function Se(e){if(!0===e.isError){var t=new Error(String(e.error)||"null");throw t.parseIndex=e.index,t.data=e.data,t}return e.result}},30744:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5202);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return a(e,[])}function a(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var s=r.call(e);if(s!==e)return"string"==typeof s?s:a(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],s=0;s1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map(function(n){return n+": "+a(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5202:function(e,t){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},10290:function(e,t,n){"use strict";n.d(t,{Ye:function(){return s},WU:function(){return a},UG:function(){return o}});var i=n(5202);function r(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}var s=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();r(s);var a=function(){function e(e,t,n,i,r,s,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=s,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function o(e){return null!=e&&"string"==typeof e.kind}r(a)},12032:function(e,t,n){"use strict";function i(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,s=null,a=0;as&&r(t[a-1]);)--a;return t.slice(s,a).join("\n")}function r(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],s='"'===e[e.length-1],a="\\"===e[e.length-1],o=!i||s||a||n,u="";return o&&!(i&&r)&&(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,o&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return i},LZ:function(){return s}})},94989:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var i=n(61335),r=n(12032);function s(e){return(0,i.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,i=c("(",u(e.variableDefinitions,", "),")"),r=u(e.directives," "),s=e.selectionSet;return n||r||i||"query"!==t?u([t,u([n,i]),r,s]," "):s},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+c(" = ",e.defaultValue)+c(" ",u(t," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.name,n=e.arguments,i=e.directives,r=e.selectionSet,s=c("",e.alias,": ")+t,a=s+c("(",u(n,", "),")");return a.length>80&&(a=s+c("(\n",d(u(n,"\n")),"\n)")),u([a,u(i," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.directives,n=e.selectionSet;return u(["...",c("on ",e.typeCondition),u(t," "),n]," ")},FragmentDefinition:function(e){var t=e.typeCondition,n=e.variableDefinitions,i=e.directives,r=e.selectionSet;return"fragment ".concat(e.name).concat(c("(",u(n,", "),")")," ")+"on ".concat(t," ").concat(c("",u(i," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,r.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:o(function(e){var t=e.operationTypes;return u(["schema",u(e.directives," "),l(t)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:o(function(e){return u(["scalar",e.name,u(e.directives," ")]," ")}),ObjectTypeDefinition:o(function(e){var t=e.directives,n=e.fields;return u(["type",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")}),FieldDefinition:o(function(e){var t=e.arguments,n=e.type,i=e.directives;return e.name+(p(t)?c("(\n",d(u(t,"\n")),"\n)"):c("(",u(t,", "),")"))+": "+n+c(" ",u(i," "))}),InputValueDefinition:o(function(e){var t=e.directives;return u([e.name+": "+e.type,c("= ",e.defaultValue),u(t," ")]," ")}),InterfaceTypeDefinition:o(function(e){var t=e.directives,n=e.fields;return u(["interface",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")}),UnionTypeDefinition:o(function(e){var t=e.types;return u(["union",e.name,u(e.directives," "),t&&0!==t.length?"= "+u(t," | "):""]," ")}),EnumTypeDefinition:o(function(e){var t=e.values;return u(["enum",e.name,u(e.directives," "),l(t)]," ")}),EnumValueDefinition:o(function(e){return u([e.name,u(e.directives," ")]," ")}),InputObjectTypeDefinition:o(function(e){var t=e.fields;return u(["input",e.name,u(e.directives," "),l(t)]," ")}),DirectiveDefinition:o(function(e){var t=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+e.name+(p(t)?c("(\n",d(u(t,"\n")),"\n)"):c("(",u(t,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")}),SchemaExtension:function(e){var t=e.operationTypes;return u(["extend schema",u(e.directives," "),l(t)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,n=e.fields;return u(["extend type",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")},InterfaceTypeExtension:function(e){var t=e.directives,n=e.fields;return u(["extend interface",e.name,c("implements ",u(e.interfaces," & ")),u(t," "),l(n)]," ")},UnionTypeExtension:function(e){var t=e.types;return u(["extend union",e.name,u(e.directives," "),t&&0!==t.length?"= "+u(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return u(["extend enum",e.name,u(e.directives," "),l(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return u(["extend input",e.name,u(e.directives," "),l(t)]," ")}};function o(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function l(e){return c("{\n",d(u(e,"\n")),"\n}")}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function d(e){return c(" ",e.replace(/\n/g,"\n "))}function h(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(h)}},61335:function(e,t,n){"use strict";n.d(t,{$_:function(){return a},Vn:function(){return o}});var i=n(30744),r=n(10290),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,o=void 0,l=Array.isArray(e),c=[e],d=-1,h=[],p=void 0,f=void 0,m=void 0,g=[],v=[],y=e;do{var _=++d===c.length,b=_&&0!==h.length;if(_){if(f=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),b){if(l)p=p.slice();else{for(var k={},w=0,S=Object.keys(p);w dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.2"}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"CATcher","version":"3.5.3","main":"main.js","engines":{"node":">=14.0.0"},"scripts":{"ng":"ng","build:staging":"npm run codegen:gql && ng build --c staging --base-href=https://catcher-org.github.io/CATcher-staging/","build:prod:web":"npm run codegen:gql && ng build --configuration production --base-href=https://CATcher-org.github.io/CATcher/","ng:serve":"npm run codegen:gql && ng serve","ng:serve:web":"npm run ng:serve -- -o","deploy:staging":"npm run build:staging && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","ng:serve:test":"npm run ng:serve -- --configuration=test -o","deploy:web":"npm run build:prod:web && ngh --dir=dist --name=CATcher --email=se-edu@comp.nus.edu.sg --no-silent","test":"npm run codegen:gql && ng test","e2e":"npx playwright test --headed --project=chromium --workers=1","lint":"ng lint","lint:fix":"ng lint --fix","codegen:gql":"graphql-codegen --config codegen.yml","codegen:gql-watch":"graphql-codegen --config -w codegen.yml","pretty-quick":"pretty-quick"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","pre-push":"npm run lint && npm run test"}},"dependencies":{"@angular/animations":"^12.2.17","@angular/cdk":"^12.2.13","@angular/common":"^12.2.17","@angular/compiler":"^12.2.17","@angular/core":"^12.2.17","@angular/forms":"^12.2.17","@angular/localize":"^12.2.17","@angular/material":"^12.2.13","@angular/platform-browser":"^12.2.17","@angular/platform-browser-dynamic":"^12.2.17","@angular/router":"^12.2.17","@apollo/client":"3.3.0","@github/markdown-toolbar-element":"^2.1.1","@octokit/rest":"^16.37.0","ajv":"^6.11.0","apollo-angular":"^2.6.0","arcsecond":"^4.1.0","core-js":"^3.16.4","diff-match-patch":"^1.0.4","graphql":"^15.0.0","karma-spec-reporter":"0.0.32","moment":"^2.24.0","ngx-markdown":"^12.0.1","ngx-mat-select-search":"^3.3.3","rxjs":"6.6.7","tslib":"^2.0.0","uuid":"7.0.3","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"~12.2.18","@angular-eslint/builder":"12.7.0","@angular-eslint/eslint-plugin":"12.7.0","@angular-eslint/eslint-plugin-template":"12.7.0","@angular-eslint/schematics":"12.7.0","@angular-eslint/template-parser":"12.7.0","@angular/cli":"^12.2.18","@angular/compiler-cli":"^12.2.17","@angular/language-service":"^12.2.17","@graphql-codegen/cli":"2.16.4","@graphql-codegen/fragment-matcher":"^1.17.7","@graphql-codegen/typescript":"1.17.7","@graphql-codegen/typescript-document-nodes":"1.17.7","@graphql-codegen/typescript-operations":"^1.18.4","@graphql-codegen/typescript-resolvers":"^1.20.0","@octokit/graphql-schema":"^8.24.0","@playwright/test":"~1.33","@types/dompurify":"^2.3.1","@types/jasmine":"^3.8.2","@types/jasminewd2":"2.0.8","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"4.28.2","@typescript-eslint/parser":"4.28.2","angular-cli-ghpages":"^1.0.0-rc.2","eslint":"^7.26.0","husky":"^4.2.5","jasmine":"^3.9.0","jasmine-core":"~3.8.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.4.2","karma-chrome-launcher":"^3.1.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-firefox-launcher":"^2.1.1","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.1.5","prettier":"2.2.1","pretty-quick":"^3.1.1","scuri":"^0.9.4","ts-node":"^10.9.2","tslint-config-prettier":"^1.18.0","typescript":"4.3.5"}}')}},function(e){e(e.s=69200)}])}(); \ No newline at end of file